Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>tags/v14.0.0beta1
[*] | [*] | ||||
charset = utf-8 | charset = utf-8 | ||||
indent_style = space | |||||
indent_size = 2 | |||||
indent_style = tab | |||||
end_of_line = lf | end_of_line = lf | ||||
insert_final_newline = true | insert_final_newline = true | ||||
trim_trailing_whitespace = true | trim_trailing_whitespace = true | ||||
[{package.json,.travis.yml}] | |||||
indent_style = space | |||||
indent_size = 2 |
all: clean npm-update build-js-production | |||||
all: dev-setup build-js-production | |||||
dev-setup: clean npm-update build-js | |||||
dev-setup: clean clean-dev npm-init | |||||
npm-init: | |||||
npm install | |||||
npm-update: | npm-update: | ||||
rm -rf node_modules | |||||
npm update | npm update | ||||
build-js: | build-js: | ||||
npm run watch | npm run watch | ||||
clean: | clean: | ||||
rm js/main.js | |||||
rm js/main.js.map | |||||
rm -f js/main.js | |||||
rm -f js/main.js.map | |||||
clean-dev: | |||||
rm -rf node_modules | |||||
# settings | |||||
# Settings section | |||||
> A Vue.js project | |||||
> Nextcloud settings with Vue | |||||
## Build Setup | ## Build Setup | ||||
``` bash | ``` bash | ||||
# install dependencies | # install dependencies | ||||
npm install | |||||
make dev-setup | |||||
# serve with hot reload at localhost:8080 | |||||
npm run dev | |||||
# build for development | |||||
make build-js | |||||
# build for production with minification | |||||
npm run build | |||||
``` | |||||
# build for development and watch edits | |||||
make watch-js | |||||
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader). | |||||
# build for production with minification | |||||
make build-js-production | |||||
``` |
<!DOCTYPE html> | |||||
<html lang="en"> | |||||
<head> | |||||
<meta charset="utf-8"> | |||||
<title>settings</title> | |||||
</head> | |||||
<body> | |||||
<div id="app"></div> | |||||
<script src="/dist/build.js"></script> | |||||
</body> | |||||
</html> |
<?php | |||||
/** | |||||
* @copyright Copyright (c) 2018 John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | |||||
* @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | |||||
* | |||||
* | |||||
* @license AGPL-3.0 | |||||
* | |||||
* This code is free software: you can redistribute it and/or modify | |||||
* it under the terms of the GNU Affero General Public License, version 3, | |||||
* as published by the Free Software Foundation. | |||||
* | |||||
* 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, version 3, | |||||
* along with this program. If not, see <http://www.gnu.org/licenses/> | |||||
* | |||||
*/ | |||||
$tmpl = new OC_Template("settings", "settings", "user"); | |||||
$tmpl->printPage(); |
} | } | ||||
}, | }, | ||||
methods: { | methods: { | ||||
showMen() { | |||||
showMenu() { | |||||
this.openedMenu = true; | this.openedMenu = true; | ||||
}, | }, | ||||
hideMenu() { | hideMenu() { |