update version to v1.2.0

This commit is contained in:
Tim Gröger 2024-10-15 09:18:00 +02:00
parent c03fa689ba
commit d50a0bcc3b
4 changed files with 13 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{ {
"license": "MIT", "license": "MIT",
"version": "1.1.0", "version": "1.2.0",
"name": "@flaschengeist/users", "name": "@flaschengeist/users",
"author": "Ferdinand Thiessen <rpm@fthiessen.de>", "author": "Ferdinand Thiessen <rpm@fthiessen.de>",
"homepage": "https://flaschengeist.dev/Flaschengeist", "homepage": "https://flaschengeist.dev/Flaschengeist",
@ -18,8 +18,8 @@
"lint": "eslint --ext .js,.ts,.vue ./src" "lint": "eslint --ext .js,.ts,.vue ./src"
}, },
"devDependencies": { "devDependencies": {
"@flaschengeist/api": "^1.0.0", "@flaschengeist/api": "^1.1.0",
"@flaschengeist/types": "^1.0.0", "@flaschengeist/types": "^1.2.0",
"@quasar/app-webpack": "^3.7.2", "@quasar/app-webpack": "^3.7.2",
"@typescript-eslint/eslint-plugin": "^5.8.0", "@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0", "@typescript-eslint/parser": "^5.8.0",

View File

@ -7,7 +7,7 @@
color="negative" color="negative"
icon="mdi-delete" icon="mdi-delete"
round round
@click="$emit('delete', apiKey)" @click="deleteKey"
/> />
</q-card-section> </q-card-section>
<q-card-section <q-card-section
@ -47,12 +47,16 @@ export default defineComponent({
emits: { emits: {
delete: (apiKey: FG.ApiKey) => !!apiKey, delete: (apiKey: FG.ApiKey) => !!apiKey,
}, },
setup(props) { setup(props, { emit }) {
async function copyApiKey() { async function copyApiKey() {
await navigator.clipboard.writeText(<string>props.apiKey.token); await navigator.clipboard.writeText(<string>props.apiKey.token);
console.log('copying api key', props.apiKey.token); console.log('copying api key', props.apiKey.token);
} }
function deleteKey() {
emit('delete', props.apiKey);
}
return { return {
deleteKey,
copyApiKey, copyApiKey,
}; };
}, },

View File

@ -6,11 +6,12 @@
<q-card-section class="fit row justify-start content-center items-center q-gutter-sm"> <q-card-section class="fit row justify-start content-center items-center q-gutter-sm">
<q-input <q-input
v-model="name" v-model="name"
class="fit"
outlined outlined
label="API Key Name" label="API Key Name"
:rules="[(val) => !!val || 'API Key is required']" :rules="[(val) => !!val || 'API Key is required']"
/> />
<q-input v-model="description" type="textarea" outlined label="Description" /> <q-input v-model="description" class="fit" type="textarea" outlined label="Description" />
</q-card-section> </q-card-section>
<q-card-actions align="right"> <q-card-actions align="right">
<q-btn color="secondary" label="Abbrechen" @click="$emit('close')" /> <q-btn color="secondary" label="Abbrechen" @click="$emit('close')" />

View File

@ -7,8 +7,8 @@ const plugin: FG_Plugin.Plugin = {
id: 'users', id: 'users',
name: 'User', name: 'User',
innerRoutes: routes, innerRoutes: routes,
requiredModules: [['auth'], ['users'], ['roles']], requiredModules: [['auth'], ['users', '2.2.0'], ['roles']],
version: '0.0.1', version: '1.2.0',
widgets: [ widgets: [
{ {
priority: 1, priority: 1,