2024-04-04 20:33:59
This commit is contained in:
parent
3d68692467
commit
da479969a5
|
@ -123,44 +123,6 @@ jobs:
|
|||
dst_user: '${{ secrets.BOT_MIRROR_NAME }}'
|
||||
dst_token: '${{ secrets.BOT_MIRROR_TOKEN_MOSHUB }}'
|
||||
|
||||
# ------------------------------------------------------------------------------------------------------------------ #
|
||||
# GIT.ORG.RU.
|
||||
# ------------------------------------------------------------------------------------------------------------------ #
|
||||
|
||||
mirror_gitorgru:
|
||||
runs-on: ubuntu-latest
|
||||
name: 'GIT.ORG.RU'
|
||||
env:
|
||||
DOMAIN: 'https://git.org.ru'
|
||||
VERSION: 'v1'
|
||||
steps:
|
||||
- name: 'Get repository name'
|
||||
shell: bash
|
||||
run: |
|
||||
echo "REPO_NAME=$( echo '${{ github.repository }}' | awk -F '/' '{ print $2 }' )" >> $GITHUB_ENV
|
||||
- name: 'Create repository'
|
||||
shell: bash
|
||||
run: |
|
||||
http="$( curl -s -o '/dev/null' -I -w '%{http_code}' -A '${{ env.USER_AGENT }}' '${{ env.DOMAIN }}/${{ env.OWNER }}/${{ env.REPO_NAME }}' )"
|
||||
if [[ "${http}" -ne 200 ]]; then
|
||||
curl -X POST \
|
||||
-H 'Authorization: token ${{ secrets.BOT_MIRROR_TOKEN_GITORGRU }}' \
|
||||
-H 'Accept: application/json' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-A '${{ env.USER_AGENT }}' \
|
||||
'${{ env.DOMAIN }}/api/${{ env.VERSION }}/orgs/${{ env.OWNER }}/repos' \
|
||||
-d '{"name":"${{ env.REPO_NAME }}"}'
|
||||
fi
|
||||
- name: 'Mirror repository'
|
||||
uses: ghastore/github-mirror@main
|
||||
with:
|
||||
src_repo: '${{ github.server_url }}/${{ github.repository }}.git'
|
||||
src_user: '${{ secrets.BOT_MIRROR_NAME }}'
|
||||
src_token: '${{ secrets.BOT_MIRROR_TOKEN_GITHUB }}'
|
||||
dst_repo: '${{ env.DOMAIN }}/${{ env.OWNER }}/${{ env.REPO_NAME }}.git'
|
||||
dst_user: '${{ secrets.BOT_MIRROR_NAME }}'
|
||||
dst_token: '${{ secrets.BOT_MIRROR_TOKEN_GITORGRU }}'
|
||||
|
||||
# ------------------------------------------------------------------------------------------------------------------ #
|
||||
# Disroot.
|
||||
# ------------------------------------------------------------------------------------------------------------------ #
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
(() => {
|
||||
'use strict'
|
||||
|
||||
const $getStoredTheme = () => localStorage.getItem('theme')
|
||||
const $setStoredTheme = $theme => localStorage.setItem('theme', $theme)
|
||||
const $getStoredTheme = () => localStorage.getItem('ui.theme')
|
||||
const $setStoredTheme = $theme => localStorage.setItem('ui.theme', $theme)
|
||||
|
||||
const $getPreferredTheme = () => {
|
||||
const $storedTheme = $getStoredTheme()
|
||||
|
@ -32,7 +32,7 @@
|
|||
$setTheme($getPreferredTheme())
|
||||
|
||||
const $showActiveTheme = ($theme, $focus = false) => {
|
||||
const $themeSwitcher = document.querySelector('#bd-theme')
|
||||
const $themeSwitcher = document.querySelector('.ui-theme')
|
||||
|
||||
if (!$themeSwitcher) {
|
||||
return
|
||||
|
|
|
@ -65,7 +65,7 @@ theme:
|
|||
dark: { other: 'Dark' }
|
||||
label: { other: 'Toggle theme' }
|
||||
light: { other: 'Light' }
|
||||
tooltip: { other: 'Toggle theme' }
|
||||
theme: { other: 'UI Theme' }
|
||||
|
||||
# -------------------------------------------------------------------------------------------------------------------- #
|
||||
# Browser console.
|
||||
|
|
|
@ -65,7 +65,7 @@ theme:
|
|||
dark: { other: 'Тёмная' }
|
||||
label: { other: 'Переключить тему' }
|
||||
light: { other: 'Светлая' }
|
||||
tooltip: { other: 'Переключение темы' }
|
||||
theme: { other: 'Тема интерфейса' }
|
||||
|
||||
# -------------------------------------------------------------------------------------------------------------------- #
|
||||
# Browser console.
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<!--[ / blocks ]-->
|
||||
|
||||
<!--[ meta ]-->
|
||||
<div class="section py-3">
|
||||
<div class="section py-3 bg-body-secondary">
|
||||
<div class="container">
|
||||
<div class="row row-cols-1 row-cols-lg-2 small text-body-secondary align-items-center">
|
||||
<!--[ copyright ]-->
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
<li class="nav-item dropdown">
|
||||
<a title='{{ (i18n "theme.tooltip") }}' class="nav-link dropdown-toggle" id="bd-theme"
|
||||
<a class="nav-link dropdown-toggle d-lg-none ui-theme"
|
||||
href="#" role="button" data-bs-toggle="dropdown"
|
||||
aria-expanded="false" aria-label='{{ (i18n "theme.label") }}'>
|
||||
<i class="fas fa-circle-half-stroke fa-fw"></i>
|
||||
<span>{{ (i18n "theme.theme") }}</span>
|
||||
</a>
|
||||
<a title='{{ (i18n "theme.theme") }}' class="nav-link dropdown-toggle d-none d-lg-block ui-theme"
|
||||
href="#" role="button" data-bs-toggle="dropdown"
|
||||
aria-expanded="false" aria-label='{{ (i18n "theme.label") }}'>
|
||||
<i class="fas fa-circle-half-stroke fa-fw"></i>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<i class="fas fa-search fa-fw"></i>
|
||||
<span>{{ (i18n "search") }}</span>
|
||||
</a>
|
||||
<a class="nav-link d-none d-lg-block" href="#"
|
||||
<a title="{{ (i18n "search") }}" class="nav-link d-none d-lg-block" href="#"
|
||||
data-bs-toggle="modal" data-bs-target="#search-modal"
|
||||
aria-label='{{ (i18n "search") }}'>
|
||||
<i class="fas fa-search fa-fw"></i>
|
||||
|
|
Loading…
Reference in New Issue