diff --git a/package.json b/package.json index 445b531..8e1db75 100644 --- a/package.json +++ b/package.json @@ -33,13 +33,13 @@ "eslint-plugin-promise": "^6.0.0", "eslint-plugin-vue": "^9.1.1", "laravel-mix": "^6.0.49", + "laravel-nova-ui": "^0.4.12", + "luxon": "^3.4.4", "postcss": "^8.4.14", "prettier": "^2.7.1", "pretty-quick": "^3.1.3", "semantic-release": "^21.0.2", "vue-loader": "^17.1.1" }, - "dependencies": { - "luxon": "^3.3.0" - } + "dependencies": {} } diff --git a/resources/js/components/CreateTokenModal.vue b/resources/js/components/CreateTokenModal.vue index 5286219..86b6da5 100644 --- a/resources/js/components/CreateTokenModal.vue +++ b/resources/js/components/CreateTokenModal.vue @@ -22,7 +22,7 @@ list="name-list" type="text" placeholder="Name" - class="w-full form-control form-input form-input-bordered" + class="w-full form-control form-input form-control-bordered" required /> @@ -38,7 +38,7 @@ v-model="tokenAbilities" type="text" :placeholder="options.defaultAbilities" - class="w-full form-control form-input form-input-bordered" + class="w-full form-control form-input form-control-bordered" />

{{ __("Comma separated list of abilities to apply to token.") }} diff --git a/resources/js/components/CreatedTokenModal.vue b/resources/js/components/CreatedTokenModal.vue index 9b1efe5..e654aea 100644 --- a/resources/js/components/CreatedTokenModal.vue +++ b/resources/js/components/CreatedTokenModal.vue @@ -8,24 +8,24 @@

-
- +
+ +
{{ @@ -64,11 +64,11 @@ export default { handleConfirmed() { this.$emit("confirmed"); }, - copyValueToClipboard(value) { + copyValueToClipboard() { if (navigator.clipboard) { - navigator.clipboard.writeText(value); + navigator.clipboard.writeText(this.newToken); } else if (window.clipboardData) { - window.clipboardData.setData("Text", value); + window.clipboardData.setData("Text", this.newToken); } else { const input = document.createElement("input"); const [scrollTop, scrollLeft] = [ @@ -76,7 +76,7 @@ export default { document.documentElement.scrollLeft, ]; document.body.appendChild(input); - input.value = value; + input.value = this.newToken; input.focus(); input.select(); document.documentElement.scrollTop = scrollTop; diff --git a/resources/js/components/DeleteTokenModal.vue b/resources/js/components/DeleteTokenModal.vue index e705873..b5182c2 100644 --- a/resources/js/components/DeleteTokenModal.vue +++ b/resources/js/components/DeleteTokenModal.vue @@ -27,9 +27,13 @@ > {{ __("Cancel") }} - + {{ __("Revoke Token") }} - +
@@ -37,7 +41,12 @@