Skip to content

Commit

Permalink
Merge pull request #7 from anzai249/dev
Browse files Browse the repository at this point in the history
v1.0.0
  • Loading branch information
anzai249 authored Feb 9, 2024
2 parents 90cc2af + a1e872c commit 6b60a48
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ And thanks to:
- [x] German
- [x] Dutch
- [ ] Japanese
- [ ] Russian
- [x] Russian

* Database
- [x] MySQL
Expand Down
22 changes: 18 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<n-config-provider :theme="isDark" :theme-overrides="themeOverrides">
<n-layout position="absolute">
<n-layout-header style="height: 53px;" bordered>
<n-layout>
<n-layout-header class="main-header" bordered>
<n-tabs v-model:value="valueTab" :bar-width="35" type="line" animated size="large"
@update:value="handleBeforeLeave" default-value="archive" class="notMobile">
<template #prefix>
<n-divider vertical />
<a class="logo" @click="$router.push('/')"><img height="53" :src="logoBig" /></a>
<a class="logo" @click="$router.push('/')"><img height="45" :src="logoBig" /></a>
<n-divider vertical />
</template>
<n-tab-pane name="archive" :tab="$t('header.archive')">
Expand Down Expand Up @@ -57,7 +57,7 @@
</template>
</n-tabs>
</n-layout-header>
<n-layout position="absolute" style="top: 53px; bottom: 0px">
<n-layout class="questions-content">
<n-message-provider>
<RouterView />
</n-message-provider>
Expand Down Expand Up @@ -130,6 +130,20 @@
cursor: pointer;
filter: invert(v-bind(invertRate));
}
.main-header {
height: 53px;
position: fixed;
z-index: 100;
width: 100%;
padding: 0;
box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.15);
}
.questions-content {
/* padding: 24px; */
margin-top: 53px;
}
</style>

<script>
Expand Down
8 changes: 7 additions & 1 deletion src/components/Ask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{ $t('addNew.sensitiveFalse') }}
</template>
</n-switch>
<n-tag v-if="settings.others.review" type="info">
<n-tag v-if="settings.others.review" type="info" class="needReviewTag">
{{ $t('addNew.needReview') }}
</n-tag>
<n-button type="primary" ghost style="width: 150px;"
Expand All @@ -42,6 +42,12 @@
.askInput {
width: 400px;
}
.needReviewTag {
max-width: 400px;
word-wrap: break-word;
white-space: normal;
}
</style>

<script>
Expand Down
8 changes: 4 additions & 4 deletions src/lang/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
submit: "Absenden",
success: "Erfolgreich abgefragt.",
error: "Error: ",
needReview: "Your question needs to be reviewed before showing."
needReview: "Bevor Anzeige muss ihre Frage überprüft werden."
},
card: {
showSensitive: "Empfindliche Inhalte anzeigen"
Expand All @@ -38,8 +38,8 @@ export default {
deleteConfirm: "Bestätigen Sie das Löschen?",
cancel: "Abbrechen",
deleted: "Gelöscht",
answerquestion: "Answer",
review: "Review",
success: "Operation Succeed"
answerquestion: "Antworten",
review: "Überprüfung",
success: "Erfolgreiche Operation"
}
}
12 changes: 6 additions & 6 deletions src/lang/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export default {
submit: "Отправить",
success: "Вопрос успешно добавлен!",
error: "Ошибка:",
needReview: "Your question needs to be reviewed before showing."
needReview: "Ваш вопрос должен быть рассмотрен владельцем сайта, прежде чем он будет показан."
},
card: {
showSensitive: "Показать конфиденциальную информацию"
},
aboutPage: {
description: "CyberGui - это открытый источник анонимного личного ящика для вопросов, чистое программное обеспечение, легко развертываемое, позволяющее понять вас через анонимные вопросы.",
guiCharacter: "匦 - это ящик, который использовался древнегреческим правительством для сбора писем от людей.",
description: "CyberGui - это анонимный ящик для личных вопросов с открытым исходным кодом, простое и легко развертываемое программное обеспечение, позволяющее другим людям задавать вам анонимные вопросы, чтобы узнать вас получше.",
guiCharacter: "匦 - это коробка, использовавшаяся древним китайским правительством для сбора писем от народа.",
author: "Автор:",
github: "GitHub:",
email: "Электронная почта:"
Expand All @@ -38,8 +38,8 @@ export default {
deleteConfirm: "Вы уверены, что хотите удалить?",
cancel: "Отмена",
deleted: "Удалено",
answerquestion: "Answer",
review: "Review",
success: "Operation Succeed"
answerquestion: "Ответить",
review: "Проверка",
success: "Операция успешна"
}
}
9 changes: 0 additions & 9 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
</n-grid-item>
</n-grid>
</n-layout-content>
<n-layout-footer class="innerFooter">

</n-layout-footer>

</n-layout>
</template>

Expand Down Expand Up @@ -103,11 +99,6 @@ body {
background-color: snow;
}
.innerFooter {
background: rgba(128, 128, 128, 0.2);
padding: 24px;
}
@media (max-width: 650px) {
.cardContainer {
width: 100%;
Expand Down

0 comments on commit 6b60a48

Please sign in to comment.