Skip to content

Commit

Permalink
web/satellite: migrated Vue 2 to Vue 3
Browse files Browse the repository at this point in the history
Finally migrated web/satellite UI to use Vue 3.

Issue:
#5862

Change-Id: I609e2332142b9092d6efeb2d4b931e34cce846cc
  • Loading branch information
VitaliiShpital authored and Storj Robot committed May 17, 2023
1 parent 958d867 commit ace0ef8
Show file tree
Hide file tree
Showing 184 changed files with 7,669 additions and 5,684 deletions.
2 changes: 1 addition & 1 deletion satellite/console/consoleweb/server.go
Expand Up @@ -424,7 +424,7 @@ func (server *Server) appHandler(w http.ResponseWriter, r *http.Request) {
"frame-src 'self' *.stripe.com https://www.google.com/recaptcha/ https://recaptcha.google.com/recaptcha/ https://hcaptcha.com *.hcaptcha.com",
"img-src 'self' data: blob: *.tardigradeshare.io *.storjshare.io",
// Those are hashes of charts custom tooltip inline styles. They have to be updated if styles are updated.
"style-src 'unsafe-hashes' 'sha256-7mY2NKmZ4PuyjGUa4FYC5u36SxXdoUM/zxrlr3BEToo=' 'sha256-PRTMwLUW5ce9tdiUrVCGKqj6wPeuOwGogb1pmyuXhgI=' 'sha256-kwpt3lQZ21rs4cld7/uEm9qI5yAbjYzx+9FGm/XmwNU=' 'self' https://hcaptcha.com *.hcaptcha.com",
"style-src 'unsafe-hashes' 'sha256-7mY2NKmZ4PuyjGUa4FYC5u36SxXdoUM/zxrlr3BEToo=' 'sha256-PRTMwLUW5ce9tdiUrVCGKqj6wPeuOwGogb1pmyuXhgI=' 'sha256-kwpt3lQZ21rs4cld7/uEm9qI5yAbjYzx+9FGm/XmwNU=' 'sha256-Qf4xqtNKtDLwxce6HLtD5Y6BWpOeR7TnDpNSo+Bhb3s=' 'self' https://hcaptcha.com *.hcaptcha.com",
"media-src 'self' blob: *.tardigradeshare.io *.storjshare.io",
}

Expand Down
4 changes: 3 additions & 1 deletion web/satellite/.eslintrc.js
Expand Up @@ -81,11 +81,13 @@ module.exports = {
'vue/html-button-has-type': ['error'],
'vue/no-unused-properties': ['warn'],
'vue/no-unused-refs': ['warn'],
'vue/no-unused-vars': ['warn'],
'vue/no-useless-v-bind': ['warn'],

'vue/no-useless-template-attributes': ['off'], // TODO: fix later
'vue/no-multiple-template-root': ['off'], // it's possible to have multiple roots in template in Vue 3

'vue/no-unregistered-components': ['warn', { ignorePatterns: ['router-link', 'router-view'] }],
'vue/no-undef-components': ['warn', { ignorePatterns: ['router-link', 'router-view'] }],

'storj/vue/require-annotation': 'warn',

Expand Down
6 changes: 6 additions & 0 deletions web/satellite/jest.config.js
Expand Up @@ -11,4 +11,10 @@ module.exports = {
'^.+\\.svg$': '<rootDir>/tests/unit/mock/svgTransform.js',
},
modulePathIgnorePatterns: ['<rootDir>/tests/unit/ignore'],
moduleFileExtensions: [
'js',
'ts',
'json',
'vue',
],
};

0 comments on commit ace0ef8

Please sign in to comment.