Skip to content

Commit 8040e8d

Browse files
ctp init app
0 parents  commit 8040e8d

File tree

249 files changed

+12754
-0
lines changed

Some content is hidden

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

249 files changed

+12754
-0
lines changed

.env

Whitespace-only changes.

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
app/res/img/** filter=lfs diff=lfs merge=lfs -text
2+
*.png filter=lfs diff=lfs merge=lfs -text
3+
*.jpg filter=lfs diff=lfs merge=lfs -text
4+
*.webp filter=lfs diff=lfs merge=lfs -text
5+
*.avif filter=lfs diff=lfs merge=lfs -text
6+
*.tiff filter=lfs diff=lfs merge=lfs -text
7+
*.ico filter=lfs diff=lfs merge=lfs -text
8+
public/res/font/** filter=lfs diff=lfs merge=lfs -text

.github/workflows/CD_dev.yml

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/CD_master.yml

Lines changed: 384 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/CI.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on: pull_request
4+
5+
jobs:
6+
7+
CI:
8+
name: CI
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 15
11+
12+
steps:
13+
- name: "Checkout"
14+
uses: actions/checkout@master
15+
- name: "Setup node"
16+
uses: actions/setup-node@master
17+
with:
18+
node-version: '16.x'
19+
20+
- name: Installing runner dependencies
21+
run: npm i
22+
23+
- name: "Building"
24+
run: npm run build --if-present
25+
26+
- name: "Testing"
27+
run: npm test --if-present

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
node_modules
2+
test.js
3+
dist/
4+
.DS_Store
5+
.idea*
6+
.deploy
7+
8+
package-lock.json
9+
pnpm-lock.yaml
10+
11+
public/sw.js
12+
public/sw.*.js
13+
14+
ecosystem.config.js
15+
.ecosystemCache
16+
pm2Reload.js
17+
18+
19+
deploy.zip
20+
debug.log
21+
pugBody.gen.ts

README.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Lb anmeldung
2+
3+
Notifies when website changes.
4+
5+
## Contribute
6+
7+
The frontend / client is referred as app. The backend as server.
8+
9+
### Development env
10+
11+
#### Develop app
12+
13+
The source of the app can be found in `/app` and the serviceWorker's in `/serviceWorker`.
14+
15+
```
16+
$ npm run devApp
17+
```
18+
19+
Builds the app on save & spins up a live (notifies client to reload on change) repl server, whose source can be found in `/replServer/src`.
20+
21+
#### Develop server
22+
23+
Source found in `/server/src`.
24+
25+
```
26+
$ npm run devServer
27+
```
28+
29+
Builds the server & replApp on save. The source of the replApp can be found under `/replApp`. No live reloading available, since its the prod server.
30+
31+
#### Develop server & app
32+
33+
```
34+
$ npm run dev
35+
```
36+
37+
Watches production server & app and builds them on save. No live reloading avalible, since its the prod server.
38+
39+
### Deploy
40+
41+
#### Build scripts
42+
43+
Build everything for production
44+
45+
```
46+
$ npm run build
47+
```
48+
49+
#### Start
50+
51+
Start the server with default options
52+
53+
```
54+
$ npm start
55+
```
56+
57+
Since this is a [npm-run-script](https://docs.npmjs.com/cli/run-script), cli options must be escaped in order to distinguish them from npm options. Simply prefix all options with **one** `--` like so:
58+
59+
```
60+
$ npm start -- --port 1234 --outageReciliance strong
61+
```
62+
63+
##### CLI options
64+
65+
Here is a list of all recognised cli options:
66+
67+
> TODO

app/_component/_icon/icon.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* There is a bug in chrome which staggers transitions if declared in differnet shadowrrots on tspan... 04/06/2020 */
2+
3+
:host {
4+
display: inline-block;
5+
width: 32px;
6+
height: 32px;
7+
--color: #000;
8+
}
9+
10+
11+
svg {
12+
width: inherit;
13+
height: inherit;
14+
display: block;
15+
}
16+
17+
:host svg *:not(tspan) {
18+
transition: inherit
19+
}

app/_component/_icon/icon.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Component from "../component"
2+
3+
4+
export default abstract class Icon extends Component<false> {
5+
constructor() {
6+
super(false)
7+
}
8+
stl() {
9+
return require("./icon.css").toString()
10+
}
11+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
:host {
2+
width: 100%;
3+
height: 100%;
4+
display: block;
5+
}
6+
7+
component-body {
8+
display: flex;
9+
width: 100%;
10+
height: 100%;
11+
justify-content: center;
12+
align-items: center;
13+
}

0 commit comments

Comments
 (0)