Initial commit

This commit is contained in:
Robin Grenzdörfer 2023-12-24 11:38:32 +01:00
commit f71174d884
1963 changed files with 24504 additions and 0 deletions

1
.basic-auth-code Normal file
View File

@ -0,0 +1 @@
code:$apr1$AeePIAei$E9E6E6jtFFtwmtGhIEG.Y/

2
.basic-auth-web Normal file
View File

@ -0,0 +1,2 @@
code:$apr1$AeePIAei$E9E6E6jtFFtwmtGhIEG.Y/
web:$apr1$/zc/TBtD$ZGr3RqPiULYMD0kJUup5E0

118
.drone.yml Normal file
View File

@ -0,0 +1,118 @@
kind: pipeline
type: docker
name: default
workspace:
path: /drone/workdir
steps:
- name: load dependencies
image: node:18
commands:
- yarn install
- name: modify master config
image: bash
commands:
- bash scripts/modify-config.sh master https://tibi-svelte-starter.code.testversion.online/
when:
branch: [master]
# - name: modify dev config
# image: bash
# commands:
# - bash scripts/modify-config.sh dev http://tibi-svelte-starter.code.testversion.online/
# when:
# branch: [dev]
- name: build
image: node:18
commands:
- yarn build
# - name: build admin
# image: node:18
# commands:
# - yarn build:admin
# - name: build ssr
# image: node:18
# commands:
# - yarn build:server
# - name: build legacy
# image: node:18
# commands:
# - yarn build:legacy
- name: modify html
image: bash
commands:
- bash scripts/preload-meta.sh public/spa.html
- bash scripts/preload-meta.sh public/spa.html > frontend/spa.html
- export stamp=`date +%s`
- echo $$stamp
- sed -i s/__TIMESTAMP__/$$stamp/g frontend/spa.html
- sed -i s/__TIMESTAMP__/$$stamp/g frontend/serviceworker.js
- cat frontend/serviceworker.js
- cp frontend/spa.html api/templates/spa.html
- cat frontend/spa.html
- cat api/templates/spa.html
# - name: deploy dev
# image: instrumentisto/rsync-ssh
# environment:
# RSYNC_USER: rkarchitekten_rsync_dev
# RSYNC_PASS:
# from_secret: rsync_dev
# commands:
# - apk add --no-cache sshpass
# - scripts/deploy.sh ftp1.webmakers.de $${RSYNC_USER} $${RSYNC_PASS}
# when:
# branch: [dev]
# event: [push]
- name: copy api config to staging
image: instrumentisto/rsync-ssh
volumes:
- name: data
path: /data
commands:
- rsync -av api /data/
when:
branch: [dev]
event: [push]
- name: review in staging
image: docker/compose:1.22.0
commands:
- docker-compose -p ${DRONE_BRANCH}-${DRONE_REPO_NAME}-${DRONE_REPO_OWNER} up -d --build --remove-orphans
volumes:
- name: docker
path: /var/run/docker.sock
when:
branch: [dev]
event: [push]
- name: deploy master
image: instrumentisto/rsync-ssh
environment:
RSYNC_USER: rkarchitekten_rsync_master
RSYNC_PASS:
from_secret: rsync_master
commands:
- apk add --no-cache sshpass curl
- scripts/deploy.sh ftp1.webmakers.de $${RSYNC_USER} $${RSYNC_PASS}
- curl -X POST "https://tibi-svelte-starter.code.testversion.online//api/ssr?token=__SSR_TOKEN__&clear=1"
when:
branch: [master]
event: [push]
########
volumes:
- name: data
host:
path: /data/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_BRANCH}
- name: docker
host:
path: /var/run/docker.sock

6
.env Normal file
View File

@ -0,0 +1,6 @@
PROJECT_NAME=tibi-svelte-starter
TIBI_PREFIX=tibi
TIBI_NAMESPACE=__NAMESPACE__
# code-server user
UID=100
GID=101

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
.yarn/cache/** filter=lfs diff=lfs merge=lfs -text

18
.gitignore vendored Normal file
View File

@ -0,0 +1,18 @@
_temp/
node_modules/
frontend/
build/
build_ssr/
stat/
yarn-error.log
/media/
/test.js
/api/templates/spa.html
/api/hooks/lib/app.server*
cypress/_old
cypress/videos
cypress/screenshots
.~lock.*
coverage/
.nyc_output/
/tmp/

18
.prettierrc Normal file
View File

@ -0,0 +1,18 @@
{
"printWidth": 120,
"tabWidth": 4,
"singleQuote": false,
"trailingComma": "es5",
"semi": false,
"newline-before-return": true,
"no-duplicate-variable": [
true,
"check-parameters"
],
"no-var-keyword": true,
"svelteSortOrder": "scripts-markup-styles",
"svelteStrictMode": true,
"svelteBracketNewLine": true,
"svelteAllowShorthand": true,
"svelteIndentScriptAndStyle": true
}

15
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
// Verwendet IntelliSense zum Ermitteln möglicher Attribute.
// Zeigen Sie auf vorhandene Attribute, um die zugehörigen Beschreibungen anzuzeigen.
// Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-msedge",
"request": "launch",
"name": "Launch Edge against localhost",
"url": "http://localhost:5501/",
"webRoot": "${workspaceFolder}/dist"
}
]
}

68
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,68 @@
{
"eslint.alwaysShowStatus": true,
"tslint.autoFixOnSave": true,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[markdown]": {
"editor.wordWrap": "on",
"editor.defaultFormatter": "vscode.markdown-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"liveServer.settings.root": "/dist",
"liveServer.settings.file": "spa.html",
"liveServer.settings.port": 5502,
"liveServer.settings.proxy": {
"enable": true,
"baseUri": "/api",
"proxyUri": "http://127.0.0.1:8080/api/v1/_/__NAMESPACE__"
},
"extensions.ignoreRecommendations": true,
"files.autoSave": "off",
"typescript.tsc.autoDetect": "off",
"npm.autoDetect": "off",
"debug.allowBreakpointsEverywhere": true,
"html.autoClosingTags": false,
"yaml.schemas": {
"node_modules/tibi-types/schemas/api-config/config.json": "api/config.y*ml",
"node_modules/tibi-types/schemas/api-config/collection.json": "api/collections/*.y*ml",
"node_modules/tibi-types/schemas/api-config/field.json": "api/collections/fields/*.y*ml"
},
"yaml.customTags": ["!include scalar"],
"filewatcher.commands": [
{
"match": "/api/.*(\\.ya?ml|js|env)$",
"isAsync": false,
"cmd": "docker compose -p tibi-svelte-starter-local restart tibiserver",
"event": "onFileChange"
}
],
"i18n-ally.localesPaths": [],
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#296221",
"activityBar.background": "#296221",
"activityBar.foreground": "#ffffff",
"activityBar.inactiveForeground": "#ffffff99",
"activityBarBadge.background": "#2fce11",
"activityBarBadge.foreground": "#15202b",
"commandCenter.border": "#00000099",
"editorGroup.border": "#296221",
"panel.border": "#296221",
"sash.hoverBorder": "#296221",
"sideBar.border": "#296221",
"statusBar.background": "#58585a",
"statusBar.border": "#58585a",
"statusBar.foreground": "#ffffff",
"statusBarItem.hoverBackground": "#296221",
"statusBarItem.remoteBackground": "#58585a",
"statusBarItem.remoteForeground": "#ffffff",
"tab.activeBorder": "#296221",
"titleBar.activeBackground": "#58585a",
"titleBar.activeForeground": "#ffffff",
"titleBar.border": "#58585a",
"titleBar.inactiveBackground": "#58585a99",
"titleBar.inactiveForeground": "#ffffff99"
}
}

BIN
.yarn/cache/@ampproject-remapping-npm-2.2.0-114878fa50-d74d170d06.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@aws-crypto-sha256-js-npm-2.0.0-352a1e69d9-e4abf9baec.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@aws-crypto-sha256-js-npm-2.0.2-09dc003206-9125ec65a2.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@aws-crypto-util-npm-2.0.2-aebd3ca6c4-13cb33a390.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-client-sso-npm-3.212.0-af9e1bd554-14426e2001.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-client-sts-npm-3.212.0-e6a545cbba-6ac588957b.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-hash-node-npm-3.212.0-12275bfb8c-f5855ff20e.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-protocol-http-npm-3.212.0-76444391f0-6330d3259a.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-signature-v4-npm-3.212.0-351297d360-dcbdb41fcb.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-smithy-client-npm-3.212.0-ef4b32aed3-ecaa51cd72.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-types-npm-3.212.0-a8e918442e-ba085aa2f7.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-url-parser-npm-3.212.0-998b61f48b-cd1c837a25.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-util-base64-npm-3.208.0-5d53487036-2ccab3453a.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-util-endpoints-npm-3.212.0-915e8170c0-6c1d9e47de.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
.yarn/cache/@aws-sdk-util-utf8-node-npm-3.208.0-1def8be722-0f4c1d0d3f.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-cli-npm-7.19.3-1e9432d014-baa2317754.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-code-frame-npm-7.18.6-25229a7e34-195e2be317.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-compat-data-npm-7.20.1-4eea2d1c20-989b9b7a6f.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-core-npm-7.20.2-7fb00344fc-98faaaef26.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
.yarn/cache/@babel-generator-npm-7.20.4-97edf6df16-967b59f18e.zip (Stored with Git LFS) vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More