-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87dd9b0
commit ca4e009
Showing
40 changed files
with
168 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Joan of Arc: Orléans Solo Helper</title> | ||
<meta name="description" content="Joan of Arc: Orléans 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"> | ||
</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Preset, defineConfig } from '@vite-pwa/assets-generator/config' | ||
|
||
const minimalPreset: Preset = { | ||
transparent: { | ||
sizes: [64, 192, 512], | ||
favicons: [[64, 'favicon.ico']] | ||
}, | ||
maskable: { | ||
sizes: [512] | ||
}, | ||
apple: { | ||
sizes: [60,76,120,152,180], | ||
padding: 0 | ||
} | ||
} | ||
|
||
export default defineConfig({ | ||
preset: minimalPreset, | ||
images: [ | ||
'public/img/icons/app-icon.png' | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { createI18n } from 'vue-i18n' | ||
import loadLocaleMessages from 'brdgm-commons/src/util/i18n/loadLocaleMessages' | ||
import messages from '@intlify/unplugin-vue-i18n/messages' | ||
|
||
export default createI18n({ | ||
legacy: false, | ||
locale: process.env.VUE_APP_I18N_LOCALE || 'en', | ||
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en', | ||
messages: loadLocaleMessages() | ||
locale: 'en', | ||
fallbackLocale: 'en', | ||
messages: messages | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import { fileURLToPath, URL } from 'node:url' | ||
import { defineConfig } from 'vite' | ||
import vue from '@vitejs/plugin-vue' | ||
import { VitePWA } from 'vite-plugin-pwa' | ||
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite' | ||
import path from 'path' | ||
import { description, appDeployName } from './package.json' | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
base: `/${appDeployName}/`, | ||
plugins: [ | ||
vue(), | ||
VitePWA({ | ||
registerType: 'prompt', | ||
manifestFilename: 'manifest.json', | ||
filename: 'service-worker.js', | ||
includeAssets: [ | ||
'favicon.ico', | ||
'img/icons/favicon.ico', | ||
'img/icons/favicon.svg', | ||
'img/icons/apple-touch-icon-60x60.png', | ||
'img/icons/apple-touch-icon-76x76.png', | ||
'img/icons/apple-touch-icon-120x120.png', | ||
'img/icons/apple-touch-icon-152x152.png', | ||
'img/icons/apple-touch-icon-180x180.png', | ||
'img/icons/maskable-icon-512x512.png' | ||
], | ||
manifest: { | ||
name: description, | ||
short_name: description, | ||
description: description, | ||
theme_color: '#333', | ||
background_color: '#000', | ||
icons: [ | ||
{ | ||
src: 'img/icons/pwa-64x64.png', | ||
sizes: '64x64', | ||
type: 'image/png' | ||
}, | ||
{ | ||
src: 'img/icons/pwa-192x192.png', | ||
sizes: '192x192', | ||
type: 'image/png' | ||
}, | ||
{ | ||
src: 'img/icons/pwa-512x512.png', | ||
sizes: '512x512', | ||
type: 'image/png' | ||
} | ||
] | ||
} | ||
}), | ||
VueI18nPlugin({ | ||
include: [path.resolve(__dirname, './src/locales/**')], | ||
strictMessage: false | ||
}) | ||
], | ||
resolve: { | ||
alias: { | ||
'@': fileURLToPath(new URL('./src', import.meta.url)) | ||
} | ||
}, | ||
server: { | ||
port: 8080 | ||
}, | ||
preview: { | ||
port: 8081 | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { fileURLToPath } from 'node:url' | ||
import { mergeConfig } from 'vite' | ||
import { configDefaults, defineConfig } from 'vitest/config' | ||
import viteConfig from './vite.config' | ||
|
||
export default mergeConfig( | ||
viteConfig, | ||
defineConfig({ | ||
test: { | ||
environment: 'jsdom', | ||
exclude: [...configDefaults.exclude, 'e2e/*'], | ||
root: fileURLToPath(new URL('./', import.meta.url)), | ||
transformMode: { | ||
web: [/\.[jt]sx$/], | ||
}, | ||
globals: true, | ||
coverage: { | ||
provider: 'istanbul' | ||
} | ||
} | ||
}) | ||
) |
Oops, something went wrong.