Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Vue.js #290

Merged
merged 83 commits into from
May 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
fa29755
vuejs: first steps based on vueexample
korelstar Jan 13, 2019
636c3b8
create navigation component, Vuex store, ...
korelstar Jan 17, 2019
15b5e8f
sort categories, add "All notes"
korelstar Jan 17, 2019
0c3e66b
fix travis (?)
korelstar Jan 18, 2019
bc79463
fix eslint and update dependencies
korelstar Jan 18, 2019
c1e6cae
make categories selectable
korelstar Jan 19, 2019
240b22e
upgrade to nextcloud-vue 0.6.0
korelstar Jan 20, 2019
9532fe5
optimize navigation generation
korelstar Jan 20, 2019
3d8228b
filter notes by category
korelstar Jan 20, 2019
2beac00
use 'let' instead of 'var'
korelstar Jan 20, 2019
64494b3
add npm-upgrade
korelstar Jan 21, 2019
5e8ce5c
implements note search by keyword
korelstar Jan 22, 2019
e3ed449
upgrade dependencies
korelstar Jan 27, 2019
7c4e63f
use vue-router for navigation
korelstar Feb 3, 2019
e143cb1
pick changes from vueexample
korelstar Feb 3, 2019
27af048
fix dependencies and travis
korelstar Feb 5, 2019
8605028
fix travis, update dependencies
korelstar Feb 5, 2019
1a84b24
group notes, favorite, and other things
korelstar Feb 10, 2019
b383c7e
new component AppSettings, use new slot syntax
korelstar Feb 11, 2019
8d3d122
update build-info and dependencies
korelstar Feb 11, 2019
dd3faa6
add StatusBar, fullscreen toggle, upgrade dep.s
korelstar Feb 16, 2019
c17233b
create, delete, favorite; dependencies
korelstar Feb 21, 2019
99f4b67
fix starred-icon, update dependencies
korelstar Mar 3, 2019
327cb48
update dep's, load default note
korelstar Mar 8, 2019
44cd14c
new component NavigationNoteItem
korelstar Mar 24, 2019
d4b7c43
close menu after action complete
korelstar Mar 24, 2019
f9578f5
update dependencies
korelstar Mar 24, 2019
56eac4f
style: use PascalCase for component names
korelstar Mar 26, 2019
2230929
remove obsolete packages; update
korelstar Mar 27, 2019
f4dc283
implement editor (using TUI) and note handling
korelstar Mar 30, 2019
ac684d9
fix CI tests
korelstar Mar 31, 2019
17172f3
move status-bar to sidebar
korelstar Apr 6, 2019
940f61b
update dependencies
korelstar Apr 6, 2019
d8e87b9
fix CSS and DOM
korelstar Apr 6, 2019
70c1626
update dep.; nc-vue 0.10 with new App* structure
korelstar Apr 19, 2019
678d64c
implement settings
korelstar Apr 19, 2019
4a7c7a0
Merge branch 'master' into vue
korelstar Apr 20, 2019
1c38ffa
store: add mutation for changing single attribute
korelstar Apr 21, 2019
66fa1cd
set favorite, fix multiselect
korelstar Apr 21, 2019
a4e1f8d
fix sidebar design, refactor manual save
korelstar Apr 22, 2019
0fe012d
fix indent
korelstar Apr 23, 2019
df05c90
show loading when updating favorite in sidebar
korelstar Apr 26, 2019
163c77d
switch editor to EasyMDE
korelstar Apr 28, 2019
87e21e0
fix fullscreen
korelstar Apr 28, 2019
6295907
fix style
korelstar Apr 28, 2019
0f4aa90
global function for app translation and jquery
korelstar Apr 28, 2019
119ab1f
welcome screen with some introduction text
korelstar Apr 29, 2019
ef765a0
focus editor and placeholder for empty note
korelstar Apr 29, 2019
8de9367
fix action buttons
korelstar Apr 29, 2019
f1c1735
update dependencies / stylelintlint fix
korelstar Apr 29, 2019
fd35a98
register CTRL+S globally
korelstar Apr 29, 2019
661d996
Revert "fix action buttons"
korelstar Apr 30, 2019
94e4b21
move global methods to mixin
korelstar Apr 30, 2019
65e8678
style fixes
korelstar May 1, 2019
a3984ba
move components into separate directory
korelstar May 1, 2019
20b0727
improved error-handling
korelstar May 3, 2019
7317e39
scroll-to-top when selecting category
korelstar May 4, 2019
7e97d10
add links to welcome screen
korelstar May 4, 2019
5c8bc4d
update dependencies
korelstar May 4, 2019
cd05b1d
remove obsolete loading.gif
korelstar May 5, 2019
a78221f
change labels and icons for favorite action
korelstar May 7, 2019
179562f
compatibility to translationtool.phar
korelstar May 7, 2019
58ee2bd
fix notes order in navigation
korelstar May 7, 2019
b47e01b
fix multiselect error on new item
korelstar May 7, 2019
d8ad791
fix dark theme
korelstar May 11, 2019
cda514f
split App.vue into sub-components
korelstar May 11, 2019
c35dff7
update dependencies
korelstar May 13, 2019
685d607
add menu item for opening the note's category
korelstar May 13, 2019
b6d04b2
add route requirements
korelstar May 13, 2019
f2a3dea
remove obsolete SimpleMDE alias
korelstar May 17, 2019
4a1e62a
remove AppSidebarTab
korelstar May 17, 2019
88e39cf
fix width and position of note-editor
korelstar May 18, 2019
356b43f
improve code quality
korelstar May 21, 2019
c33f95a
fix missing loading icon in AppContent
korelstar May 22, 2019
19420c9
fix padding
korelstar May 22, 2019
f4bb285
fix position of placeholder
korelstar May 22, 2019
9c53743
configure scrutinizer
korelstar May 22, 2019
486f384
scrutinizer: switch to eslint
korelstar May 22, 2019
aefecf7
fix scrutinizer
korelstar May 22, 2019
8f0c364
add PHP dependencies
korelstar May 22, 2019
71d51bc
consolidate eslint configuration
korelstar May 22, 2019
5bacdb5
consolidate webpack config
korelstar May 22, 2019
41d3531
update dependencies
korelstar May 22, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
plugins: ['@babel/plugin-syntax-dynamic-import'],
presets: [
[
'@babel/preset-env',
{
targets: {
browsers: ['last 2 versions', 'ie >= 11']
}
}
]
]
}
9 changes: 4 additions & 5 deletions js/vendor/restangular/.editorconfig → .editorconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
79 changes: 79 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 6,
},
settings: {
'import/resolver': {
webpack: {
config: 'webpack.common.js',
},
node: {
paths: ['src'],
extensions: ['.js', '.vue'],
},
},
},
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:vue/recommended',
'standard',
],
globals: {
$: 'readonly',
t: 'readonly',
n: 'readonly',
OC: 'readonly',
OCA: 'readonly',
},
plugins: [
'vue',
],
rules: {
// allow space before function () (was "always" in "standard")
'space-before-function-paren': ['error', 'never'],
// stay consistent with array brackets (not in "standard")
'array-bracket-newline': ['error', 'consistent'],

// tabs only (was spaces in "standard")
'indent': ['error', 'tab'],
// allow tabs for indentation (was forbidden in "standard")
'no-tabs': ['error', { allowIndentationTabs: true }],
// indentation in vue's html should be tabs (was spaces in "vue/strongly-recommended")
'vue/html-indent': ['error', 'tab'],

// only debug console (not in "standard")
'no-console': ['error', { allow: ['error', 'warn', 'info', 'debug'] }],
// always add a trailing comma, for diff readability (was "never" in "standard")
'comma-dangle': ['warn', 'always-multiline'],
// always have the operator in front (was "after" in "standard")
'operator-linebreak': ['error', 'before'],
// ternary on multiline (not in "standard")
'multiline-ternary': ['error', 'always-multiline'],

// disallow use of "var" (not in "standard")
'no-var': 'error',
// Suggest using const
'prefer-const': 'warn',

// check case of component names (not in "vue/recommended")
'vue/component-name-in-template-casing': 'error',
// no ending html tag on a new line (was warn in "vue/strongly-recommended")
'vue/html-closing-bracket-newline': 'error',
// space before self-closing elements (was warn in "vue/strongly-recommended")
'vue/html-closing-bracket-spacing': 'error',
// code spacing with attributes (default is 1)
'vue/max-attributes-per-line': [
'error',
{
singleline: 3,
multiline: {
max: 3,
allowFirstLine: true,
}
}
],
},
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules/
*.log
build/artifacts
build/
js/
.rvm
report
clover.xml
Expand Down
26 changes: 14 additions & 12 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
filter:
excluded_paths:
- 'js/vendor/*'
- 'js/public/*'
- 'js/tests/stubs/*'
- 'templates/*'
- 'l10n/*'
- 'tests/*'
excluded_paths:
- 'js/*'
- 'templates/*'
- 'l10n/*'
- 'tests/*'

imports:
- javascript
- php
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
- eslint-run --ext .js,.vue src

tools:
external_code_coverage:
timeout: 1800
external_code_coverage: false
js_hint: false
26 changes: 26 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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'
},
plugins: ['stylelint-scss']
}
29 changes: 9 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ addons:
packages:
- libxml2-utils

cache:
directories:
- node_modules

env:
global:
- CORE_BRANCH=master
Expand Down Expand Up @@ -44,24 +48,9 @@ script:
# - phpunit --coverage-clover clover.xml -c phpunit.xml
# - phpunit -c phpunit.integration.xml

# execute js tests
- cd js
- npm install
- npm install -g gulp
#- gulp test
- gulp

# Create coverage report
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"

#matrix:
# include:
# - php: 7.1
# env: DB=mysql
# - php: 7.0
# env: "DB=mysql CORE_BRANCH=stable9.1"
# - php: 5.6
# env: "DB=sqlite CORE_BRANCH=stable9"
# fast_finish: true
# build js
- make npm-init
- make lint
- make stylelint
- make build-js-production

2 changes: 0 additions & 2 deletions AUTHORS

This file was deleted.

29 changes: 0 additions & 29 deletions CONTRIBUTING.md

This file was deleted.

Loading