Browse Source
Merge pull request #5773 from nextcloud/techdebt/noid/node14-npm7
Merge pull request #5773 from nextcloud/techdebt/noid/node14-npm7
Techdebt/noid/node14 npm7pull/5320/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
84 changed files with 30419 additions and 6424 deletions
-
2.eslintrc.js
-
15.github/workflows/jest.yml
-
30.github/workflows/lint.yml
-
14babel.config.js
-
2lib/AppInfo/Application.php
-
2lib/Dashboard/TalkWidget.php
-
4lib/Deck/DeckPluginLoader.php
-
2lib/Flow/RegisterOperationsListener.php
-
35573package-lock.json
-
43package.json
-
4src/FilesSidebarCallViewApp.vue
-
4src/components/AdminSettings/HostedSignalingServer.vue
-
6src/components/AdminSettings/TurnServer.vue
-
36src/components/CallView/CallView.vue
-
5src/components/CallView/Grid/Grid.vue
-
8src/components/CallView/shared/LocalMediaControls.vue
-
8src/components/CallView/shared/LocalVideo.vue
-
4src/components/CallView/shared/Screen.vue
-
6src/components/CallView/shared/Video.vue
-
2src/components/CallView/shared/VideoBackground.vue
-
8src/components/CallView/shared/VideoBottomBar.vue
-
2src/components/ChatView.vue
-
2src/components/ConversationIcon.vue
-
2src/components/ConversationSettings/ListableSettings.vue
-
3src/components/ConversationSettings/Matterbridge/BridgePart.vue
-
2src/components/ConversationsOptionsList.vue
-
2src/components/LeftSidebar/ConversationsList/Conversation.spec.js
-
6src/components/LeftSidebar/ConversationsList/Conversation.vue
-
2src/components/LeftSidebar/SearchBox/SearchBox.vue
-
2src/components/LobbyScreen.vue
-
6src/components/MediaDevicesPreview.vue
-
30src/components/MessagesList/MessagesGroup/Message/Message.spec.js
-
36src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.spec.js
-
2src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue
-
2src/components/MessagesList/MessagesList.vue
-
10src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue
-
2src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.spec.js
-
4src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue
-
4src/components/RightSidebar/Participants/ParticipantsTab.vue
-
2src/components/RightSidebar/RightSidebar.vue
-
2src/components/TopBar/CallButton.vue
-
2src/mainFilesSidebarLoader.js
-
16src/mixins/call.js
-
2src/mixins/vueAtReparenter.js
-
4src/services/conversationsService.spec.js
-
2src/services/filesSharingServices.js
-
2src/store/callViewStore.js
-
2src/store/fileUploadStore.js
-
2src/store/fileUploadStore.spec.js
-
8src/store/messagesStore.js
-
6src/store/messagesStore.spec.js
-
12src/store/participantsStore.js
-
4src/utils/clipboard.js
-
130src/utils/signaling.js
-
40src/utils/webrtc/MediaDevicesManager.js
-
20src/utils/webrtc/SentVideoQualityThrottler.js
-
16src/utils/webrtc/SpeakingWhileMutedWarner.js
-
18src/utils/webrtc/VideoConstrainer.js
-
12src/utils/webrtc/analyzers/AverageStatValue.js
-
20src/utils/webrtc/analyzers/CallAnalyzer.js
-
42src/utils/webrtc/analyzers/ParticipantAnalyzer.js
-
128src/utils/webrtc/analyzers/PeerConnectionAnalyzer.js
-
14src/utils/webrtc/models/CallParticipantCollection.js
-
40src/utils/webrtc/models/CallParticipantModel.js
-
22src/utils/webrtc/models/LocalCallParticipantModel.js
-
68src/utils/webrtc/models/LocalMediaModel.js
-
6src/utils/webrtc/shims/MediaStream.js
-
2src/utils/webrtc/shims/MediaStreamTrack.js
-
18src/utils/webrtc/simplewebrtc/getscreenmedia.js
-
6src/utils/webrtc/simplewebrtc/localmedia.js
-
8src/utils/webrtc/simplewebrtc/peer.js
-
2src/utils/webrtc/simplewebrtc/simplewebrtc.js
-
2src/utils/webrtc/simplewebrtc/webrtc.js
-
20src/utils/webrtc/webrtc.js
-
6src/views/Dashboard.vue
-
2src/views/FlowPostToConversation.vue
-
2src/views/MainView.vue
-
36stylelint.config.js
-
2templates/index.php
-
2templates/settings/admin-settings.php
-
119webpack.common.js
-
7webpack.dev.js
-
63webpack.js
-
7webpack.prod.js
@ -1,11 +1,3 @@ |
|||
module.exports = { |
|||
presets: [ |
|||
[ |
|||
'@babel/preset-env', |
|||
{ |
|||
corejs: 3, |
|||
useBuiltIns: 'entry', |
|||
}, |
|||
], |
|||
], |
|||
} |
|||
const babelConfig = require('@nextcloud/babel-config') |
|||
|
|||
module.exports = babelConfig |
35573
package-lock.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,31 +1,5 @@ |
|||
module.exports = { |
|||
extends: 'stylelint-config-recommended-scss', |
|||
rules: { |
|||
indentation: 'tab', |
|||
'selector-type-no-unknown': null, |
|||
'number-leading-zero': null, |
|||
'rule-empty-line-before': [ |
|||
'always', |
|||
{ |
|||
ignore: ['after-comment', 'inside-block'], |
|||
}, |
|||
], |
|||
'declaration-empty-line-before': [ |
|||
'never', |
|||
{ |
|||
ignore: ['after-declaration'], |
|||
}, |
|||
], |
|||
'comment-empty-line-before': null, |
|||
'selector-type-case': null, |
|||
'selector-list-comma-newline-after': null, |
|||
'selector-pseudo-class-no-unknown': true, |
|||
'selector-pseudo-element-no-unknown': [true, { |
|||
ignorePseudoElements: ['v-deep'], |
|||
}], |
|||
'no-descending-specificity': null, |
|||
'string-quotes': 'single', |
|||
}, |
|||
plugins: ['stylelint-scss'], |
|||
ignoreFiles: ['css/At.scss'], |
|||
} |
|||
const stylelintConfig = require('@nextcloud/stylelint-config') |
|||
|
|||
stylelintConfig.ignoreFiles = ['css/At.scss'] |
|||
|
|||
module.exports = stylelintConfig |
@ -1,119 +0,0 @@ |
|||
const path = require('path') |
|||
const { VueLoaderPlugin } = require('vue-loader') |
|||
const StyleLintPlugin = require('stylelint-webpack-plugin') |
|||
const babelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except') |
|||
const webpack = require('webpack') |
|||
|
|||
module.exports = { |
|||
entry: { |
|||
'admin-settings': path.join(__dirname, 'src', 'mainAdminSettings.js'), |
|||
'collections': path.join(__dirname, 'src', 'collections.js'), |
|||
'talk': path.join(__dirname, 'src', 'main.js'), |
|||
'talk-files-sidebar': [ |
|||
path.join(__dirname, 'src', 'mainFilesSidebar.js'), |
|||
path.join(__dirname, 'src', 'mainFilesSidebarLoader.js'), |
|||
], |
|||
'talk-public-share-auth-sidebar': path.join(__dirname, 'src', 'mainPublicShareAuthSidebar.js'), |
|||
'talk-public-share-sidebar': path.join(__dirname, 'src', 'mainPublicShareSidebar.js'), |
|||
'flow': path.join(__dirname, 'src', 'flow.js'), |
|||
'dashboard': path.join(__dirname, 'src', 'dashboard.js'), |
|||
'deck': path.join(__dirname, 'src', 'deck.js'), |
|||
}, |
|||
output: { |
|||
path: path.resolve(__dirname, './js'), |
|||
publicPath: '/js/', |
|||
filename: '[name].js', |
|||
}, |
|||
module: { |
|||
rules: [ |
|||
{ |
|||
test: /\.css$/, |
|||
use: ['style-loader', 'css-loader'], |
|||
}, |
|||
{ |
|||
test: /\.scss$/, |
|||
use: ['style-loader', 'css-loader', 'sass-loader'], |
|||
}, |
|||
{ |
|||
test: /\.(js|vue)$/, |
|||
use: 'eslint-loader', |
|||
exclude: /node_modules/, |
|||
enforce: 'pre', |
|||
}, |
|||
{ |
|||
test: /\.vue$/, |
|||
loader: 'vue-loader', |
|||
}, |
|||
{ |
|||
test: /\.js$/, |
|||
loader: 'babel-loader', |
|||
exclude: babelLoaderExcludeNodeModulesExcept([ |
|||
'@juliushaertl/vue-richtext', |
|||
'@nextcloud/event-bus', |
|||
'@nextcloud/vue', |
|||
'@nextcloud/vue-dashboard', |
|||
'ansi-regex', |
|||
'char-regex', |
|||
'color.js', |
|||
'fast-xml-parser', |
|||
'hot-patcher', |
|||
'nextcloud-vue-collections', |
|||
'semver', |
|||
'string-length', |
|||
'strip-ansi', |
|||
'tributejs', |
|||
'vue-resize', |
|||
'webdav', |
|||
]), |
|||
options: { |
|||
plugins: ['add-module-exports'], |
|||
presets: [ |
|||
/** |
|||
* From "add-module-exports" documentation: |
|||
* "webpack doesn't perform commonjs transformation for |
|||
* codesplitting. Need to set commonjs conversion." |
|||
*/ |
|||
['@babel/env', { modules: 'commonjs' }], |
|||
], |
|||
}, |
|||
}, |
|||
{ |
|||
/** |
|||
* webrtc-adapter main module does no longer provide |
|||
* "module.exports", which is expected by some elements using it |
|||
* (like "attachmediastream"), so it needs to be added back with |
|||
* a plugin. |
|||
*/ |
|||
test: /node_modules\/webrtc-adapter\/.*\.js$/, |
|||
loader: 'babel-loader', |
|||
options: { |
|||
plugins: ['add-module-exports'], |
|||
presets: [ |
|||
/** |
|||
* From "add-module-exports" documentation: |
|||
* "webpack doesn't perform commonjs transformation for |
|||
* codesplitting. Need to set commonjs conversion." |
|||
*/ |
|||
['@babel/env', { modules: 'commonjs' }], |
|||
], |
|||
}, |
|||
}, |
|||
{ |
|||
test: /\.(png|jpg|gif|svg)$/, |
|||
loader: 'url-loader', |
|||
}, |
|||
], |
|||
}, |
|||
plugins: [ |
|||
new VueLoaderPlugin(), |
|||
new StyleLintPlugin({ |
|||
files: ['**/*.vue'], |
|||
}), |
|||
// Make appName available as a constant
|
|||
new webpack.DefinePlugin({ appName: JSON.stringify('talk') }), |
|||
], |
|||
resolve: { |
|||
extensions: ['*', '.js', '.vue'], |
|||
symlinks: false, |
|||
}, |
|||
} |
@ -1,7 +0,0 @@ |
|||
const { merge } = require('webpack-merge') |
|||
const common = require('./webpack.common.js') |
|||
|
|||
module.exports = merge(common, { |
|||
mode: 'development', |
|||
devtool: '#cheap-source-map', |
|||
}) |
@ -0,0 +1,63 @@ |
|||
const path = require('path') |
|||
const webpackConfig = require('@nextcloud/webpack-vue-config') |
|||
const webpackRules = require('@nextcloud/webpack-vue-config/rules') |
|||
const BabelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except') |
|||
|
|||
webpackConfig.entry = { |
|||
'admin-settings': path.join(__dirname, 'src', 'mainAdminSettings.js'), |
|||
collections: path.join(__dirname, 'src', 'collections.js'), |
|||
main: path.join(__dirname, 'src', 'main.js'), |
|||
'files-sidebar': [ |
|||
path.join(__dirname, 'src', 'mainFilesSidebar.js'), |
|||
path.join(__dirname, 'src', 'mainFilesSidebarLoader.js'), |
|||
], |
|||
'public-share-auth-sidebar': path.join(__dirname, 'src', 'mainPublicShareAuthSidebar.js'), |
|||
'public-share-sidebar': path.join(__dirname, 'src', 'mainPublicShareSidebar.js'), |
|||
flow: path.join(__dirname, 'src', 'flow.js'), |
|||
dashboard: path.join(__dirname, 'src', 'dashboard.js'), |
|||
deck: path.join(__dirname, 'src', 'deck.js'), |
|||
} |
|||
|
|||
// Edit JS rule
|
|||
webpackRules.RULE_JS.exclude = BabelLoaderExcludeNodeModulesExcept([ |
|||
'@juliushaertl/vue-richtext', |
|||
'@nextcloud/event-bus', |
|||
'@nextcloud/vue-dashboard', |
|||
'ansi-regex', |
|||
'color.js', |
|||
'fast-xml-parser', |
|||
'hot-patcher', |
|||
'nextcloud-vue-collections', |
|||
'semver', |
|||
'strip-ansi', |
|||
'tributejs', |
|||
'vue-resize', |
|||
'webdav', |
|||
]) |
|||
|
|||
// Replaces rules array
|
|||
webpackConfig.module.rules = Object.values(webpackRules) |
|||
|
|||
webpackConfig.module.rules.push({ |
|||
/** |
|||
* webrtc-adapter main module does no longer provide |
|||
* "module.exports", which is expected by some elements using it |
|||
* (like "attachmediastream"), so it needs to be added back with |
|||
* a plugin. |
|||
*/ |
|||
test: /node_modules\/webrtc-adapter\/.*\.js$/, |
|||
loader: 'babel-loader', |
|||
options: { |
|||
plugins: ['add-module-exports'], |
|||
presets: [ |
|||
/** |
|||
* From "add-module-exports" documentation: |
|||
* "webpack doesn't perform commonjs transformation for |
|||
* codesplitting. Need to set commonjs conversion." |
|||
*/ |
|||
['@babel/env', { modules: 'commonjs' }], |
|||
], |
|||
}, |
|||
}) |
|||
|
|||
module.exports = webpackConfig |
@ -1,7 +0,0 @@ |
|||
const { merge } = require('webpack-merge') |
|||
const common = require('./webpack.common.js') |
|||
|
|||
module.exports = merge(common, { |
|||
mode: 'production', |
|||
devtool: '#source-map', |
|||
}) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue