Skip to content

Commit 9af3db3

Browse files
author
Vitaly
committed
The fist public version (MVP)
1 parent 2facaf5 commit 9af3db3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1600
-333
lines changed

.browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

.editorconfig

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
end_of_line = lf
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
max_line_length = 120

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src/libs/**/*.js
2+
src/libs/**/*.d.ts
3+
/doc/**/*.*
4+
/app/**/*.*

.gitignore

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
/app
5+
/test-user-creds.json
6+
/test-runner
7+
/test-data
8+
/temp
9+
10+
# local env files
11+
.env.local
12+
.env.*.local
13+
14+
# Log files
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*
18+
19+
# Editor directories and files
20+
.idea
21+
.vscode
22+
.history
23+
.zed
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?
29+
30+
# Tmp files
31+
.~*
32+
/setup-w3n.bundle.js

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
!/src
2+
src/assets

.prettierrc.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"bracketSameLine": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "all",
8+
"parser": "typescript",
9+
"printWidth": 120,
10+
"tabWidth": 2,
11+
"useTabs": false,
12+
"singleAttributePerLine": true,
13+
"vueIndentScriptAndStyle": true
14+
}

.stylelint.config.cjs

-34
This file was deleted.

.stylelintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app/assets/*.css

eslint.config.js

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
import eslintJs from '@eslint/js';
2+
import tsEslint from 'typescript-eslint';
3+
import tsParser from '@typescript-eslint/parser';
4+
import vueParser from 'vue-eslint-parser';
5+
import pluginVue from 'eslint-plugin-vue';
6+
import pluginTsEslint from '@typescript-eslint/eslint-plugin';
7+
import pluginPrettier from 'eslint-plugin-prettier';
8+
import globals from 'globals';
9+
10+
export default [
11+
{
12+
ignores: ['**/@types/**/*.*', '**/app/**/*.*', '**/ci/**/*.*', '**/doc/**/*.*', '**/public/**/*.*'],
13+
},
14+
15+
eslintJs.configs['recommended'],
16+
...tsEslint.configs['recommended'],
17+
{
18+
files: ['**/*.{js,ts,jsx,tsx}'],
19+
plugins: {
20+
'@typescript-eslint': pluginTsEslint,
21+
prettier: pluginPrettier,
22+
},
23+
languageOptions: {
24+
parser: tsParser,
25+
parserOptions: {
26+
ecmaVersion: 'latest',
27+
sourceType: 'module',
28+
ecmaFeatures: {
29+
jsx: true,
30+
modules: true,
31+
experimentalObjectRestSpread: true,
32+
},
33+
},
34+
},
35+
rules: {
36+
'max-len': [
37+
'error',
38+
{
39+
code: 120,
40+
ignoreComments: true,
41+
ignoreUrls: true,
42+
ignoreStrings: true,
43+
ignoreTemplateLiterals: true,
44+
ignoreRegExpLiterals: true,
45+
},
46+
],
47+
'no-console': 'off',
48+
'no-debugger': 'off',
49+
'no-undef': 'off',
50+
'import/prefer-default-export': 'off',
51+
'default-case': 'off',
52+
'lines-between-class-members': 'off',
53+
'no-param-reassign': 'off',
54+
'no-return-assign': 'off',
55+
'arrow-parens': ['error', 'as-needed'],
56+
'object-curly-newline': [
57+
'error',
58+
{
59+
consistent: true,
60+
},
61+
],
62+
63+
'@typescript-eslint/triple-slash-reference': 'off',
64+
'@typescript-eslint/no-inferrable-types': [
65+
'error',
66+
{
67+
ignoreProperties: false,
68+
ignoreParameters: false,
69+
},
70+
],
71+
'@typescript-eslint/naming-convention': [
72+
'error',
73+
{
74+
selector: 'interface',
75+
format: ['PascalCase'],
76+
},
77+
],
78+
'@typescript-eslint/no-non-null-assertion': 'off',
79+
'@typescript-eslint/ban-ts-comment': 'off',
80+
'@typescript-eslint/no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
81+
},
82+
},
83+
84+
...pluginVue.configs['flat/base'],
85+
...pluginVue.configs['flat/essential'],
86+
...pluginVue.configs['flat/recommended'],
87+
{
88+
files: ['*.vue', '**/*.vue'],
89+
plugins: {
90+
'@typescript-eslint': pluginTsEslint,
91+
prettier: pluginPrettier,
92+
},
93+
languageOptions: {
94+
parser: vueParser,
95+
parserOptions: {
96+
parser: tsParser,
97+
ecmaVersion: 'latest',
98+
ecmaFeatures: {
99+
jsx: true,
100+
modules: true,
101+
experimentalObjectRestSpread: true,
102+
},
103+
},
104+
},
105+
rules: {
106+
'no-undef': 'off',
107+
'no-unsafe-optional-chaining': ['error'],
108+
109+
'@typescript-eslint/triple-slash-reference': 'off',
110+
'@typescript-eslint/no-inferrable-types': [
111+
'error',
112+
{
113+
ignoreProperties: false,
114+
ignoreParameters: false,
115+
},
116+
],
117+
'@typescript-eslint/naming-convention': [
118+
'error',
119+
{
120+
selector: 'interface',
121+
format: ['PascalCase'],
122+
},
123+
],
124+
'@typescript-eslint/no-non-null-assertion': 'off',
125+
'@typescript-eslint/ban-ts-comment': 'off',
126+
'@typescript-eslint/no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
127+
128+
'vue/no-v-model-argument': 'off',
129+
'vue/multi-word-component-names': 'off',
130+
'vue/no-duplicate-attributes': [
131+
'error',
132+
{
133+
allowCoexistClass: true,
134+
allowCoexistStyle: true,
135+
},
136+
],
137+
},
138+
},
139+
140+
{
141+
languageOptions: {
142+
globals: {
143+
...globals.browser,
144+
...globals.node,
145+
},
146+
},
147+
},
148+
149+
{
150+
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
151+
languageOptions: {
152+
globals: {
153+
...globals.jest,
154+
},
155+
},
156+
},
157+
];

index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en" class="default-theme colors">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/logo.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<script src="/setup-w3n.bundle.js"></script>
8+
<title>Files</title>
9+
</head>
10+
<body>
11+
<div id="main"></div>
12+
<script type="module" src="/src/main.ts"></script>
13+
</body>
14+
</html>

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Files",
33
"appDomain": "files.app.privacysafe.io",
4-
"version": "0.5.3",
4+
"version": "0.5.9",
55
"components": {
66
"/index.html": {
77
"startedBy": "user",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sorage.app.privacysafe.io",
3-
"version": "0.5.1",
3+
"version": "0.5.9",
44
"description": "Apps Storage",
55
"author": "3NSoft, Inc.",
66
"license": "GPL-3.0",
@@ -20,7 +20,7 @@
2020
"test:watch": "pnpm run clean:coverage && jest --watch"
2121
},
2222
"dependencies": {
23-
"@v1nt1248/3nclient-lib": "0.1.70",
23+
"@v1nt1248/3nclient-lib": "0.1.73",
2424
"dayjs": "1.11.13",
2525
"lodash": "4.17.21",
2626
"pdfjs-dist": "^4.10.38",

pnpm-lock.yaml

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/logo.png

-5.39 KB
Binary file not shown.

0 commit comments

Comments
 (0)