Skip to content

Commit

Permalink
Prettier single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Oct 4, 2022
1 parent 2baf2ae commit 18bd747
Show file tree
Hide file tree
Showing 97 changed files with 3,986 additions and 3,942 deletions.
28 changes: 28 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
_archive
.DS_*
.env.*
.htaccess
.htaccess*
.idea
.out.*
.rsync-ignore
*.local
*.log
*.spec.*
bg.jpg
build
data
dist
dist_electron
docker
internal
legacy
logs
node_modules
npm-debug.log
package-lock.json
pnpm-lock.yaml
tmp
video
www
yarn-error.log
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@antfu"
}
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
Expand All @@ -7,7 +7,7 @@ on:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: "0 0 * * 6"
- cron: '0 0 * * 6'

jobs:
analyse:
Expand Down
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
.env.*
.DS_*
.env.*
.htaccess
.htaccess*
.idea
.out.*
.rsync-ignore
*.local
*.log
app/public/faces
bg.jpg
bower_components
dist
dist_electron
docker
internal
legacy
legacy/app/public/faces
legacy/ios/Briefing/Briefing.xcodeproj/project.xcworkspace/xcuserdata/dirk.xcuserdatad/UserInterfaceState.xcuserstate
legacy/ios/Briefing/Briefing.xcodeproj/xcuserdata/dirk.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
legacy/ios/Briefing/Briefing.xcodeproj/xcuserdata/dirk.xcuserdatad/xcschemes/xcschememanagement.plist
logs
node_modules
npm-debug.log
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"trailingComma": "es5",
"semi": false
"semi": false,
"singleQuote": true
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
2 changes: 1 addition & 1 deletion docker-compose.development.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Please read https://github.com/holtwick/briefing/blob/master/docs/docker.md for proper use of Docker

version: "3"
version: '3'

services:
briefing:
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Please read https://github.com/holtwick/briefing/blob/master/docs/docker.md for proper use of Docker

version: "3"
version: '3'

services:
briefing:
Expand All @@ -10,7 +10,6 @@ services:
- ./data:/app/data
ports:
- 8080:8080

# networks:
# default:
# external:
Expand Down
2 changes: 1 addition & 1 deletion docker-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"engines": {
"node": ">=16.0.0"
}
}
}
2 changes: 1 addition & 1 deletion docs/coturn.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ proc-group=turnserver

Docker might be an alternative, but I didn't try by myself:

- https://hub.docker.com/r/instrumentisto/coturn
- https://hub.docker.com/r/coturn/coturn
- https://gabrieltanner.org/blog/turn-server

---
Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Most customization can be done by setting env variables, see [.env](../.env) for
Enable logging by entering the following in the browsers console:

```js
localStorage.zeed = "*"
localStorage.zeed = '*'
```

## Technology stack
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/docker-compose.briefing-proxy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3"
version: '3'

services:
briefing:
Expand Down
1 change: 0 additions & 1 deletion docs/examples/docker-compose.nginx-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ networks:
default:
external:
name: proxy

111 changes: 65 additions & 46 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,55 +1,74 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover"
/>

<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover" />
<title>Briefing - Secure direct video conferencing</title>

<title>Briefing - Secure direct video conferencing</title>
<meta
name="apple-itunes-app"
content="app-id=1510803601, app-clip-bundle-id=de.holtwick.Briefing.BriefingAppClip"
/>

<meta name="apple-itunes-app" content="app-id=1510803601, app-clip-bundle-id=de.holtwick.Briefing.BriefingAppClip" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<meta name="format-detection" content="telephone=no" />
<meta name="mobile-web-app-capable" content="yes" />

<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="format-detection" content="telephone=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="msapplication-TileColor" content="#272727" />
<meta name="theme-color" content="#5EA5FF" />
<meta
name="keywords"
content="video,chat,group,conferencing,secure,privacy,webrtc,vue,browser,webapp,app,communication,free,opensource,e2ee,p2p"
/>
<meta
property="og:description"
name="description"
content="Briefing - Start a secure anonymous video chat"
/>
<meta property="og:url" content="https://brie.fi/ng" />
<meta property="og:title" content="Briefing - Start a secure video chat" />
<meta property="og:image" content="https://brie.fi/og-image.png" />
<meta
property="og:image:alt"
content="Briefing - Start a secure video chat"
/>
<meta name="twitter:creator" content="@holtwick" />
<meta name="twitter:card" content="summary" />
<meta property="og:type" content="website" />

<meta name="msapplication-TileColor" content="#272727" />
<meta name="theme-color" content="#5EA5FF" />
<meta name="keywords"
content="video,chat,group,conferencing,secure,privacy,webrtc,vue,browser,webapp,app,communication,free,opensource,e2ee,p2p" />
<meta property="og:description" name="description" content="Briefing - Start a secure anonymous video chat" />
<meta property="og:url" content="https://brie.fi/ng" />
<meta property="og:title" content="Briefing - Start a secure video chat" />
<meta property="og:image" content="https://brie.fi/og-image.png" />
<meta property="og:image:alt" content="Briefing - Start a secure video chat" />
<meta name="twitter:creator" content="@holtwick" />
<meta name="twitter:card" content="summary" />
<meta property="og:type" content="website" />
<style type="text/css">
body {
background: #272727;
color: white;
}
</style>

<style type="text/css">
body {
background: #272727;
color: white;
}
</style>
<script type="module" src="/briefing-config.js"></script>
<script
defer
data-domain="brie.fi"
src="https://data.holtwick.de/js/plausible.js"
></script>
</head>

<script type="module" src="/briefing-config.js"></script>
<script defer data-domain="brie.fi" src="https://data.holtwick.de/js/plausible.js"></script>
</head>

<body>
<noscript>
<strong>
We're sorry but this app doesn't work properly without JavaScript
enabled. Please enable it to continue.
</strong>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>

</html>
<body>
<noscript>
<strong>
We're sorry but this app doesn't work properly without JavaScript
enabled. Please enable it to continue.
</strong>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@
"check": "vue-tsc --noEmit",
"clean": "rm -rf dist www",
"format": "prettier --write .",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"preview": "vite preview",
"reset": "rm -rf node_modules pnpm-lock.yaml dist dist_www www",
"serve": "cross-env ZEED=* LEVEL=i node dist/main.cjs",
"start": "cross-env ZEED=* LEVEL=a zerva src/zerva/index.ts",
"test": "cross-env ZEED=* LEVEL=i vitest -r src --globals",
"upload:dockerhub": "nr build:docker && cd docker && docker buildx build --platform linux/arm64,linux/amd64,linux/s390x,linux/arm/v7,linux/arm/v6 -t holtwick/briefing:$npm_package_version -t holtwick/briefing:latest --push .",
"upload:production": "nr build && rsync -rvz --exclude-from=.rsyncignore * docker-dev:briefing",
"upload:stage": "cross-env MODE=stage nr build:basis && rsync -rvz --exclude-from=.rsyncignore * docker-pro:briefing",
"upload:dockerhub": "nr build:docker && cd docker && docker buildx build --platform linux/arm64,linux/amd64,linux/s390x,linux/arm/v7,linux/arm/v6 -t holtwick/briefing:$npm_package_version -t holtwick/briefing:latest --push ."
"upload:stage": "cross-env MODE=stage nr build:basis && rsync -rvz --exclude-from=.rsyncignore * docker-pro:briefing"
},
"dependencies": {
"@sentry/browser": "^7.14.0",
Expand All @@ -46,12 +48,14 @@
"zeed": "^0.8.31"
},
"devDependencies": {
"@antfu/eslint-config": "^0.27.0",
"@antfu/ni": "^0.18.2",
"@types/node": "^18.7.23",
"@vitejs/plugin-vue2": "^2.0.0",
"@zerva/bin": "^0.14.2",
"@zerva/vite": "^0.14.2",
"cross-env": "^7.0.3",
"eslint": "^8.24.0",
"prettier": "^2.7.1",
"sass": "^1.55.0",
"tsc": "^2.0.4",
Expand Down
16 changes: 8 additions & 8 deletions public/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
console.info("Unregister previous service workers")
console.info('Unregister previous service workers')

try {
self.addEventListener("install", () => {
self.addEventListener('install', () => {
// Skip over the "waiting" lifecycle state, to ensure that our
// new service worker is activated immediately, even if there's
// another tab open controlled by our older service worker code.
self.skipWaiting()
})

self.addEventListener("activate", () => {
self.addEventListener('activate', () => {
// Optional: Get a list of all the current open windows/tabs under
// our service worker's control, and force them to reload.
// This can "unbreak" any open windows/tabs as soon as the new
// service worker activates, rather than users having to manually reload.
self.clients
.matchAll({
type: "window",
type: 'window',
})
.then((windowClients) => {
windowClients.forEach((windowClient) => {
Expand All @@ -24,7 +24,7 @@ try {
})
})

self.addEventListener("activate", function (e) {
self.addEventListener('activate', function (e) {
self.registration
.unregister()
.then(function () {
Expand All @@ -35,15 +35,15 @@ try {
})
})
} catch (err) {
console.error("Activate failed", err)
console.error('Activate failed', err)
}

try {
caches.keys().then(function (names) {
for (let name of names) caches.delete(name)
})
} catch (err) {
console.error("Cache delete failed", err)
console.error('Cache delete failed', err)
}

try {
Expand All @@ -53,5 +53,5 @@ try {
}
})
} catch (err) {
console.error("Unregistering failed", err)
console.error('Unregistering failed', err)
}
2 changes: 1 addition & 1 deletion scripts/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Some services prefer to start with app.js

import "./dist/main.cjs"
import './dist/main.cjs'
Loading

0 comments on commit 18bd747

Please sign in to comment.