mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-11-21 19:36:22 +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 Settings from "./pages/settings";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { localesProcess } from "./components/utils";
|
import { localesProcess } from "./components/utils";
|
||||||
|
import { ButtonWithIcon } from "./components/button";
|
||||||
|
import { LinkIcon } from "@heroicons/react/24/outline";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
Storage.prototype.setObj = function (key, obj) {
|
Storage.prototype.setObj = function (key, obj) {
|
||||||
|
@ -82,9 +84,16 @@ function App() {
|
||||||
<Route
|
<Route
|
||||||
path="/about"
|
path="/about"
|
||||||
element={
|
element={
|
||||||
<div className="col-span-4 md">
|
<>
|
||||||
<RenderMarkdown>{locals.about_md}</RenderMarkdown>
|
<ButtonWithIcon
|
||||||
</div>
|
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 />} />
|
<Route path="/notes" element={<Notes />} />
|
||||||
|
|
|
@ -74,6 +74,7 @@ let en = {
|
||||||
NoNotesFound: "No notes found",
|
NoNotesFound: "No notes found",
|
||||||
LocalNote: "Local",
|
LocalNote: "Local",
|
||||||
Menu: "Menu",
|
Menu: "Menu",
|
||||||
|
SourceCode: "Source code",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default en;
|
export default en;
|
||||||
|
|
|
@ -76,6 +76,7 @@ let ru = {
|
||||||
LocalNote: "Локальная",
|
LocalNote: "Локальная",
|
||||||
PublishNote: "Публичная",
|
PublishNote: "Публичная",
|
||||||
Menu: "Меню",
|
Menu: "Меню",
|
||||||
|
SourceCode: "Исходный код",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ru;
|
export default ru;
|
||||||
|
|
Loading…
Add table
Reference in a new issue