feedback page
This commit is contained in:
parent
885f7f54f0
commit
cf86f781e6
6
.github/single-page.py
vendored
6
.github/single-page.py
vendored
@ -1,19 +1,21 @@
|
|||||||
import glob
|
import glob
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
def output():
|
def output():
|
||||||
read = glob.glob("*.md")
|
read = glob.glob("*.md")
|
||||||
content = ""
|
content = ""
|
||||||
nsfw_content = ""
|
nsfw_content = ""
|
||||||
for file in read:
|
for file in read:
|
||||||
if file != "README.md":
|
if file != "README.md" or file != "feedback.md":
|
||||||
with open(file, "r") as f:
|
with open(file, "r") as f:
|
||||||
if "nsfw" in file.lower():
|
if "NSFWPiracy.md" == file:
|
||||||
nsfw_content += f.read()
|
nsfw_content += f.read()
|
||||||
continue
|
continue
|
||||||
content += f.read()
|
content += f.read()
|
||||||
return content + nsfw_content
|
return content + nsfw_content
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
content = output()
|
content = output()
|
||||||
with open("single-page", "w") as file:
|
with open("single-page", "w") as file:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { defineConfig } from "vitepress";
|
import { defineConfig } from "vitepress";
|
||||||
import UnoCSS from "unocss/vite";
|
import UnoCSS from "unocss/vite";
|
||||||
import { presetUno, presetAttributify, presetIcons } from "unocss";
|
import { presetUno, presetAttributify, presetIcons } from "unocss";
|
||||||
import { commitRef, meta, socials } from "./constants";
|
import { commitRef, feedback, meta, socials } from "./constants";
|
||||||
import { generateImages, generateMeta } from "./hooks";
|
import { generateImages, generateMeta } from "./hooks";
|
||||||
import { toggleStarredPlugin } from "./markdown/toggleStarred";
|
import { toggleStarredPlugin } from "./markdown/toggleStarred";
|
||||||
import { base64DecodePlugin } from "./markdown/base64";
|
import { base64DecodePlugin } from "./markdown/base64";
|
||||||
@ -101,7 +101,7 @@ export default defineConfig({
|
|||||||
provider: "local",
|
provider: "local",
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
message: `Made with ❤️ (rev: ${commitRef})`,
|
message: `${feedback} (rev: ${commitRef})`,
|
||||||
},
|
},
|
||||||
outline: "deep",
|
outline: "deep",
|
||||||
logo: "/fmhy.ico",
|
logo: "/fmhy.ico",
|
||||||
|
@ -3,7 +3,7 @@ import type { DefaultTheme } from "vitepress";
|
|||||||
export const meta = {
|
export const meta = {
|
||||||
name: "FreeMediaHeckYeah",
|
name: "FreeMediaHeckYeah",
|
||||||
description: "The largest collection of free stuff on the internet!",
|
description: "The largest collection of free stuff on the internet!",
|
||||||
hostname: process.env.CF_PAGES ? "https://fmhy.pages.dev" : "https://fmhy.netlify.app",
|
hostname: "https://fmhy.pages.dev",
|
||||||
keywords: ["stream", "movies", "gaming", "reading", "anime"],
|
keywords: ["stream", "movies", "gaming", "reading", "anime"],
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -13,10 +13,12 @@ export const commitRef = process.env.COMMIT_REF
|
|||||||
process.env.COMMIT_REF
|
process.env.COMMIT_REF
|
||||||
}">${process.env.COMMIT_REF.slice(0, 8)}</a>`
|
}">${process.env.COMMIT_REF.slice(0, 8)}</a>`
|
||||||
: process.env.CF_PAGES
|
: process.env.CF_PAGES
|
||||||
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${
|
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${
|
||||||
process.env.CF_PAGES_COMMIT_SHA
|
process.env.CF_PAGES_COMMIT_SHA
|
||||||
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
||||||
: "dev";
|
: "dev";
|
||||||
|
|
||||||
|
export const feedback = `<a href="/feedback" class="feedback-footer">Made with ❤️</a>`;
|
||||||
|
|
||||||
export const socials: DefaultTheme.SocialLink[] = [
|
export const socials: DefaultTheme.SocialLink[] = [
|
||||||
{ icon: "github", link: "https://github.com/fmhy/FMHYEdit" },
|
{ icon: "github", link: "https://github.com/fmhy/FMHYEdit" },
|
||||||
|
@ -176,7 +176,6 @@
|
|||||||
transform: rotate(3deg) translate(0px, -4px);
|
transform: rotate(3deg) translate(0px, -4px);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove these to get rid of the spinner */
|
|
||||||
#nprogress .spinner {
|
#nprogress .spinner {
|
||||||
display: block;
|
display: block;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
---
|
||||||
|
next: false
|
||||||
|
prev: false
|
||||||
|
lastUpdated: false
|
||||||
|
outline: false
|
||||||
|
---
|
||||||
|
### Feedback
|
||||||
|
|
||||||
**Anonymous comments, taken from reddit, discord, twitter, and our feedback system. This is why we do it. People are the motivation, equality is the goal.**
|
**Anonymous comments, taken from reddit, discord, twitter, and our feedback system. This is why we do it. People are the motivation, equality is the goal.**
|
||||||
|
|
||||||
***
|
***
|
||||||
|
Loading…
Reference in New Issue
Block a user