512336685c
* Localized read-all message * Fixed some weirdness: src/client/app/init.ts * Unfucked server api stuff (sorry lol): src/server/api/endpoints/i/read_all_unread_notes.ts * Clean up * Added localization lines to: locales/ja-JP.yml Localized: src/client/app/dev/views/apps.vue * Fix potential error: src/client/app/dev/views/apps.vue * Added relevant localization lines: locales/ja-JP.yml Localized: src/client/app/dev/views/new-app.vue
37 lines
798 B
Vue
37 lines
798 B
Vue
<template>
|
|
<mk-ui>
|
|
<b-card header="%i18n:@manage-apps%">
|
|
<b-button to="/app/new" variant="primary">%i18n:@create-app%</b-button>
|
|
<hr>
|
|
<div class="apps">
|
|
<p v-if="fetching">%i18n:common.loading%</p>
|
|
<template v-if="!fetching">
|
|
<b-alert v-if="apps.length == 0">%i18n:@app-missing%</b-alert>
|
|
<b-list-group v-else>
|
|
<b-list-group-item v-for="app in apps" :key="app.id" :to="`/app/${app.id}`">
|
|
{{ app.name }}
|
|
</b-list-group-item>
|
|
</b-list-group>
|
|
</template>
|
|
</div>
|
|
</b-card>
|
|
</mk-ui>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
export default Vue.extend({
|
|
data() {
|
|
return {
|
|
fetching: true,
|
|
apps: []
|
|
};
|
|
},
|
|
mounted() {
|
|
(this as any).api('my/apps').then(apps => {
|
|
this.apps = apps;
|
|
this.fetching = false;
|
|
});
|
|
}
|
|
});
|
|
</script>
|