Skip to content

Commit c8cb70e

Browse files
committed
Version 0.5.10
1 parent 9af3db3 commit c8cb70e

13 files changed

+97
-237
lines changed

.browserslistrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.editorconfig

Lines changed: 0 additions & 7 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 32 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.stylelint.config.cjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
module.exports = {
2+
plugins: ['stylelint-scss'],
3+
extends: ['stylelint-config-standard', 'stylelint-config-recommended-scss', 'stylelint-config-recommended-vue'],
4+
ignoreFiles: ['/app/assets/**/*.css'],
5+
6+
rules: {
7+
'length-zero-no-unit': null,
8+
'at-rule-empty-line-before': [
9+
'always',
10+
{
11+
ignore: ['after-comment'],
12+
except: ['inside-block', 'after-same-name'],
13+
},
14+
],
15+
'no-empty-source': null,
16+
'no-descending-specificity': null,
17+
'color-function-notation': null,
18+
'selector-class-pattern': null,
19+
'alpha-value-notation': 'number',
20+
'import-notation': 'string',
21+
'media-feature-name-no-unknown': [
22+
true,
23+
{
24+
ignoreMediaFeatureNames: ['/^prefers-/'],
25+
},
26+
],
27+
'at-rule-no-unknown': [
28+
true,
29+
{
30+
ignoreAtRules: ['include', 'function', 'return', 'mixin', 'if', 'else', 'for', 'extend', 'each', 'content'],
31+
},
32+
],
33+
},
34+
};

.stylelintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

eslint.config.js

Lines changed: 0 additions & 157 deletions
This file was deleted.

index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

manifest.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"name": "Files",
33
"appDomain": "files.app.privacysafe.io",
4-
"version": "0.5.9",
4+
"icon": "logo.png",
5+
"description": "Secure file storage.",
6+
"version": "0.5.10",
7+
58
"components": {
69
"/index.html": {
710
"startedBy": "user",
@@ -42,8 +45,7 @@
4245
"minWidth": 1024,
4346
"minHeight": 600,
4447
"maxWidth": 1680
45-
},
46-
"icon": "logo.png"
48+
}
4749
}
4850
}
4951
}

public/logo.png

5.39 KB
Loading

vite.config.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import { resolve } from 'node:path';
2+
import { defineConfig } from 'vite';
3+
import vue from '@vitejs/plugin-vue';
4+
import vueDevTools from 'vite-plugin-vue-devtools';
5+
6+
function _resolve(dir: string) {
7+
return resolve(__dirname, dir);
8+
}
9+
10+
// https://vitejs.dev/config/
11+
// @ts-ignore
12+
export default defineConfig(config => {
13+
const isDev = config.mode === 'development';
14+
// const isProd = mode === 'production'
15+
16+
const server = {
17+
port: '3030',
18+
cors: { origin: '*' },
19+
};
20+
21+
const css = {
22+
preprocessorOptions: {
23+
scss: {
24+
api: 'modern-compiler',
25+
},
26+
},
27+
};
28+
29+
const define = { 'process.env': {} };
30+
31+
const plugins = [vue(), vueDevTools()];
32+
33+
let optimizeDeps = {};
34+
if (isDev) {
35+
optimizeDeps = {
36+
include: ['vue', 'vue-router', 'pinia', 'lodash', 'dayjs'],
37+
};
38+
}
39+
40+
const build = {
41+
outDir: 'app',
42+
};
43+
44+
return {
45+
server,
46+
css,
47+
build,
48+
define,
49+
plugins,
50+
optimizeDeps,
51+
resolve: {
52+
alias: {
53+
vue: 'vue/dist/vue.esm-bundler.js',
54+
'@': _resolve('./src'),
55+
},
56+
},
57+
};
58+
});

0 commit comments

Comments
 (0)