Skip to content

Commit

Permalink
Merge pull request #510 from nextcloud/enh/vue-rewrite
Browse files Browse the repository at this point in the history
[WIP] Rewrite UI in Vue.js
  • Loading branch information
tacruc authored Apr 14, 2022
2 parents 432a311 + 1fd6e93 commit 9e04e71
Show file tree
Hide file tree
Showing 110 changed files with 35,501 additions and 15,518 deletions.
40 changes: 15 additions & 25 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
"nextcloud"
],
rules: {
"vue/component-name-in-template-casing": ["error", "PascalCase"],
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
},
globals: {
OC: false,
OCA: false,
t: false,
n: false,
$: false // TODO: remove once jQuery has been removed
},
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
parser: "babel-eslint"
}
};
globals: {
appVersion: true
},
parserOptions: {
requireConfigFile: false
},
extends: [
'@nextcloud'
],
rules: {
'jsdoc/require-jsdoc': 'off',
'jsdoc/tag-lines': 'off',
'vue/first-attribute-linebreak': 'off'
}
}
18 changes: 0 additions & 18 deletions .stylelintrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,11 @@ endif
.PHONY: npm
npm:
$(npm) ci
sed -i.bak 's/L\.Browser\.touch/L.Browser.mobile/g' node_modules/leaflet.elevation/dist/Leaflet.Elevation-0.0.2.min.js && rm node_modules/leaflet.elevation/dist/Leaflet.Elevation-0.0.2.min.js.bak
$(npm) run build

.PHONY: npm-dev
npm-dev:
$(npm) ci
sed -i.bak 's/L\.Browser\.touch/L.Browser.mobile/g' node_modules/leaflet.elevation/dist/Leaflet.Elevation-0.0.2.min.js && rm node_modules/leaflet.elevation/dist/Leaflet.Elevation-0.0.2.min.js.bak
$(npm) run dev

# Removes the appstore build
Expand Down
4 changes: 3 additions & 1 deletion appinfo/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@


class Application extends App {
public function __construct (array $urlParams=array()) {
public const APP_ID = 'maps';

public function __construct (array $urlParams = array()) {
parent::__construct('maps', $urlParams);

$container = $this->getContainer();
Expand Down
5 changes: 3 additions & 2 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@


// utils
['name' => 'utils#getOptionsValues', 'url' => '/getOptionsValues', 'verb' => 'POST'],
['name' => 'utils#getOptionsValues', 'url' => '/getOptionsValues', 'verb' => 'GET'],
['name' => 'utils#saveOptionValue', 'url' => '/saveOptionValue', 'verb' => 'POST'],
['name' => 'utils#setRoutingSettings', 'url' => '/setRoutingSettings', 'verb' => 'POST'],
['name' => 'utils#getTrafficStyle', 'url' => '/style/traffic', 'verb' => 'GET'],

// photos
['name' => 'photos#getPhotosFromDb', 'url' => '/photos', 'verb' => 'GET'],
Expand All @@ -28,7 +29,7 @@

// contacts
['name' => 'contacts#getContacts', 'url' => '/contacts', 'verb' => 'GET'],
['name' => 'contacts#getAllContacts', 'url' => '/contacts-all', 'verb' => 'GET'],
['name' => 'contacts#searchContacts', 'url' => '/contacts-search', 'verb' => 'GET'],
['name' => 'contacts#placeContact', 'url' => '/contacts/{bookid}/{uri}', 'verb' => 'PUT'],
['name' => 'contacts#deleteContactAddress', 'url' => '/contacts/{bookid}/{uri}', 'verb' => 'DELETE'],
['name' => 'contacts#getContactLetterAvatar', 'url' => '/contacts-avatar', 'verb' => 'GET'],
Expand Down
Loading

0 comments on commit 9e04e71

Please sign in to comment.