Skip to content

Commit

Permalink
Millennia Solo Helper (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert authored Dec 27, 2024
1 parent abc915c commit 67083e0
Show file tree
Hide file tree
Showing 124 changed files with 16,651 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
>= 0.5%
last 2 major versions
not dead
Chrome >= 90
Firefox >= 91
Firefox ESR
iOS >= 15
Safari >= 15
not Explorer <= 11
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build

on:
push:
branches-ignore:
- experimental/**
- master
pull_request:
branches-ignore:
- experimental/**
- master
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: brdgm/github-action-build@v1
with:
sonar-token: ${{ secrets.SONARCLOUD_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy

on:
push:
branches:
- master
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: Production
url: "https://brdgm.me/${{ steps.deploy.outputs.app-deploy-name }}"

steps:
- uses: brdgm/github-action-deploy@v1
id: deploy
with:
gh-site-deploy-pat: ${{ secrets.GH_SITE_DEPLOY_PAT }}
gh-site-deploy-username: ${{ secrets.GH_SITE_DEPLOY_USERNAME }}
gh-site-deploy-email: ${{ secrets.GH_SITE_DEPLOY_EMAIL }}
gh-site-deploy-name: ${{ secrets.GH_SITE_DEPLOY_NAME }}
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release and Deploy

on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
environment:
name: Production
url: "https://brdgm.me/${{ steps.release.outputs.app-deploy-name }}"

permissions:
contents: write

steps:
- uses: brdgm/github-action-release@v1
id: release
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
gh-site-deploy-pat: ${{ secrets.GH_SITE_DEPLOY_PAT }}
gh-site-deploy-username: ${{ secrets.GH_SITE_DEPLOY_USERNAME }}
gh-site-deploy-email: ${{ secrets.GH_SITE_DEPLOY_EMAIL }}
gh-site-deploy-name: ${{ secrets.GH_SITE_DEPLOY_NAME }}
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
14 changes: 14 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
env: {
test: {
plugins: [
['istanbul', {
useInlineSourceMaps: false
}]
]
}
}
}
30 changes: 30 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import pluginVue from 'eslint-plugin-vue'
import vueTsEslintConfig from '@vue/eslint-config-typescript'
import pluginVitest from '@vitest/eslint-plugin'

export default [
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
},

{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
},

...pluginVue.configs['flat/essential'],
...vueTsEslintConfig(),

{
...pluginVitest.configs.recommended,
files: [
'tests/**/*.{j,t}s?(x)',
'src/**/__tests__/*'
],
rules: {
'@typescript-eslint/no-unused-expressions': 'off'
},
},

]
33 changes: 33 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Millennia Solo Helper</title>
<meta name="description" content="Autobahn Solo Helper">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="theme-color" content="#333">
<meta charset="utf-8">
<link rel="icon" sizes="any" href="/favicon.ico">
<link rel="icon" type="image/svg+xml" href="/img/icons/favicon.svg">
<link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-180x180.png" sizes="180x180">
<link rel="mask-icon" href="/img/icons/maskable-icon-512x512.png" color="#fff">
<!-- Matomo Tracking: Cookie-less and GDPR-conformant -->
<script>
var _paq = window._paq = window._paq || [];
(function() {
var u="//matomo.brdgm.me/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</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.ts"></script>
</body>
</html>
Loading

0 comments on commit 67083e0

Please sign in to comment.