underpost 2.7.7 → 2.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ghpkg.yml +75 -0
- package/.github/workflows/publish.yml +21 -3
- package/.github/workflows/pwa-microservices-template.test.yml +30 -0
- package/bin/deploy.js +13 -2
- package/bin/index.js +1 -1
- package/docker-compose.yml +1 -1
- package/package.json +1 -1
- package/src/client/components/core/Css.js +0 -222
- package/src/client/components/core/Docs.js +1 -1
- package/src/client/components/core/Translate.js +6 -2
- package/src/client/components/core/Worker.js +14 -4
- package/src/client/services/default/default.management.js +118 -120
- package/src/client/ssr/Render.js +224 -3
- package/src/client/ssr/common/Alert.js +75 -0
- package/src/client/ssr/common/SsrCore.js +91 -0
- package/src/client/ssr/common/Translate.js +26 -0
- package/src/client/ssr/common/Worker.js +28 -0
- package/src/client/ssr/{body-components → components/body}/CacheControl.js +1 -1
- package/src/client/ssr/{body-components → components/body}/DefaultSplashScreen.js +15 -4
- package/src/client/ssr/offline/default.index.js +31 -0
- package/src/client/ssr/pages/404.js +12 -0
- package/src/client/ssr/pages/500.js +12 -0
- package/src/client/sw/default.sw.js +11 -9
- package/src/mailer/EmailRender.js +1 -1
- package/src/server/client-build-live.js +6 -0
- package/src/server/client-build.js +95 -25
- package/src/server/client-formatted.js +11 -1
- package/src/server/client-icons.js +1 -1
- package/src/server/conf.js +9 -7
- package/src/server/runtime.js +24 -7
- package/.github/workflows/test.yml +0 -80
- package/src/client/ssr/head-components/Microdata.js +0 -11
- package/src/client/ssr/head-components/Production.js +0 -1
- package/src/client/ssr/head-components/Seo.js +0 -14
- /package/src/client/ssr/{email-components → components/email}/DefaultRecoverEmail.js +0 -0
- /package/src/client/ssr/{email-components → components/email}/DefaultVerifyEmail.js +0 -0
- /package/src/client/ssr/{head-components → components/head}/Css.js +0 -0
- /package/src/client/ssr/{head-components → components/head}/DefaultScripts.js +0 -0
- /package/src/client/ssr/{head-components → components/head}/PwaDefault.js +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
name: Test
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches: ['master']
|
|
5
|
-
pull_request:
|
|
6
|
-
branches: ['master']
|
|
7
|
-
jobs:
|
|
8
|
-
test:
|
|
9
|
-
name: Node ${{ matrix.node }} on ${{ matrix.os }}
|
|
10
|
-
runs-on: ${{ matrix.os }}
|
|
11
|
-
strategy:
|
|
12
|
-
matrix:
|
|
13
|
-
node-version: [21.x]
|
|
14
|
-
os: [ubuntu-latest]
|
|
15
|
-
# os: [ubuntu-latest, windows-latest]
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- name: Clone repository
|
|
19
|
-
uses: actions/checkout@v3
|
|
20
|
-
|
|
21
|
-
- name: Set Node.js version
|
|
22
|
-
uses: actions/setup-node@v3
|
|
23
|
-
with:
|
|
24
|
-
node-version: ${{ matrix.node }}
|
|
25
|
-
|
|
26
|
-
- name: Get npm root
|
|
27
|
-
run: sudo npm root -g
|
|
28
|
-
|
|
29
|
-
- name: Install underpost cli
|
|
30
|
-
run: sudo npm install -g underpost
|
|
31
|
-
|
|
32
|
-
- name: Run test
|
|
33
|
-
run: sudo underpost test
|
|
34
|
-
|
|
35
|
-
# for travis
|
|
36
|
-
# - name: Run coveralls
|
|
37
|
-
# run: npm run coveralls # nyc npm run test --reporter=text-lcov | coveralls -v
|
|
38
|
-
|
|
39
|
-
# - name: Test token
|
|
40
|
-
# run: echo "${{ secrets.COVERALLS_REPO_TOKEN }}"
|
|
41
|
-
|
|
42
|
-
# - name: Coveralls
|
|
43
|
-
# uses: coverallsapp/github-action@master
|
|
44
|
-
# with:
|
|
45
|
-
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
46
|
-
# flag-name: ${{matrix.os}}-node-${{ matrix.node }}
|
|
47
|
-
# parallel: true
|
|
48
|
-
|
|
49
|
-
# - name: Coveralls
|
|
50
|
-
# uses: coverallsapp/github-action@master
|
|
51
|
-
# with:
|
|
52
|
-
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
53
|
-
# path-to-lcov: '/usr/local/lib/node_modules/underpost/coverage/lcov.info'
|
|
54
|
-
# env:
|
|
55
|
-
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
56
|
-
# COVERALLS_GIT_BRANCH: "${{ github.ref }}"
|
|
57
|
-
|
|
58
|
-
# - name: Coveralls
|
|
59
|
-
# run: node ./node_modules/coveralls-next/bin/coveralls.js # cat ./coverage/lcov.info |
|
|
60
|
-
# env:
|
|
61
|
-
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
62
|
-
# COVERALLS_SERVICE_NAME: CI-pipeline
|
|
63
|
-
# COVERALLS_SERVICE_JOB_ID: ${{github.run_id}}
|
|
64
|
-
# COVERALLS_SERVICE_JOB_NUMBER: ${{github.run_number}}
|
|
65
|
-
# COVERALLS_FLAG_NAME: ${{matrix.os}}-node-${{ matrix.node }}
|
|
66
|
-
# COVERALLS_PARALLEL: true
|
|
67
|
-
# NODE_COVERALLS_DEBUG: 1
|
|
68
|
-
# finish:
|
|
69
|
-
# needs: test
|
|
70
|
-
# runs-on: ubuntu-latest
|
|
71
|
-
# steps:
|
|
72
|
-
# - name: Clone repository
|
|
73
|
-
# uses: actions/checkout@v2
|
|
74
|
-
|
|
75
|
-
# - name: Coveralls Finished
|
|
76
|
-
# run: |
|
|
77
|
-
# curl -kv -d 'payload[build_num]=${{github.run_id}}&payload[status]=done' https://coveralls.io/webhook?repo_token=${COVERALLS_REPO_TOKEN}
|
|
78
|
-
# env:
|
|
79
|
-
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
80
|
-
# COVERALLS_GIT_BRANCH: '${{ github.ref }}'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
SrrComponent = () => html``;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
SrrComponent = ({ title, author, keywords, description, themeColor, ssrPath, canonicalURL, thumbnail }) => html`
|
|
2
|
-
<link rel="canonical" href="${canonicalURL}" />
|
|
3
|
-
|
|
4
|
-
<meta name="author" content="${author}" />
|
|
5
|
-
<meta name="keywords" content="${keywords.join(',')}" />
|
|
6
|
-
<meta name="description" content="${description}" />
|
|
7
|
-
<meta name="theme-color" content="${themeColor}" />
|
|
8
|
-
|
|
9
|
-
<meta property="og:title" content="${title}" />
|
|
10
|
-
<meta property="og:description" content="${description}" />
|
|
11
|
-
<meta property="og:image" content="${thumbnail}" />
|
|
12
|
-
<meta property="og:url" content="${canonicalURL}" />
|
|
13
|
-
<meta name="twitter:card" content="summary_large_image" />
|
|
14
|
-
`;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|