File tree Expand file tree Collapse file tree 6 files changed +47
-12
lines changed Expand file tree Collapse file tree 6 files changed +47
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Examples
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' main'
7
+ paths :
8
+ - ' examples/**/*'
9
+ pull_request :
10
+ paths :
11
+ - ' examples/**/*'
12
+
13
+ jobs :
14
+ ci :
15
+ runs-on : ubuntu-latest
16
+ strategy :
17
+ matrix :
18
+ path :
19
+ - nextjs-pages
20
+ - vite-ts
21
+ fail-fast : false
22
+ steps :
23
+ - uses : actions/checkout@v3
24
+
25
+
26
+ with :
27
+ node-version-file : ' .nvmrc'
28
+
29
+ - name : Install
30
+ run : npm ci
31
+ working-directory : examples/${{ matrix.path }}
32
+
33
+ - name : Build
34
+ run : npm run build
35
+ working-directory : examples/${{ matrix.path }}
36
+
37
+ - name : Test
38
+ run : npm run test --if-present
39
+ working-directory : examples/${{ matrix.path }}
Original file line number Diff line number Diff line change 19
19
- charts
20
20
- cypress-commands
21
21
- main/src/components
22
+ fail-fast : false
22
23
23
24
steps :
24
25
- name : Checkout
Original file line number Diff line number Diff line change 1
1
## UI5 Web Components React - Next.js Pages Router Example
2
2
3
3
This example shows how to use the [ Next.js] ( https://nextjs.org/ ) Pages Router with UI5 Web Components for React.
4
- It includes the required adjustments in ` src/ pages/_app.tsx` and ` src/ pages/_document.tsx` as well as a very simple Todo
4
+ It includes the required adjustments in ` pages/_app.tsx ` and ` pages/_document.tsx ` as well as a very simple Todo
5
5
App.
6
6
7
7
## How to use this template
@@ -35,13 +35,13 @@ pnpm dev
35
35
36
36
Open [ http://localhost:3000 ] ( http://localhost:3000 ) with your browser to see the result.
37
37
38
- You can start editing the page by modifying ` src/ pages/index.tsx` . The page auto-updates as you edit the file.
38
+ You can start editing the page by modifying ` pages/index.tsx ` . The page auto-updates as you edit the file.
39
39
40
40
[ API routes] ( https://nextjs.org/docs/api-routes/introduction ) can be accessed
41
41
on [ http://localhost:3000/api/todods ] ( http://localhost:3000/api/todos ) . This endpoint can be edited
42
- in ` src/ pages/api/todos.ts` .
42
+ in ` pages/api/todos.ts ` .
43
43
44
- The ` src/ pages/api` directory is mapped to ` /api/* ` . Files in this directory are treated
44
+ The ` pages/api ` directory is mapped to ` /api/* ` . Files in this directory are treated
45
45
as [ API routes] ( https://nextjs.org/docs/api-routes/introduction ) instead of React pages.
46
46
47
47
## Learn More
Original file line number Diff line number Diff line change 5
5
}
6
6
7
7
.scrollContainer {
8
- height : calc (100vh - var ( --_ui5_shellbar_root_height ) );
8
+ height : calc (100vh - 3.25 rem );
9
9
overflow-y : auto;
10
10
position : relative;
11
11
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export default function TodoDetails({ todo }: Props) {
29
29
< >
30
30
< DynamicPage showHideHeaderButton = { false } headerTitle = { < DynamicPageTitle header = { todo ?. title } /> } >
31
31
< MessageStrip design = { MessageStripDesign . Information } >
32
- Since this is only a demo app, adjustments made here on this page won't be reflected in the todo list.
32
+ { ` Since this is only a demo app, adjustments made here on this page won't be reflected in the todo list.` }
33
33
</ MessageStrip >
34
34
< Form >
35
35
< FormItem label = { 'Title' } >
Original file line number Diff line number Diff line change 8
8
overflow-x : hidden;
9
9
padding : 0 ;
10
10
margin : 0 ;
11
- }
12
-
13
- a {
14
- color : inherit;
15
- text-decoration : none;
16
- }
11
+ }
You can’t perform that action at this time.
0 commit comments