Compare commits
3 commits
f676cc1f19
...
2fe35019c8
Author | SHA1 | Date | |
---|---|---|---|
2fe35019c8 | |||
887517d657 | |||
f631154835 |
3 changed files with 26 additions and 10 deletions
|
@ -27,3 +27,10 @@ version() {
|
|||
COMMIT_HASH_INITIAL=$(printf '%s' "$(git rev-parse FETCH_HEAD)" | cut -c 1)
|
||||
printf '%s+neko:%s.%s' "${UPSTREAM_VERSION}" "${COMMIT_DATE}" "${COMMIT_HASH_INITIAL}"
|
||||
}
|
||||
|
||||
version_ci() {
|
||||
UPSTREAM_VERSION=$(grep '"version":' package.json | cut -d '"' -f 4)
|
||||
COMMIT_DATE=$(git show --no-patch --pretty='%cs' HEAD | sed -e 's/-//g' | cut -c 3-)
|
||||
COMMIT_HASH_INITIAL=$(printf '%s' "$(git rev-parse HEAD)" | cut -c 1)
|
||||
printf '%s+neko:%s.%s' "${UPSTREAM_VERSION}" "${COMMIT_DATE}" "${COMMIT_HASH_INITIAL}"
|
||||
}
|
||||
|
|
|
@ -1090,13 +1090,21 @@ async function post() {
|
|||
const languages = Object.keys(langmap);
|
||||
const maxLength = 6;
|
||||
|
||||
defaultStore.state.recentlyUsedPostLanguages = [language.value]
|
||||
.concat(
|
||||
defaultStore.state.recentlyUsedPostLanguages.filter((lang) => {
|
||||
return lang !== language.value && languages.includes(lang);
|
||||
}),
|
||||
)
|
||||
.slice(0, maxLength);
|
||||
defaultStore.set(
|
||||
"recentlyUsedPostLanguages",
|
||||
[language.value]
|
||||
.concat(
|
||||
defaultStore.state.recentlyUsedPostLanguages.filter(
|
||||
(lang) => {
|
||||
return (
|
||||
lang !== language.value &&
|
||||
languages.includes(lang)
|
||||
);
|
||||
},
|
||||
),
|
||||
)
|
||||
.slice(0, maxLength),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
<button v-if="removable" class="_button" @click="remove()">
|
||||
<i :class="icon('ph-trash')"></i>
|
||||
</button>
|
||||
<button v-if="draggable" class="drag-handle _button">
|
||||
<div v-if="draggable" class="drag-handle _button">
|
||||
<i :class="icon('ph-list')"></i>
|
||||
</button>
|
||||
</div>
|
||||
<button class="_button" @click="toggleContent(!showBody)">
|
||||
<template v-if="showBody"
|
||||
><i :class="icon('ph-caret-up')"></i
|
||||
|
@ -139,11 +139,12 @@ export default defineComponent({
|
|||
top: 0;
|
||||
inset-inline-end: 0;
|
||||
|
||||
> button {
|
||||
> ._button {
|
||||
padding: 0;
|
||||
width: 42px;
|
||||
font-size: 0.9em;
|
||||
line-height: 42px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.drag-handle {
|
||||
|
|
Loading…
Reference in a new issue