first commit

This commit is contained in:
cieanyau committed 2026-11-06 00:04:38 +08:00
commit db5762abd4
687 files changed
+171307

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
const authPages = new Set([
"/login",
"/register",
"/signup",
"/forgot-password",
"/forgot_password",
"/oauth/bind",
"/oauth/callback",
"/official-site",
]);
const shopPages = new Set([
"/products",
"/products/cloud-server",
"/products/cvm",
"/products/dedicated-server",
"/products/dedicated-server/customize",
]);
export function isPublicShop(route) {
if (Object.hasOwn(route.query || {}, "edit_position")) return false;
const path = route.path.replace(/\/+$/, "") || "/";
return shopPages.has(path) || /^\/products\/[1-9]\d*$/.test(path);
}
export function isAuthPage(path) {
return authPages.has(path.replace(/\/+$/, "") || "/");
}
export function isPublicRoute(route) {
return (
route.path === "/home.htm" || isAuthPage(route.path) || isPublicShop(route)
);
}
+1
View File
@@ -0,0 +1 @@
export const logoUrl = "/images/brand/logo.png";
+4
View File
@@ -0,0 +1,4 @@
import CryptoJS from "crypto-js";
export function getCrypto() {
return CryptoJS.SHA256;
}
+3
View File
@@ -0,0 +1,3 @@
export function loadModule(load) {
return load();
}