mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-11-05 20:43:57 +03:00
feat: source code link in about page
This commit is contained in:
parent
962cec0875
commit
24046c0f32
3 changed files with 14 additions and 3 deletions
15
src/App.jsx
15
src/App.jsx
|
@ -31,6 +31,8 @@ import socket from "./components/socket";
|
|||
import Settings from "./pages/settings";
|
||||
import { useState } from "react";
|
||||
import { localesProcess } from "./components/utils";
|
||||
import { ButtonWithIcon } from "./components/button";
|
||||
import { LinkIcon } from "@heroicons/react/24/outline";
|
||||
|
||||
function App() {
|
||||
Storage.prototype.setObj = function (key, obj) {
|
||||
|
@ -82,9 +84,16 @@ function App() {
|
|||
<Route
|
||||
path="/about"
|
||||
element={
|
||||
<div className="col-span-4 md">
|
||||
<RenderMarkdown>{locals.about_md}</RenderMarkdown>
|
||||
</div>
|
||||
<>
|
||||
<ButtonWithIcon
|
||||
icon={LinkIcon}
|
||||
text={locals.SourceCode}
|
||||
href="https://github.com/artegoser/AnoPaper"
|
||||
/>
|
||||
<div className="col-span-4 md">
|
||||
<RenderMarkdown>{locals.about_md}</RenderMarkdown>
|
||||
</div>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
<Route path="/notes" element={<Notes />} />
|
||||
|
|
|
@ -74,6 +74,7 @@ let en = {
|
|||
NoNotesFound: "No notes found",
|
||||
LocalNote: "Local",
|
||||
Menu: "Menu",
|
||||
SourceCode: "Source code",
|
||||
};
|
||||
|
||||
export default en;
|
||||
|
|
|
@ -76,6 +76,7 @@ let ru = {
|
|||
LocalNote: "Локальная",
|
||||
PublishNote: "Публичная",
|
||||
Menu: "Меню",
|
||||
SourceCode: "Исходный код",
|
||||
};
|
||||
|
||||
export default ru;
|
||||
|
|
Loading…
Reference in a new issue