Compare commits
5 commits
bd263587b2
...
a5d4b0a68c
Author | SHA1 | Date | |
---|---|---|---|
a5d4b0a68c | |||
97966045cb | |||
aad023c8a0 | |||
3e86db24d3 | |||
7789c5def6 |
2 changed files with 58 additions and 44 deletions
|
@ -48,8 +48,8 @@ steps:
|
||||||
- SCW_DEFAULT_ORGANIZATION_ID
|
- SCW_DEFAULT_ORGANIZATION_ID
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get install -y rclone wget zip
|
- apt-get update && apt-get install -y rclone wget zip
|
||||||
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
|
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.30.0/scaleway-cli_2.30.0_linux_amd64
|
||||||
- mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
|
- mv scaleway-cli_2.30.0_linux_amd64 scaleway-cli
|
||||||
- chmod +x scaleway-cli
|
- chmod +x scaleway-cli
|
||||||
- ./scaleway-cli object config install type=rclone
|
- ./scaleway-cli object config install type=rclone
|
||||||
- zip akkoma-fe.zip -r dist
|
- zip akkoma-fe.zip -r dist
|
||||||
|
@ -71,8 +71,8 @@ steps:
|
||||||
- SCW_DEFAULT_ORGANIZATION_ID
|
- SCW_DEFAULT_ORGANIZATION_ID
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get install -y rclone wget git zip
|
- apt-get update && apt-get install -y rclone wget git zip
|
||||||
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64
|
- wget https://github.com/scaleway/scaleway-cli/releases/download/v2.30.0/scaleway-cli_2.30.0_linux_amd64
|
||||||
- mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli
|
- mv scaleway-cli_2.30.0_linux_amd64 scaleway-cli
|
||||||
- chmod +x scaleway-cli
|
- chmod +x scaleway-cli
|
||||||
- ./scaleway-cli object config install type=rclone
|
- ./scaleway-cli object config install type=rclone
|
||||||
- cd docs
|
- cd docs
|
||||||
|
@ -80,4 +80,4 @@ steps:
|
||||||
- mkdocs build
|
- mkdocs build
|
||||||
- zip -r docs.zip site/*
|
- zip -r docs.zip site/*
|
||||||
- cd site
|
- cd site
|
||||||
- rclone copy . scaleway:akkoma-docs/frontend/$CI_COMMIT_BRANCH/
|
- rclone copy . scaleway:akkoma-docs/frontend/$CI_COMMIT_BRANCH/
|
||||||
|
|
|
@ -190,6 +190,7 @@
|
||||||
<div
|
<div
|
||||||
v-if="!disableScopeSelector"
|
v-if="!disableScopeSelector"
|
||||||
class="visibility-tray"
|
class="visibility-tray"
|
||||||
|
:class="{ 'visibility-tray-edit': isEdit }"
|
||||||
>
|
>
|
||||||
<scope-selector
|
<scope-selector
|
||||||
v-if="!disableVisibilitySelector"
|
v-if="!disableVisibilitySelector"
|
||||||
|
@ -200,47 +201,50 @@
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="language-selector"
|
class="format-selector-container">
|
||||||
>
|
<div
|
||||||
<Select
|
class="format-selector"
|
||||||
id="post-language"
|
|
||||||
v-model="newStatus.language"
|
|
||||||
class="form-control"
|
|
||||||
>
|
|
||||||
<option
|
|
||||||
v-for="language in postLanguageOptions"
|
|
||||||
:key="language.key"
|
|
||||||
:value="language.value"
|
|
||||||
>
|
>
|
||||||
{{ language.label }}
|
<Select
|
||||||
</option>
|
id="post-language"
|
||||||
</Select>
|
v-model="newStatus.language"
|
||||||
</div>
|
class="form-control"
|
||||||
<div
|
|
||||||
v-if="postFormats.length > 1"
|
|
||||||
class="text-format"
|
|
||||||
>
|
|
||||||
<Select
|
|
||||||
id="post-content-type"
|
|
||||||
v-model="newStatus.contentType"
|
|
||||||
class="form-control"
|
|
||||||
>
|
|
||||||
<option
|
|
||||||
v-for="postFormat in postFormats"
|
|
||||||
:key="postFormat"
|
|
||||||
:value="postFormat"
|
|
||||||
>
|
>
|
||||||
{{ $t(`post_status.content_type["${postFormat}"]`) }}
|
<option
|
||||||
</option>
|
v-for="language in postLanguageOptions"
|
||||||
</Select>
|
:key="language.key"
|
||||||
</div>
|
:value="language.value"
|
||||||
<div
|
>
|
||||||
v-if="postFormats.length === 1 && postFormats[0] !== 'text/plain'"
|
{{ language.label }}
|
||||||
class="text-format"
|
</option>
|
||||||
>
|
</Select>
|
||||||
<span class="only-format">
|
</div>
|
||||||
{{ $t(`post_status.content_type["${postFormats[0]}"]`) }}
|
<div
|
||||||
</span>
|
v-if="postFormats.length > 1"
|
||||||
|
class="text-format format-selector"
|
||||||
|
>
|
||||||
|
<Select
|
||||||
|
id="post-content-type"
|
||||||
|
v-model="newStatus.contentType"
|
||||||
|
class="form-control"
|
||||||
|
>
|
||||||
|
<option
|
||||||
|
v-for="postFormat in postFormats"
|
||||||
|
:key="postFormat"
|
||||||
|
:value="postFormat"
|
||||||
|
>
|
||||||
|
{{ $t(`post_status.content_type["${postFormat}"]`) }}
|
||||||
|
</option>
|
||||||
|
</Select>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="postFormats.length === 1 && postFormats[0] !== 'text/plain'"
|
||||||
|
class="text-format format-selector"
|
||||||
|
>
|
||||||
|
<span class="only-format">
|
||||||
|
{{ $t(`post_status.content_type["${postFormats[0]}"]`) }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -460,6 +464,10 @@
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.visibility-tray-edit {
|
||||||
|
justify-content: right;
|
||||||
|
}
|
||||||
|
|
||||||
.visibility-notice.edit-warning {
|
.visibility-notice.edit-warning {
|
||||||
> :first-child {
|
> :first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
@ -470,6 +478,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.format-selector-container {
|
||||||
|
.format-selector {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.media-upload-icon, .poll-icon, .emoji-icon, .spoiler-icon {
|
.media-upload-icon, .poll-icon, .emoji-icon, .spoiler-icon {
|
||||||
font-size: 1.85em;
|
font-size: 1.85em;
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
|
|
Loading…
Reference in a new issue