Update node packages

pull/4/head
Warinyourself 3 years ago
parent c6fe384d3e
commit 12e5088deb

@ -8,6 +8,9 @@ module.exports = {
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
camelcase: 'off',
indent: 'off',
'multiline-ternary': 'off',
'space-before-function-paren': [2, 'never'],
'vue/array-bracket-spacing': 'error',
'vue/arrow-spacing': 'error',
@ -22,11 +25,10 @@ module.exports = {
'vue/object-curly-spacing': 'error',
'no-useless-constructor': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-useless-constructor': 'error',
'@typescript-eslint/no-useless-constructor': 'error'
},
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020
},

@ -2,16 +2,6 @@ module.exports = {
presets: [
'@babel/preset-env',
'@vue/cli-plugin-babel/preset'
// 'module:@babel/helper-module-imports'
// [
// '@vue/app',
// {
// useBuiltIns: 'entry',
// jsx: {
// injectH: false
// }
// }
// ]
],
plugins: ['transform-vue-jsx', '@babel/plugin-proposal-optional-chaining']
plugins: ['transform-vue-jsx']
}

@ -1,12 +1,13 @@
{
"name": "osmos",
"version": "2.0.1",
"version": "2.0.2",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"dev": "vue-cli-service serve --open"
"dev": "vue-cli-service serve --open",
"prepare": "husky install"
},
"dependencies": {
"core-js": "^3.6.5",
@ -14,9 +15,9 @@
"lodash": "^4.17.21",
"mousetrap": "^1.6.5",
"nody-greeter-types": "^1.0.7",
"nouislider": "^14.6.3",
"nouislider": "^15.0.0",
"parallax-js": "^3.1.0",
"vue": "^2.6.12",
"vue": "2.7.14",
"vue-color": "^2.8.1",
"vue-i18n": "^8.22.2",
"vue-router": "^3.2.0",
@ -24,48 +25,45 @@
},
"devDependencies": {
"@babel/helper-module-imports": "^7.16.0",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@types/lodash": "^4.14.178",
"@types/mousetrap": "^1.6.9",
"@types/node": "14.10.0",
"@typescript-eslint/eslint-plugin": "3.3.0",
"@typescript-eslint/parser": "3.10.1",
"@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
"@types/vue-color": "^2.4.4",
"@vue/babel-helper-vue-jsx-merge-props": "^1.4.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-typescript": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.1.4",
"@vue/eslint-config-airbnb": "^5.0.2",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-standard": "^5.1.2",
"@vue/eslint-config-typescript": "^5.0.2",
"babel-core": "7.0.0-bridge.0",
"@vue/compiler-sfc": "^3.2.45",
"@vue/eslint-config-airbnb": "7.0.0",
"@vue/eslint-config-prettier": "7.0.0",
"@vue/eslint-config-standard": "8.0.1",
"@vue/eslint-config-typescript": "11.0.2",
"babel-eslint": "^10.0.3",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-vue-jsx": "3.3.0",
"babel-preset-env": "^1.7.0",
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.20.2",
"eslint": "^7.1.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.2.2",
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-vue": "^9.7.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.2",
"prettier": "^1.19.1",
"prettier": "2.7.1",
"stylus": "^0.54.8",
"stylus-loader": "^3.0.2",
"typescript": "^4.5.4",
"vue-class-component": "^7.2.3",
"vue-property-decorator": "^8.4.2",
"vue-template-compiler": "^2.6.11",
"vuex-module-decorators": "^0.17.0",
"webpack-glsl-loader": "^1.0.1"
"typescript": "4.8.4",
"vue-class-component": "7.2.6",
"vue-property-decorator": "9.1.2",
"vue-template-compiler": "2.7.14",
"vuex-module-decorators": "2.0.0",
"webpack-glsl-loader": "1.0.1"
},
"gitHooks": {
"pre-commit": "lint-staged"

@ -232,7 +232,7 @@ export default class AgidaTheme extends Vue {
key={index}
d={path.d}
stroke={path.strokeColor}
strokeWidth={path.strokeWidth}
stroke-width={path.strokeWidth}
fill={colorsArray[index]}
class={`path-${index}`}
transform={path.transform}

@ -58,5 +58,5 @@ export function computeControlPoints(K: number[]) {
p2[n - 1] = 0.5 * (K[n] + p1[n - 1])
return { p1: p1, p2: p2 }
return { p1, p2 }
}

@ -1,6 +1,11 @@
import { computeControlPoints } from './bezier-spline'
const svgns = 'http://www.w3.org/2000/svg'
export interface WaveConfigAnimationInterface {
time?: number;
steps?: number;
}
export interface WaveConfigInterface {
height: number;
width: number;
@ -14,11 +19,6 @@ export interface WaveConfigInterface {
animation?: boolean | WaveConfigAnimationInterface;
}
export interface WaveConfigAnimationInterface {
time?: number;
steps?: number;
}
interface Point {
x: number;
y: number;

14
src/shims-tsx.d.ts vendored

@ -1,16 +1,4 @@
import Vue, { VNode } from 'vue'
declare global {
namespace JSX {
// tslint:disable no-empty-interface
interface Element extends VNode {}
// tslint:disable no-empty-interface
interface ElementClass extends Vue {}
interface IntrinsicElements {
[elem: string]: any;
}
}
}
import Vue from 'vue'
declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {

@ -1,11 +1,5 @@
type ctxType = WebGLRenderingContext
interface GlOption {
renderHook: () => void;
renderOptions?: GLRenderOptions;
windowListener?: WindowListenerCallback[];
}
interface GLRenderOptions {
observeMouse?: boolean;
externalTimeUse?: boolean;
@ -17,6 +11,12 @@ interface WindowListenerCallback {
options?: boolean | AddEventListenerOptions;
}
interface GlOption {
renderHook: () => void;
renderOptions?: GLRenderOptions;
windowListener?: WindowListenerCallback[];
}
export default class GL {
ctx!: WebGLRenderingContext
private el!: HTMLCanvasElement

@ -34,7 +34,7 @@ export function Debounce(time = 500, options?: DebounceSettings): MethodDecorato
const callback = map.get(_uid)
if (callback) {
// eslint-disable-next-line standard/no-callback-literal
// eslint-disable-next-line n/no-callback-literal
return callback(...args)
}

@ -1 +1 @@
2.0.1
2.0.2

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save