Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 3 additions & 31 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
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,
'no-descending-specificity': null,
'string-quotes': 'single',
'selector-pseudo-element-no-unknown': [ true,
{
ignorePseudoElements: ["/deep/"]
}
]
},
plugins: ['stylelint-scss']
}
const stylelintConfig = require('@nextcloud/stylelint-config')

module.exports = stylelintConfig
35 changes: 4 additions & 31 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
module.exports = {
plugins: [
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-transform-classes',
['@babel/plugin-proposal-class-properties', { loose: true }],
'@babel/plugin-transform-modules-commonjs'
],
presets: [
[
'@babel/preset-env',
{
corejs: 3,
useBuiltIns: 'entry',
},
],
],
env: {
test: {
presets: [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
}
}
const babelConfig = require('@nextcloud/babel-config')

babelConfig.presets[0][1].modules = 'auto'

module.exports = babelConfig
7 changes: 0 additions & 7 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,10 @@
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)

const {
addMatchImageSnapshotPlugin
} = require('cypress-image-snapshot/plugin')
const browserify = require('@cypress/browserify-preprocessor')

module.exports = (on) => {
}

module.exports = (on, config) => {

on('file:preprocessor', browserify())

addMatchImageSnapshotPlugin(on, config)
}
14 changes: 0 additions & 14 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@
*
*/

import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command'
import axios from '@nextcloud/axios'

addMatchImageSnapshotCommand()

const url = Cypress.config('baseUrl').replace(/\/index.php\/?$/g, '')
Cypress.env('baseUrl', url)

Expand Down Expand Up @@ -111,14 +108,3 @@ Cypress.Commands.add('deleteFile', fileName => {
cy.get(`#fileList tr[data-file="${fileName}"] a.name .action-menu`).click()
cy.get(`#fileList tr[data-file="${fileName}"] a.name + .popovermenu .action-delete`).click()
})

Cypress.Commands.overwrite('matchImageSnapshot', (originalFn, subject, name, options) => {
// hide avatar because random colour break the visual regression tests
cy.window().then(win => {
const avatarDiv = win.document.querySelector('.avatardiv')
if (avatarDiv) {
avatarDiv.remove()
}
})
return originalFn(subject, name, options)
})
25 changes: 2 additions & 23 deletions js/editor-collab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor-collab.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/editor-guest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/editor-guest.js.map

Large diffs are not rendered by default.

70 changes: 3 additions & 67 deletions js/editor-rich.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions js/editor-rich.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* @copyright Copyright (c) 2019 Julius Härtl <[email protected]>
*
* @author Julius Härtl <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
2 changes: 1 addition & 1 deletion js/editor-rich.js.map

Large diffs are not rendered by default.

Loading