update version to v1.2.0
This commit is contained in:
parent
c03fa689ba
commit
d50a0bcc3b
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"license": "MIT",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"name": "@flaschengeist/users",
|
||||
"author": "Ferdinand Thiessen <rpm@fthiessen.de>",
|
||||
"homepage": "https://flaschengeist.dev/Flaschengeist",
|
||||
|
@ -18,8 +18,8 @@
|
|||
"lint": "eslint --ext .js,.ts,.vue ./src"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@flaschengeist/api": "^1.0.0",
|
||||
"@flaschengeist/types": "^1.0.0",
|
||||
"@flaschengeist/api": "^1.1.0",
|
||||
"@flaschengeist/types": "^1.2.0",
|
||||
"@quasar/app-webpack": "^3.7.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
||||
"@typescript-eslint/parser": "^5.8.0",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
color="negative"
|
||||
icon="mdi-delete"
|
||||
round
|
||||
@click="$emit('delete', apiKey)"
|
||||
@click="deleteKey"
|
||||
/>
|
||||
</q-card-section>
|
||||
<q-card-section
|
||||
|
@ -47,12 +47,16 @@ export default defineComponent({
|
|||
emits: {
|
||||
delete: (apiKey: FG.ApiKey) => !!apiKey,
|
||||
},
|
||||
setup(props) {
|
||||
setup(props, { emit }) {
|
||||
async function copyApiKey() {
|
||||
await navigator.clipboard.writeText(<string>props.apiKey.token);
|
||||
console.log('copying api key', props.apiKey.token);
|
||||
}
|
||||
function deleteKey() {
|
||||
emit('delete', props.apiKey);
|
||||
}
|
||||
return {
|
||||
deleteKey,
|
||||
copyApiKey,
|
||||
};
|
||||
},
|
||||
|
|
|
@ -6,11 +6,12 @@
|
|||
<q-card-section class="fit row justify-start content-center items-center q-gutter-sm">
|
||||
<q-input
|
||||
v-model="name"
|
||||
class="fit"
|
||||
outlined
|
||||
label="API Key Name"
|
||||
: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-actions align="right">
|
||||
<q-btn color="secondary" label="Abbrechen" @click="$emit('close')" />
|
||||
|
|
|
@ -7,8 +7,8 @@ const plugin: FG_Plugin.Plugin = {
|
|||
id: 'users',
|
||||
name: 'User',
|
||||
innerRoutes: routes,
|
||||
requiredModules: [['auth'], ['users'], ['roles']],
|
||||
version: '0.0.1',
|
||||
requiredModules: [['auth'], ['users', '2.2.0'], ['roles']],
|
||||
version: '1.2.0',
|
||||
widgets: [
|
||||
{
|
||||
priority: 1,
|
||||
|
|
Loading…
Reference in New Issue