Browse Source

Merge pull request #17357 from nextcloud/enh/oauth/no_oc_binding

Import router in oauth js
tags/v18.0.0beta1
Roeland Jago Douma 4 years ago
parent
commit
2507f26428
No account linked to committer's email address
3 changed files with 19 additions and 2 deletions
  1. 3
    2
      apps/oauth2/src/App.vue
  2. 15
    0
      package-lock.json
  3. 1
    0
      package.json

+ 3
- 2
apps/oauth2/src/App.vue View File

@@ -75,6 +75,7 @@
<script>
import axios from 'nextcloud-axios'
import OAuthItem from './components/OAuthItem'
import { generateUrl } from '@nextcloud/router'

export default {
name: 'App',
@@ -99,7 +100,7 @@ export default {
},
methods: {
deleteClient(id) {
axios.delete(OC.generateUrl('apps/oauth2/clients/{id}', { id: id }))
axios.delete(generateUrl('apps/oauth2/clients/{id}', { id: id }))
.then((response) => {
this.clients = this.clients.filter(client => client.id !== id)
})
@@ -108,7 +109,7 @@ export default {
this.newClient.error = false

axios.post(
OC.generateUrl('apps/oauth2/clients'),
generateUrl('apps/oauth2/clients'),
{
name: this.newClient.name,
redirectUri: this.newClient.redirectUri

+ 15
- 0
package-lock.json View File

@@ -851,6 +851,21 @@
"qrcode": "^1.3.3"
}
},
"@nextcloud/router": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/@nextcloud/router/-/router-0.1.0.tgz",
"integrity": "sha512-adHnDQrnSMX/O9hYJfLVj9PnNJBISLchbzltKvI7s/WJhKF6++qFTx3G5eNEeXbI52Yb8lKIyLRrqC4JWyLmvA==",
"requires": {
"core-js": "3.1.4"
},
"dependencies": {
"core-js": {
"version": "3.1.4",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.1.4.tgz",
"integrity": "sha512-YNZN8lt82XIMLnLirj9MhKDFZHalwzzrL9YLt6eb0T5D0EDl4IQ90IGkua8mHbnxNrkj1d8hbdizMc0Qmg1WnQ=="
}
}
},
"@textlint/ast-node-types": {
"version": "4.2.4",
"resolved": "https://registry.npmjs.org/@textlint/ast-node-types/-/ast-node-types-4.2.4.tgz",

+ 1
- 0
package.json View File

@@ -25,6 +25,7 @@
"dependencies": {
"@babel/polyfill": "^7.6.0",
"@chenfengyuan/vue-qrcode": "^1.0.1",
"@nextcloud/router": "^0.1.0",
"autosize": "^4.0.2",
"backbone": "^1.4.0",
"blueimp-md5": "^2.12.0",

Loading…
Cancel
Save