Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Oct 3, 2024
1 parent ec439db commit e45f27c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/.vuepress/config/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ module.exports = [
{
text: "JS版本",
link: "/pages/js/",
icon: `<svg t="1718518473654" class="icon" viewBox="0 0 2275 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path d="M227.555556 227.555556v580.266666h91.022222V375.466667l307.2 443.733333h91.022222V227.555556h-91.022222v432.355555L318.577778 227.555556H227.555556z m261.688888 0c0-79.644444 56.888889-136.533333 136.533334-136.533334h91.022222c79.644444 0 136.533333 56.888889 136.533333 136.533334v580.266666c0 79.644444-56.888889 136.533333-136.533333 136.533334h-91.022222c-45.511111 0-91.022222-22.755556-113.777778-56.888889L455.111111 807.822222v11.377778c0 79.644444-56.888889 136.533333-136.533333 136.533333H227.555556C147.911111 955.733333 91.022222 898.844444 91.022222 819.2V227.555556C91.022222 147.911111 147.911111 91.022222 227.555556 91.022222h91.022222c45.511111 0 91.022222 22.755556 113.777778 56.888889l56.888888 79.644445z m341.333334 0v580.266666h443.733333v-68.266666H921.6V546.133333h318.577778v-68.266666H921.6V307.2H1251.555556V227.555556H830.577778z m546.133333 250.311111v79.644444c0 22.755556-11.377778 56.888889-22.755555 79.644445 34.133333 22.755556 56.888889 68.266667 56.888888 113.777777v79.644445c0 79.644444-56.888889 136.533333-136.533333 136.533333H830.577778c-79.644444 0-136.533333-56.888889-136.533334-136.533333V227.555556c0-79.644444 56.888889-136.533333 136.533334-136.533334H1251.555556c79.644444 0 136.533333 56.888889 136.533333 136.533334v79.644444c0 34.133333-11.377778 68.266667-45.511111 102.4 22.755556 11.377778 34.133333 34.133333 34.133333 68.266667zM1308.444444 227.555556L1479.111111 807.822222h102.4l125.155556-455.111111 125.155555 455.111111h91.022222L2082.133333 227.555556h-102.4l-113.777777 455.111111-125.155556-455.111111h-91.022222l-125.155556 455.111111-113.777778-455.111111h-102.4z m341.333334-136.533334h91.022222c45.511111 0 91.022222 22.755556 125.155556 68.266667 22.755556-45.511111 68.266667-68.266667 113.777777-68.266667h102.4c91.022222 0 159.288889 91.022222 136.533334 170.666667L2048 853.333333c-11.377778 56.888889-68.266667 102.4-136.533333 102.4H1820.444444c-56.888889 0-102.4-34.133333-125.155555-79.644444-22.755556 45.511111-68.266667 79.644444-125.155556 79.644444H1479.111111c-56.888889 0-113.777778-45.511111-136.533333-102.4l-170.666667-580.266666c-22.755556-91.022222 45.511111-170.666667 136.533333-170.666667h102.4c45.511111 0 91.022222 22.755556 125.155556 68.266667 22.755556-56.888889 68.266667-79.644444 113.777778-79.644445z" fill="#F92200" p-id="15414"></path><path d="M227.555556 227.555556h91.022222l307.2 432.355555V227.555556h91.022222v580.266666h-91.022222L318.577778 375.466667v443.733333H227.555556V227.555556z m603.022222 0H1251.555556v79.644444H921.6v170.666667h318.577778v79.644444H921.6v182.044445h352.711111v79.644444H830.577778V227.555556z m477.866666 0h102.4l113.777778 455.111111 125.155556-455.111111h91.022222l125.155556 455.111111 113.777777-455.111111h102.4l-170.666666 580.266666H1820.444444l-125.155555-455.111111-125.155556 455.111111H1479.111111L1308.444444 227.555556z" fill="#FFFFFF" p-id="15415"></path></svg>`,
icon: `<svg t="1720145249783" class="icon" viewBox="0 0 1962 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path d="M85.333333 85.333333v853.333334h1792V85.333333H85.333333m0-85.333333h1792a85.333333 85.333333 0 0 1 85.333334 85.333333v853.333334a85.333333 85.333333 0 0 1-85.333334 85.333333H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V85.333333a85.333333 85.333333 0 0 1 85.333333-85.333333z" fill="#c73420" p-id="32177"></path><path d="M525.994667 212.992l-10.922667 3.413333H352.597333V826.026667h70.997334V288.768h66.218666a2557.738667 2557.738667 0 0 1-38.912 142.165333 192.64 192.64 0 0 1 47.786667 124.928 51.584 51.584 0 0 1-12.288 40.277334 28.16 28.16 0 0 1-18.432 5.461333 224.085333 224.085333 0 0 1-29.354667-0.853333 164.48 164.48 0 0 1 17.92 69.632 231.594667 231.594667 0 0 0 44.373334-1.365334 83.456 83.456 0 0 0 38.4-15.018666 104.490667 104.490667 0 0 0 30.72-89.6A221.482667 221.482667 0 0 0 520.533333 422.4c18.432-52.565333 40.96-121.514667 58.709334-178.858667zM678.912 405.333333h150.186667v54.613334h-150.186667z m150.186667-118.784v53.248h-150.186667V286.72z m65.536 250.538667a658.986667 658.986667 0 0 1-77.824 67.584 478.72 478.72 0 0 1-27.306667-74.410667h118.101333V216.917333H599.04V706.56a67.029333 67.029333 0 0 1-31.573333 59.392 259.84 259.84 0 0 1 34.986666 63.488c16.213333-10.24 41.813333-20.48 174.762667-54.613333a490.666667 490.666667 0 0 1-3.413333-73.728l-94.890667 21.333333v-192h40.96c32.085333 133.802667 86.698667 238.933333 188.416 294.912a291.498667 291.498667 0 0 1 53.930667-70.144 283.221333 283.221333 0 0 1-110.592-91.648 1298.474667 1298.474667 0 0 0 95.573333-68.949333z m291.498666-221.866667v118.784h-81.92V315.221333z m-81.92 313.514667v-123.733333h81.92v123.733333z m157.866667-385.706667h-234.325333v513.365334h76.458666v-54.613334h157.866667z m380.245333 72.533334h-69.802666V194.56H1489.92v120.832h-202.069333V395.946667h202.069333v322.218666c0 14.336-5.461333 19.114667-20.48 19.114667-14.336 0-64.853333 0-112.64-2.048a309.290667 309.290667 0 0 1 28.672 81.92 403.541333 403.541333 0 0 0 146.261333-14.336c30.72-12.8 40.96-34.133333 40.96-83.285333V395.946667h69.632zM1463.466667 590.506667c-21.845333-39.594667-68.266667-103.082667-101.717334-150.186667l-66.901333 35.498667c32.768 49.834667 76.458667 116.736 96.938667 156.330666z" fill="#c73420" p-id="32178"></path></svg>`,
// icon: `<svg t="1719296160563" class="icon" viewBox="0 0 1536 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path d="M736 448C753.92 448 768 433.92 768 416 768 398.08 753.92 384 736 384l-128 0C590.08 384 576 398.08 576 416l0 256C576 689.92 590.08 704 608 704l128 0c17.92 0 32-14.08 32-32 0-17.92-14.08-32-32-32L640 640 640 576l96 0C753.92 576 768 561.92 768 544 768 526.08 753.92 512 736 512L640 512 640 448 736 448zM480 385.92C462.08 385.92 448 400 448 417.28l0 158.72L313.6 398.72C305.28 387.2 291.2 382.72 277.76 387.2 264.96 391.68 256 403.84 256 417.28l0 254.72C256 689.28 270.08 704 288 704 305.92 704 320 689.28 320 672L320 512.64l134.4 177.92C460.8 698.88 470.4 704 480 704c3.2 0 7.04-0.64 10.24-1.92C503.04 697.6 512 685.44 512 672L512 417.28C512 400 497.92 385.92 480 385.92zM1344 192 192 192C121.6 192 64 249.6 64 320l0 448c0 70.4 57.6 128 128 128l1152 0c70.4 0 128-57.6 128-128L1472 320C1472 249.6 1414.4 192 1344 192zM1408 768c0 35.2-28.8 64-64 64L192 832c-35.2 0-64-28.8-64-64L128 320c0-35.2 28.8-64 64-64l1152 0c35.2 0 64 28.8 64 64L1408 768zM1251.2 384c-16-5.76-34.56 1.92-40.32 18.56l-65.28 172.8-65.28-172.8c-8.96-24.32-49.92-24.32-58.88 0l-65.28 172.8-65.28-172.8C885.12 385.92 867.2 377.6 850.56 384c-16.64 6.4-24.32 24.32-18.56 40.32l94.72 250.88c8.96 24.32 49.92 24.32 58.88 0l65.28-172.8 65.28 172.8c4.48 12.16 16.64 20.48 29.44 20.48 13.44 0 24.96-8.32 29.44-20.48l94.72-250.88C1276.16 407.68 1267.84 389.76 1251.2 384z" p-id="55174" fill="#d81e06"></path></svg>`,
},
{
text: "赞助",
Expand Down
37 changes: 33 additions & 4 deletions docs/03.JS版本/01.JS版本.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ permalink: /pages/js/
article: false
---

<p style="color:red">JS版本已开发并测试完毕,限时优惠中,欢迎咨询 🎉</p>

### 介绍

`JS`版本即`pure-admin-thin-js`,它是 [pure-admin-thin](https://github.com/pure-admin/pure-admin-thin)`js`版本,同时拥有`国际化``非国际化`两个版本并且会`永久同步`代码。`JS`版本将之前所有使用`TypeScript`语法的代码或文件全量替换为`JavaScript`语法,也就意味着您在编写代码时可以更加地随意,无需编写`ts`类型。`JS`版本`快速易上手`、更适合需要`快速开发上线`的项目、更适合`二次开发`、它也避免了开发人员将 `TypeScript``JavaScript` 混用带来后续难以维护的问题。对于初学者、小团队或者想要学习源码的朋友,推荐首选`JS`版本!
Expand All @@ -15,11 +13,39 @@ article: false

### 价格

原价<span class="money-deleted">`¥299`</span>,限时`¥199`。因成本较大,恢复原价后,将永远保持原价
原价<span class="money-deleted">`¥300`</span>,限时`¥188` <span id="js-time" style="color: red" />

<script>
function padZero(num) {
return num < 10 ? '0' + num : num;
}

function updateCountdown() {
const now = new Date();
const targetDate = new Date('2025-01-01T00:00:00');
const diff = targetDate - now;

if (diff < 0) {
document.getElementById('js-time').innerHTML = "已恢复原价";
clearInterval(intervalId);
return;
}

const days = Math.floor(diff / (1000 * 60 * 60 * 24));
const hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((diff % (1000 * 60)) / 1000);

document.getElementById('js-time').innerHTML =
`距离恢复原价还剩 ${padZero(days)}${padZero(hours)} 小时 ${padZero(minutes)} 分钟 ${padZero(seconds)}`;
}

const intervalId = setInterval(updateCountdown, 1000);
</script>

### 如何购买

加微信号: `pureadmin` 或扫下方二维码,添加时请备注`js版本`,无备注会被忽略
加微信号: `pureadmin` 或扫下方二维码,添加时请备注`js`,无备注会被忽略

<img :src="$withBase('/img/support/addWx.jpg')" width="180px" height="180px" />

Expand Down Expand Up @@ -62,4 +88,7 @@ article: false
height: 1px;
background-color: black;
}
#js-time {
margin-left: 1rem;
}
</style>

0 comments on commit e45f27c

Please sign in to comment.