Skip to content

Commit 1780a2f

Browse files
committed
Merge remote-tracking branch 'viewer/master'
2 parents 6c497e4 + df0bf57 commit 1780a2f

Some content is hidden

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

52 files changed

+20668
-65
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

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

.eslintrc.js

+20-31
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,26 @@
11
module.exports = {
2-
root: true,
2+
extends: ["eslint:recommended", "plugin:vue/recommended"],
3+
rules: {
4+
"vue/no-unused-vars": "error",
5+
"vue/html-indent": ["error", 4, { alignAttributesVertically: false }],
6+
"vue/max-attributes-per-line": 0,
7+
"vue/html-closing-bracket-newline": [
8+
"error",
9+
{
10+
singleline: "never",
11+
multiline: "never",
12+
},
13+
],
14+
"vue/attribute-hyphenation": ["error", "never"],
15+
"vue/singleline-html-element-content-newline": "off",
16+
"no-case-declarations": "off",
17+
"no-unused-vars": "off",
18+
quotes: ["error", "single"],
19+
},
320
env: {
4-
node: true
21+
node: true,
522
},
623
parserOptions: {
7-
ecmaVersion: 2020
24+
parser: "@typescript-eslint/parser",
825
},
9-
parser: '@typescript-eslint/parser',
10-
plugins: [
11-
'@typescript-eslint',
12-
],
13-
extends: [
14-
'eslint:recommended',
15-
'plugin:@typescript-eslint/eslint-recommended',
16-
'plugin:@typescript-eslint/recommended',
17-
],
18-
rules: {
19-
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
20-
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
21-
semi: ['error', 'always'],
22-
'@typescript-eslint/no-non-null-assertion': 'off',
23-
// '@typescript-eslint/consistent-type-assertions': 'off',
24-
// '@typescript-eslint/no-explicit-any': 'off',
25-
'@typescript-eslint/no-empty-function': 'off',
26-
'@typescript-eslint/no-unused-vars': ["warn", { "argsIgnorePattern": "^_" }],
27-
'@typescript-eslint/explicit-function-return-type': 'off',
28-
'@typescript-eslint/no-use-before-define': 'off',
29-
'@typescript-eslint/no-namespace': 'off',
30-
'no-inner-declarations': 'off',
31-
'no-return-assign': 'off',
32-
// 'no-fallthrough': 'off',
33-
quotes: 'off',
34-
'no-empty': 'off',
35-
'quotes': ['error', 'single']
36-
}
3726
};

.gitignore

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
1+
.DS_Store
12
node_modules
2-
/dist
3+
/dist
4+
5+
# local env files
6+
.env.local
7+
.env.*.local
8+
9+
# Log files
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
# Editor directories and files
16+
.idea
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw?

.travis.yml

-4
This file was deleted.

.vscode/launch.json

+9-27
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,15 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"type": "node",
5+
"type": "chrome",
66
"request": "launch",
7-
"name": "Mocha Tests",
8-
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
9-
"args": [
10-
"--require",
11-
"ts-node/register",
12-
"--reporter",
13-
"dot",
14-
"--slow",
15-
"5000",
16-
"--colors",
17-
"${workspaceFolder}/src/*.spec.ts",
18-
],
19-
"internalConsoleOptions": "openOnSessionStart",
20-
"skipFiles": [
21-
"<node_internals>/**"
22-
]
23-
},
24-
{
25-
"type": "node",
26-
"request": "launch",
27-
"name": "Launch Program",
28-
"skipFiles": [
29-
"<node_internals>/**"
30-
],
31-
"program": "${workspaceFolder}/index.js"
7+
"name": "vuejs: chrome",
8+
"url": "http://localhost:8080",
9+
"webRoot": "${workspaceFolder}/src",
10+
"breakOnLoad": true,
11+
"sourceMapPathOverrides": {
12+
"webpack:///src/*": "${webRoot}/*"
13+
}
3214
}
3315
]
34-
}
16+
}

.vscode/settings.json

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
{
2-
"editor.formatOnSave": true
3-
}
2+
"editor.tabSize": 4,
3+
"editor.acceptSuggestionOnCommitCharacter": false,
4+
"editor.formatOnSave": true,
5+
"editor.suggestSelection": "first",
6+
"editor.codeActionsOnSave": {
7+
"source.fixAll": true,
8+
"source.organizeImports": true
9+
},
10+
"vetur.format.options.tabSize": 4,
11+
"vetur.format.defaultFormatter.js": "vscode-typescript",
12+
"prettier.tabWidth": 4,
13+
"files.trimTrailingWhitespace": true,
14+
"vetur.format.defaultFormatter.html": "none",
15+
"eslint.validate": ["javascript", "typescript", "vue"]
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<template>
2+
3+
</template>
4+
<script lang="ts">
5+
import {Vue, Component, Prop, Watch} from "vue-property-decorator";
6+
7+
@Component
8+
export default class $0 extends Vue {
9+
10+
}
11+
12+
</script>

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# container-viewer
2+
3+
## Project setup
4+
```
5+
yarn install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
yarn serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
yarn build
16+
```
17+
18+
### Run your unit tests
19+
```
20+
yarn test:unit
21+
```
22+
23+
### Lints and fixes files
24+
```
25+
yarn lint
26+
```
27+
28+
### Customize configuration
29+
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

package.json

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "container-viewer",
3+
"version": "1.0.14",
4+
"scripts": {
5+
"serve": "vue-cli-service serve",
6+
"build": "vue-cli-service build",
7+
"test:unit": "vue-cli-service test:unit",
8+
"package": "vue-cli-service build --target lib src/wrapper.ts",
9+
"prepublishOnly": "npm run package"
10+
},
11+
"dependencies": {
12+
"container-engine": "workspace:../container-engine",
13+
"core-js": "^3.6.5",
14+
"lodash": "^4.17.19",
15+
"regenerator-runtime": "^0.13.7",
16+
"tslib": "^2.2.0",
17+
"vue": "^2.6.11",
18+
"vue-class-component": "^7.2.3",
19+
"vue-property-decorator": "^8.4.2"
20+
},
21+
"devDependencies": {
22+
"@types/assert": "^1.4.7",
23+
"@types/chai": "^4.2.11",
24+
"@types/events": "^3.0.0",
25+
"@types/lodash": "^4.14.154",
26+
"@types/mocha": "^5.2.4",
27+
"@typescript-eslint/parser": "^4.26.1",
28+
"@vue/cli-plugin-babel": "~4.4.0",
29+
"@vue/cli-plugin-typescript": "~4.4.0",
30+
"@vue/cli-plugin-unit-mocha": "~4.4.0",
31+
"@vue/cli-service": "~4.4.0",
32+
"@vue/test-utils": "^1.0.3",
33+
"chai": "^4.1.2",
34+
"eslint": "^7.28.0",
35+
"eslint-plugin-vue": "^7.11.0",
36+
"sass": "^1.26.5",
37+
"sass-loader": "^8.0.2",
38+
"typescript": "~3.9.9",
39+
"vue-template-compiler": "^2.6.11"
40+
},
41+
"files": [
42+
"src",
43+
"dist/container-viewer.umd.min.js",
44+
"dist/container-viewer.css",
45+
"dist/img",
46+
"dist/media",
47+
"tsconfig.json",
48+
"public/audio"
49+
]
50+
}

0 commit comments

Comments
 (0)