Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
6f8ab0f3
Commit
6f8ab0f3
authored
Feb 05, 2022
by
email
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove ga and fonts
parent
61cf4512
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
5 additions
and
37 deletions
+5
-37
index.html
web/index.html
+0
-11
DINPro-Bold.otf
web/public/fonts/DINPro-Bold.otf
+0
-0
DINPro-Regular.otf
web/public/fonts/DINPro-Regular.otf
+0
-0
UbuntuMono.ttf
web/public/fonts/UbuntuMono.ttf
+0
-0
index.ts
web/src/labs/html2image/index.ts
+0
-3
global.less
web/src/less/global.less
+3
-21
mixin.less
web/src/less/mixin.less
+1
-1
Signin.tsx
web/src/pages/Signin.tsx
+1
-1
No files found.
web/index.html
View file @
6f8ab0f3
...
...
@@ -10,16 +10,5 @@
<body>
<div
id=
"root"
></div>
<script
type=
"module"
src=
"/src/main.tsx"
></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src=
"https://www.googletagmanager.com/gtag/js?id=G-QMWPX445H6"
></script>
<script>
window
.
dataLayer
=
window
.
dataLayer
||
[];
function
gtag
()
{
dataLayer
.
push
(
arguments
);
}
gtag
(
"js"
,
new
Date
());
gtag
(
"config"
,
"G-QMWPX445H6"
);
</script>
</body>
</html>
web/public/fonts/DINPro-Bold.otf
deleted
100644 → 0
View file @
61cf4512
File deleted
web/public/fonts/DINPro-Regular.otf
deleted
100644 → 0
View file @
61cf4512
File deleted
web/public/fonts/UbuntuMono.ttf
deleted
100644 → 0
View file @
61cf4512
File deleted
web/src/labs/html2image/index.ts
View file @
6f8ab0f3
...
...
@@ -6,7 +6,6 @@
* 2. <foreignObject>: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject
*/
import
getCloneStyledElement
from
"./getCloneStyledElement"
;
import
getFontsStyleElement
from
"./getFontsStyleElement"
;
type
Options
=
Partial
<
{
backgroundColor
:
string
;
...
...
@@ -60,8 +59,6 @@ export const toSVG = async (element: HTMLElement, options?: Options) => {
}
const
svg
=
generateSVGElement
(
width
,
height
,
clonedElement
);
svg
.
prepend
(
await
getFontsStyleElement
(
element
));
const
url
=
convertSVGToDataURL
(
svg
);
return
url
;
...
...
web/src/less/global.less
View file @
6f8ab0f3
@import "./mixin.less";
// ⚠️ This font is only free for personal use but not for commercial.
@font-face {
font-family: "DINPro";
src: url("/fonts/DINPro-Regular.otf");
font-weight: normal;
}
@font-face {
font-family: "DINPro";
src: url("/fonts/DINPro-Bold.otf");
font-weight: bold;
}
@font-face {
font-family: "ubuntu-mono";
src: url("/fonts/UbuntuMono.ttf");
font-style: normal;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
color: @text-black;
-webkit-tap-highlight-color: transparent;
font-family: "DINPro", ui-sans-serif, -apple-system, "system-ui", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif,
"Segoe UI Emoji", "Segoe UI Symbol";
}
body,
...
...
@@ -35,6 +14,9 @@ html {
height: 100%;
overflow: hidden;
font-size: 15px;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans", "Noto Sans CJK SC", "Microsoft YaHei UI", "Microsoft YaHei",
"WenQuanYi Micro Hei", sans-serif, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji";
}
code {
...
...
web/src/less/mixin.less
View file @
6f8ab0f3
...
...
@@ -16,7 +16,7 @@
@bg-paper-yellow: #fbf4de;
.mono-font-family {
font-family:
"ubuntu-mono",
SFMono-Regular, Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace;
font-family: SFMono-Regular, Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace;
}
.hide-scroll-bar {
...
...
web/src/pages/Signin.tsx
View file @
6f8ab0f3
...
...
@@ -146,7 +146,7 @@ const Signin: React.FC<Props> = () => {
<>
<
div
className=
"page-content-container"
>
<
div
className=
"form-item-container input-form-container"
>
<
span
className=
{
"normal-text "
+
(
username
===
""
?
""
:
"not-null"
)
}
>
Usern
ma
e
</
span
>
<
span
className=
{
"normal-text "
+
(
username
===
""
?
""
:
"not-null"
)
}
>
Usern
am
e
</
span
>
<
input
type=
"text"
autoComplete=
"off"
value=
{
username
}
onChange=
{
handleUsernameInputChanged
}
/>
</
div
>
<
div
className=
"form-item-container input-form-container"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment