Skip to content

Commit 555b44b

Browse files
authored
Demo v2 - Full rework of the demo examples (#52)
Specs at #45
1 parent 83f893c commit 555b44b

File tree

113 files changed

+9184
-875
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+9184
-875
lines changed

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ rules: # See https://eslint.org/docs/rules
7676
react-hooks/exhaustive-deps: warn
7777
react/jsx-no-target-blank: warn # Not using "noreferrer" is not a security risk, but "noopener" should always be used indeed
7878
react/prop-types: warn # Should be handled with TS instead
79-
react/no-unescaped-entities: warn # Causes text mismatch when enabled
79+
react/no-unescaped-entities: 0 # Causes text mismatch when enabled
8080
jsx-a11y/anchor-is-valid: warn
8181
linebreak-style:
8282
- error

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ fabric.properties
6969
*.iml
7070
modules.xml
7171
.idea/misc.xml
72+
.idea/codeStyles
7273
*.ipr
7374
vcs.xml
7475

cypress/integration/app/pages/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ describe('Index page', () => {
2222
/**
2323
* Navbar section
2424
*/
25-
it('should have 6 links in the navigation bar', () => {
26-
cy.get('#nav a.nav-link').should('have.length', 6);
25+
it('should have 5 links in the navigation bar', () => {
26+
cy.get('#nav .navbar-nav > .nav-item').should('have.length', 5);
2727
});
2828

2929
it('should have a link in the navbar that redirects to the examples page', () => {
3030
cy.url().should('eq', `${baseUrl}/en`);
3131
cy.get('#nav-link-examples')
3232
.should('have.text', 'Examples')
3333
.click();
34-
cy.url().should('eq', `${baseUrl}/en/examples`);
34+
cy.get('#nav-link-examples-static-i-18-n')
35+
.should('have.text', 'Static i18n')
36+
.click();
37+
cy.url().should('eq', `${baseUrl}/en/examples/built-in-features/static-i18n`);
3538
});
3639
});

docs/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_site
2+
.sass-cache
3+
.jekyll-metadata

docs/404.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default
3+
nav_exclude: true
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>The requested page could not be found.</p>
25+
</div>

docs/Gemfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# XXX This file is only used when working on your local machine, in development
2+
# Run `yarn doc:start` to start the development server
3+
# Read ./CONTRIBUTING.md for further instructions
4+
5+
source "https://rubygems.org"
6+
7+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
8+
9+
# If you have any plugins, put them here!
10+
group :jekyll_plugins do
11+
gem 'just-the-docs' # XXX Our Jekyll theme - See https://pmarsceill.github.io/just-the-docs/
12+
gem "github-pages" # XXX Necessary to reproduce the behaviour of GitHub Pages - When this is loaded, "jekyll" must not be bundled because it's included within
13+
gem 'jemoji' # XXX GitHub-flavored Emoji plugin for Jekyll - See https://github.com/jekyll/jemoji
14+
end
15+
16+
# ------- WINDOWS SUPPORT ---------
17+
18+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
19+
# and associated library.
20+
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
21+
gem "tzinfo", "~> 1.2"
22+
gem "tzinfo-data"
23+
end
24+
25+
# Performance-booster for watching directories on Windows
26+
gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform?
27+

docs/Gemfile.lock

Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,261 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (6.0.2.2)
5+
concurrent-ruby (~> 1.0, >= 1.0.2)
6+
i18n (>= 0.7, < 2)
7+
minitest (~> 5.1)
8+
tzinfo (~> 1.1)
9+
zeitwerk (~> 2.2)
10+
addressable (2.7.0)
11+
public_suffix (>= 2.0.2, < 5.0)
12+
coffee-script (2.4.1)
13+
coffee-script-source
14+
execjs
15+
coffee-script-source (1.11.1)
16+
colorator (1.1.0)
17+
commonmarker (0.17.13)
18+
ruby-enum (~> 0.5)
19+
concurrent-ruby (1.1.6)
20+
dnsruby (1.61.3)
21+
addressable (~> 2.5)
22+
em-websocket (0.5.1)
23+
eventmachine (>= 0.12.9)
24+
http_parser.rb (~> 0.6.0)
25+
ethon (0.12.0)
26+
ffi (>= 1.3.0)
27+
eventmachine (1.2.7)
28+
execjs (2.7.0)
29+
faraday (1.0.0)
30+
multipart-post (>= 1.2, < 3)
31+
ffi (1.12.2)
32+
forwardable-extended (2.6.0)
33+
gemoji (3.0.1)
34+
github-pages (204)
35+
github-pages-health-check (= 1.16.1)
36+
jekyll (= 3.8.5)
37+
jekyll-avatar (= 0.7.0)
38+
jekyll-coffeescript (= 1.1.1)
39+
jekyll-commonmark-ghpages (= 0.1.6)
40+
jekyll-default-layout (= 0.1.4)
41+
jekyll-feed (= 0.13.0)
42+
jekyll-gist (= 1.5.0)
43+
jekyll-github-metadata (= 2.13.0)
44+
jekyll-mentions (= 1.5.1)
45+
jekyll-optional-front-matter (= 0.3.2)
46+
jekyll-paginate (= 1.1.0)
47+
jekyll-readme-index (= 0.3.0)
48+
jekyll-redirect-from (= 0.15.0)
49+
jekyll-relative-links (= 0.6.1)
50+
jekyll-remote-theme (= 0.4.1)
51+
jekyll-sass-converter (= 1.5.2)
52+
jekyll-seo-tag (= 2.6.1)
53+
jekyll-sitemap (= 1.4.0)
54+
jekyll-swiss (= 1.0.0)
55+
jekyll-theme-architect (= 0.1.1)
56+
jekyll-theme-cayman (= 0.1.1)
57+
jekyll-theme-dinky (= 0.1.1)
58+
jekyll-theme-hacker (= 0.1.1)
59+
jekyll-theme-leap-day (= 0.1.1)
60+
jekyll-theme-merlot (= 0.1.1)
61+
jekyll-theme-midnight (= 0.1.1)
62+
jekyll-theme-minimal (= 0.1.1)
63+
jekyll-theme-modernist (= 0.1.1)
64+
jekyll-theme-primer (= 0.5.4)
65+
jekyll-theme-slate (= 0.1.1)
66+
jekyll-theme-tactile (= 0.1.1)
67+
jekyll-theme-time-machine (= 0.1.1)
68+
jekyll-titles-from-headings (= 0.5.3)
69+
jemoji (= 0.11.1)
70+
kramdown (= 1.17.0)
71+
liquid (= 4.0.3)
72+
mercenary (~> 0.3)
73+
minima (= 2.5.1)
74+
nokogiri (>= 1.10.4, < 2.0)
75+
rouge (= 3.13.0)
76+
terminal-table (~> 1.4)
77+
github-pages-health-check (1.16.1)
78+
addressable (~> 2.3)
79+
dnsruby (~> 1.60)
80+
octokit (~> 4.0)
81+
public_suffix (~> 3.0)
82+
typhoeus (~> 1.3)
83+
html-pipeline (2.12.3)
84+
activesupport (>= 2)
85+
nokogiri (>= 1.4)
86+
http_parser.rb (0.6.0)
87+
i18n (0.9.5)
88+
concurrent-ruby (~> 1.0)
89+
jekyll (3.8.5)
90+
addressable (~> 2.4)
91+
colorator (~> 1.0)
92+
em-websocket (~> 0.5)
93+
i18n (~> 0.7)
94+
jekyll-sass-converter (~> 1.0)
95+
jekyll-watch (~> 2.0)
96+
kramdown (~> 1.14)
97+
liquid (~> 4.0)
98+
mercenary (~> 0.3.3)
99+
pathutil (~> 0.9)
100+
rouge (>= 1.7, < 4)
101+
safe_yaml (~> 1.0)
102+
jekyll-avatar (0.7.0)
103+
jekyll (>= 3.0, < 5.0)
104+
jekyll-coffeescript (1.1.1)
105+
coffee-script (~> 2.2)
106+
coffee-script-source (~> 1.11.1)
107+
jekyll-commonmark (1.3.1)
108+
commonmarker (~> 0.14)
109+
jekyll (>= 3.7, < 5.0)
110+
jekyll-commonmark-ghpages (0.1.6)
111+
commonmarker (~> 0.17.6)
112+
jekyll-commonmark (~> 1.2)
113+
rouge (>= 2.0, < 4.0)
114+
jekyll-default-layout (0.1.4)
115+
jekyll (~> 3.0)
116+
jekyll-feed (0.13.0)
117+
jekyll (>= 3.7, < 5.0)
118+
jekyll-gist (1.5.0)
119+
octokit (~> 4.2)
120+
jekyll-github-metadata (2.13.0)
121+
jekyll (>= 3.4, < 5.0)
122+
octokit (~> 4.0, != 4.4.0)
123+
jekyll-mentions (1.5.1)
124+
html-pipeline (~> 2.3)
125+
jekyll (>= 3.7, < 5.0)
126+
jekyll-optional-front-matter (0.3.2)
127+
jekyll (>= 3.0, < 5.0)
128+
jekyll-paginate (1.1.0)
129+
jekyll-readme-index (0.3.0)
130+
jekyll (>= 3.0, < 5.0)
131+
jekyll-redirect-from (0.15.0)
132+
jekyll (>= 3.3, < 5.0)
133+
jekyll-relative-links (0.6.1)
134+
jekyll (>= 3.3, < 5.0)
135+
jekyll-remote-theme (0.4.1)
136+
addressable (~> 2.0)
137+
jekyll (>= 3.5, < 5.0)
138+
rubyzip (>= 1.3.0)
139+
jekyll-sass-converter (1.5.2)
140+
sass (~> 3.4)
141+
jekyll-seo-tag (2.6.1)
142+
jekyll (>= 3.3, < 5.0)
143+
jekyll-sitemap (1.4.0)
144+
jekyll (>= 3.7, < 5.0)
145+
jekyll-swiss (1.0.0)
146+
jekyll-theme-architect (0.1.1)
147+
jekyll (~> 3.5)
148+
jekyll-seo-tag (~> 2.0)
149+
jekyll-theme-cayman (0.1.1)
150+
jekyll (~> 3.5)
151+
jekyll-seo-tag (~> 2.0)
152+
jekyll-theme-dinky (0.1.1)
153+
jekyll (~> 3.5)
154+
jekyll-seo-tag (~> 2.0)
155+
jekyll-theme-hacker (0.1.1)
156+
jekyll (~> 3.5)
157+
jekyll-seo-tag (~> 2.0)
158+
jekyll-theme-leap-day (0.1.1)
159+
jekyll (~> 3.5)
160+
jekyll-seo-tag (~> 2.0)
161+
jekyll-theme-merlot (0.1.1)
162+
jekyll (~> 3.5)
163+
jekyll-seo-tag (~> 2.0)
164+
jekyll-theme-midnight (0.1.1)
165+
jekyll (~> 3.5)
166+
jekyll-seo-tag (~> 2.0)
167+
jekyll-theme-minimal (0.1.1)
168+
jekyll (~> 3.5)
169+
jekyll-seo-tag (~> 2.0)
170+
jekyll-theme-modernist (0.1.1)
171+
jekyll (~> 3.5)
172+
jekyll-seo-tag (~> 2.0)
173+
jekyll-theme-primer (0.5.4)
174+
jekyll (> 3.5, < 5.0)
175+
jekyll-github-metadata (~> 2.9)
176+
jekyll-seo-tag (~> 2.0)
177+
jekyll-theme-slate (0.1.1)
178+
jekyll (~> 3.5)
179+
jekyll-seo-tag (~> 2.0)
180+
jekyll-theme-tactile (0.1.1)
181+
jekyll (~> 3.5)
182+
jekyll-seo-tag (~> 2.0)
183+
jekyll-theme-time-machine (0.1.1)
184+
jekyll (~> 3.5)
185+
jekyll-seo-tag (~> 2.0)
186+
jekyll-titles-from-headings (0.5.3)
187+
jekyll (>= 3.3, < 5.0)
188+
jekyll-watch (2.2.1)
189+
listen (~> 3.0)
190+
jemoji (0.11.1)
191+
gemoji (~> 3.0)
192+
html-pipeline (~> 2.2)
193+
jekyll (>= 3.0, < 5.0)
194+
just-the-docs (0.2.7)
195+
jekyll (~> 3.8.5)
196+
jekyll-seo-tag (~> 2.0)
197+
rake (~> 12.3.1)
198+
kramdown (1.17.0)
199+
liquid (4.0.3)
200+
listen (3.2.1)
201+
rb-fsevent (~> 0.10, >= 0.10.3)
202+
rb-inotify (~> 0.9, >= 0.9.10)
203+
mercenary (0.3.6)
204+
mini_portile2 (2.4.0)
205+
minima (2.5.1)
206+
jekyll (>= 3.5, < 5.0)
207+
jekyll-feed (~> 0.9)
208+
jekyll-seo-tag (~> 2.1)
209+
minitest (5.14.0)
210+
multipart-post (2.1.1)
211+
nokogiri (1.10.9)
212+
mini_portile2 (~> 2.4.0)
213+
octokit (4.18.0)
214+
faraday (>= 0.9)
215+
sawyer (~> 0.8.0, >= 0.5.3)
216+
pathutil (0.16.2)
217+
forwardable-extended (~> 2.6)
218+
public_suffix (3.1.1)
219+
rake (12.3.3)
220+
rb-fsevent (0.10.3)
221+
rb-inotify (0.10.1)
222+
ffi (~> 1.0)
223+
rouge (3.13.0)
224+
ruby-enum (0.7.2)
225+
i18n
226+
rubyzip (2.3.0)
227+
safe_yaml (1.0.5)
228+
sass (3.7.4)
229+
sass-listen (~> 4.0.0)
230+
sass-listen (4.0.0)
231+
rb-fsevent (~> 0.9, >= 0.9.4)
232+
rb-inotify (~> 0.9, >= 0.9.7)
233+
sawyer (0.8.2)
234+
addressable (>= 2.3.5)
235+
faraday (> 0.8, < 2.0)
236+
terminal-table (1.8.0)
237+
unicode-display_width (~> 1.1, >= 1.1.1)
238+
thread_safe (0.3.6)
239+
typhoeus (1.3.1)
240+
ethon (>= 0.9.0)
241+
tzinfo (1.2.6)
242+
thread_safe (~> 0.1)
243+
tzinfo-data (1.2019.3)
244+
tzinfo (>= 1.0.0)
245+
unicode-display_width (1.7.0)
246+
wdm (0.1.1)
247+
zeitwerk (2.3.0)
248+
249+
PLATFORMS
250+
ruby
251+
252+
DEPENDENCIES
253+
github-pages
254+
jemoji
255+
just-the-docs
256+
tzinfo (~> 1.2)
257+
tzinfo-data
258+
wdm (~> 0.1.0)
259+
260+
BUNDLED WITH
261+
1.17.3

0 commit comments

Comments
 (0)