diff --git a/electron-builder.json5 b/electron-builder.json5
index bb5fb9ab..b0e3c18f 100644
--- a/electron-builder.json5
+++ b/electron-builder.json5
@@ -1,9 +1,9 @@
// @see https://www.electron.build/configuration/configuration
{
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
- "appId": "YourAppID",
+ "appId": "store.spark-app.erotica",
"asar": true,
- "productName": "YourAppName",
+ "productName": "APM AppStore",
"directories": {
"output": "release/${version}"
},
diff --git a/index.html b/index.html
index 45721c7b..9f15f74c 100644
--- a/index.html
+++ b/index.html
@@ -2,10 +2,10 @@
-
+
- APM Store
+ APM 应用商店
diff --git a/package.json b/package.json
index 4061ac36..ad43d710 100644
--- a/package.json
+++ b/package.json
@@ -1,17 +1,18 @@
{
- "name": "electron-vue-vite",
- "version": "28.1.0",
+ "name": "apm-app-store",
+ "version": "1.0.0",
"main": "dist-electron/main/index.js",
- "description": "Really simple Electron + Vue + Vite boilerplate.",
- "author": "草鞋没号 <308487730@qq.com>",
- "license": "MIT",
+ "description": "Client for APM App Store",
+ "author": "elysia-best ",
+ "license": "UNLICENSED",
"private": true,
"keywords": [
"electron",
"rollup",
"vite",
"vue3",
- "vue"
+ "vue",
+ "spark-app-store"
],
"debug": {
"env": {
diff --git a/public/amber-pm-logo.png b/public/amber-pm-logo.png
new file mode 100644
index 00000000..812b1c96
Binary files /dev/null and b/public/amber-pm-logo.png differ
diff --git a/public/logo.svg b/public/logo.svg
deleted file mode 100644
index 96fc008b..00000000
--- a/public/logo.svg
+++ /dev/null
@@ -1,20 +0,0 @@
-
diff --git a/src/App.vue b/src/App.vue
index 38db9175..f6968dbe 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -122,7 +122,7 @@ const openDetail = (app) => {
const loadScreenshots = (app) => {
screenshots.value = [];
for (let i = 1; i <= 5; i++) {
- const screenshotUrl = `./${app._category}/${app.Pkgname}/screen_${i}.png`;
+ const screenshotUrl = `${APM_STORE_BASE_URL}/${APM_STORE_ARCHITECTURE}/${app._category}/${app.Pkgname}/screen_${i}.png`;
const img = new Image();
img.src = screenshotUrl;
img.onload = () => {
@@ -242,24 +242,6 @@ const escapeHtml = (s) => {
})[c]);
};
-const initLazyLoad = () => {
- if ('IntersectionObserver' in window) {
- observer.value = new IntersectionObserver((entries) => {
- entries.forEach(entry => {
- if (entry.isIntersecting) {
- const img = entry.target;
- img.src = img.dataset.src;
- img.classList.remove('lazy');
- observer.value.unobserve(img);
- }
- });
- }, {
- rootMargin: '50px 0px',
- threshold: 0.1
- });
- }
-};
-
const loadCategories = async () => {
try {
const response = await axiosInstance.get(`/${APM_STORE_ARCHITECTURE}/categories.json`);
@@ -305,7 +287,6 @@ const handleSearchInput = (e) => {
// 生命周期钩子
onMounted(async () => {
initTheme();
- initLazyLoad();
await loadCategories();
await loadApps();
diff --git a/src/components/AppCard.vue b/src/components/AppCard.vue
index 8089f6e0..d47f0238 100644
--- a/src/components/AppCard.vue
+++ b/src/components/AppCard.vue
@@ -20,7 +20,7 @@