This commit is contained in:
Julien Calixte
2021-05-09 01:12:01 +02:00
parent a98f30cfcd
commit 6a5e7a9d63
11 changed files with 89 additions and 95 deletions

View File

@@ -1,5 +1,5 @@
<template> <template>
<aside class="new-version" v-if="hasNewVersion"> <aside v-if="hasNewVersion" class="new-version">
<button class="button is-primary" @click="reload"> <button class="button is-primary" @click="reload">
new version available new version available
</button> </button>

View File

@@ -12,7 +12,7 @@
{{ displayedTitle }} {{ displayedTitle }}
</a> </a>
</div> </div>
<div class="share" v-if="false"> <div v-if="false" class="share">
<router-link <router-link
:to="{ :to="{
name: 'ShareNotes', name: 'ShareNotes',

View File

@@ -39,10 +39,9 @@ export const useNoteOverlay = (className: string, index: number) => {
) as NodeListOf<HTMLElement> ) as NodeListOf<HTMLElement>
stackedNoteContainers.forEach((stackedNote, ind) => { stackedNoteContainers.forEach((stackedNote, ind) => {
stackedNote.style.right = `calc(-${NOTE_WIDTH}px + ${(stackedNotes.value stackedNote.style.right = `calc(-${NOTE_WIDTH}px + ${
.length - (stackedNotes.value.length - ind) * BOOKMARK_WIDTH
ind) * }rem)`
BOOKMARK_WIDTH}rem)`
}) })
} }
}) })

View File

@@ -13,8 +13,4 @@ const i18n = createI18n({
messages messages
}) })
createApp(App) createApp(App).use(router).use(i18n).use(createPinia()).mount('#app')
.use(router)
.use(i18n)
.use(createPinia())
.mount('#app')

View File

@@ -5,7 +5,6 @@ import {
getMainReadme, getMainReadme,
getUserSettingsContent getUserSettingsContent
} from '@/modules/repo/services/repo' } from '@/modules/repo/services/repo'
import { refreshToken } from '@/modules/user/service/signIn'
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
interface State { interface State {

View File

@@ -13,10 +13,10 @@
<div class="field-body"> <div class="field-body">
<div class="control"> <div class="control">
<input <input
v-model="user"
class="input" class="input"
type="text" type="text"
placeholder="GitHub username" placeholder="GitHub username"
v-model="user"
/> />
</div> </div>
</div> </div>
@@ -28,10 +28,10 @@
<div class="field-body"> <div class="field-body">
<div class="control"> <div class="control">
<input <input
v-model="token"
class="input" class="input"
type="password" type="password"
placeholder="Personal Access Token" placeholder="Personal Access Token"
v-model="token"
/> />
</div> </div>
</div> </div>

View File

@@ -6,8 +6,8 @@
<div v-else class="columns is-centered"> <div v-else class="columns is-centered">
<div class="column is-one-third"> <div class="column is-one-third">
<table <table
class="table is-striped is-hoverable"
v-if="favoriteRepos.length > 0" v-if="favoriteRepos.length > 0"
class="table is-striped is-hoverable"
> >
<thead> <thead>
<tr> <tr>

View File

@@ -6,10 +6,10 @@
</div> </div>
</article> </article>
<flux-note <flux-note
key="share-notes"
:user="user" :user="user"
:repo="repo" :repo="repo"
:content="content" :content="content"
key="share-notes"
:with-header="false" :with-header="false"
/> />
</div> </div>