Compare commits

...

6 commits

Author SHA1 Message Date
ad8b65511f update 2024-08-04 14:22:35 +08:00
0e0a8696f8 update 2024-08-04 14:01:09 +08:00
19783d8a9f update 2024-08-04 13:58:59 +08:00
444ae4d71c update 2024-08-04 13:39:01 +08:00
奚玉帆
3a609053c4
Update README.md 2024-08-04 12:36:00 +08:00
22e16061b2 update 2024-08-04 12:34:16 +08:00
11 changed files with 124 additions and 11 deletions

View file

@ -82,3 +82,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
``` ```
## 饿饿饭饭
<img src="https://github.com/silenty4ng/k5web/blob/master/public/mm_facetoface_collect_qrcode_1714392837792.png?raw=true" width="300" /> <img src="https://github.com/silenty4ng/k5web/blob/master/public/1722745910257.jpg?raw=true" width="300" />
TRON / TRXTPaSnHJ2cRCQjjv7TyAFJDamb3mZSSz1At

View file

@ -73,5 +73,21 @@ export default defineConfig({
javascriptEnabled: true, javascriptEnabled: true,
}, },
}, },
postcss: {
plugins: [
require('postcss-px-to-viewport')({
viewportWidth: 2560, // 视口宽度,对应设计稿宽度
viewporHeight: 1440, // 视口高度,对应设计稿高度
unitPrecision: 3, // 指定px转换之后的小数位数
viewportUnit: 'vw', // 转换的单位
fontViewportUnit: 'vw', // 字体使用的单位
replace: false, // 是否直接更换属性值,而不添加备用属性
selectorBlackList: ['.ignore', '.hairlines', '.arco', '.layout', '.nav-btn'], // 指定不转换的类
exclude: /(\/|\\)(node_modules)(\/|\\)/, //禁止更改第三方UI框架样式
minPixelValue: 15, // 小于或等于1px不转换
mediaQuery: true, // 允许在媒体查询中转换
})
]
}
}, },
}); });

View file

@ -67,6 +67,7 @@
"less": "^4.1.3", "less": "^4.1.3",
"mockjs": "^1.1.0", "mockjs": "^1.1.0",
"postcss-html": "^1.5.0", "postcss-html": "^1.5.0",
"postcss-px-to-viewport": "^1.1.1",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"rollup": "^3.9.1", "rollup": "^3.9.1",
"rollup-plugin-visualizer": "^5.8.2", "rollup-plugin-visualizer": "^5.8.2",

BIN
public/1722745910257.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

View file

@ -144,6 +144,7 @@ export default {
'menu.firmware': 'Firmware Store', 'menu.firmware': 'Firmware Store',
'menu.channel': 'Channel Share', 'menu.channel': 'Channel Share',
'global.use': 'Use', 'global.use': 'Use',
'global.download': 'Download',
'tool.ssbpatch': 'LOSEHU S Firmware SI4732 SSB Patch', 'tool.ssbpatch': 'LOSEHU S Firmware SI4732 SSB Patch',
'tool.writessbpatch': 'SSB Patch Write', 'tool.writessbpatch': 'SSB Patch Write',
'global.login': 'Login', 'global.login': 'Login',

View file

@ -144,6 +144,7 @@ export default {
'menu.firmware': '固件市场', 'menu.firmware': '固件市场',
'menu.channel': '信道分享', 'menu.channel': '信道分享',
'global.use': '使用', 'global.use': '使用',
'global.download': '下载',
'tool.ssbpatch': 'LOSEHU S 版固件 SI4732 单边带补丁', 'tool.ssbpatch': 'LOSEHU S 版固件 SI4732 单边带补丁',
'tool.writessbpatch': '写入单边带补丁', 'tool.writessbpatch': '写入单边带补丁',
'global.login': '登录', 'global.login': '登录',

View file

@ -21,15 +21,35 @@
<a-typography-text> K5Web 使用视频教程BG7QJV<t-link theme="primary" href="https://www.douyin.com/video/7378314511419313458" target="_blank">https://www.douyin.com/video/7378314511419313458</t-link> </a-typography-text><br> <a-typography-text> K5Web 使用视频教程BG7QJV<t-link theme="primary" href="https://www.douyin.com/video/7378314511419313458" target="_blank">https://www.douyin.com/video/7378314511419313458</t-link> </a-typography-text><br>
<a-typography-text> K5Web 使用视频教程BG3ODZ<t-link theme="primary" href="https://www.bilibili.com/video/BV1Q4421D75x" target="_blank">https://www.bilibili.com/video/BV1Q4421D75x</t-link> </a-typography-text> <a-typography-text> K5Web 使用视频教程BG3ODZ<t-link theme="primary" href="https://www.bilibili.com/video/BV1Q4421D75x" target="_blank">https://www.bilibili.com/video/BV1Q4421D75x</t-link> </a-typography-text>
</div> </div>
<div style="margin-top: 50px;">&nbsp;</div>
<div> <div>
<a-typography-title :heading="5">腾讯公益</a-typography-title> <a-collapse :default-active-key="[1]" accordion>
<a-collapse-item header="广告区" :key="1">
<a-card hoverable :style="{ width: '600px' }">
<template #cover>
<div
>
<img
:style="{ width: '100%' }"
alt="ads"
src="/jjgg.jpg"
/>
</div>
</template>
<a-card-meta title="BG4IWE 投放">
</a-card-meta>
</a-card>
</a-collapse-item>
<a-collapse-item header="腾讯公益" :key="2">
<img class="tencent" style="margin-bottom: 10px;" width="200px" src="/gy.png" /> <img class="tencent" style="margin-bottom: 10px;" width="200px" src="/gy.png" />
</div> </a-collapse-item>
<div> <a-collapse-item header="饿饿饭饭" :key="3">
<a-typography-title :heading="5">广告区</a-typography-title> <img width="300" src="/mm_facetoface_collect_qrcode_1714392837792.png" >
<div style="border: 1px dashed; display: inline-block;"> <img width="300" src="/1722745910257.jpg" >
<img style="margin: 20px; " class="tencent" height="200px" src="/jjgg.jpg" /> <br><br>
</div> TRON / TRXTPaSnHJ2cRCQjjv7TyAFJDamb3mZSSz1At
</a-collapse-item>
</a-collapse>
</div> </div>
<br> <br>
<br> <br>
@ -109,6 +129,12 @@
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
:deep(.arco-collapse-item-content-expend){
background-color: var(--color-bg-2);
}
:deep(.arco-collapse-item-content-box){
background-color: var(--color-bg-2);
}
.banner { .banner {
width: 100%; width: 100%;
padding: 20px 20px 0 20px; padding: 20px 20px 0 20px;

View file

@ -29,6 +29,7 @@
</a-list-item-meta> </a-list-item-meta>
<template #actions> <template #actions>
<a-link @click="onStar(item.id)">👍</a-link> <a-link @click="onStar(item.id)">👍</a-link>
<a-link @click="iDownload('https://k6.vicicode.cn/wsapi/download?id=' + item.id, item.title)">{{$t('global.download')}}</a-link>
<a-link @click="useFirmware('https://k6.vicicode.cn/wsapi/download?id=' + item.id)">{{$t('global.use')}}</a-link> <a-link @click="useFirmware('https://k6.vicicode.cn/wsapi/download?id=' + item.id)">{{$t('global.use')}}</a-link>
</template> </template>
</a-list-item> </a-list-item>
@ -210,6 +211,18 @@
}); });
} }
const iDownload = (url: any, name: any) => {
fetch(url).then(e=>e.blob()).then(blob=>{
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = name + '.xlsx';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
})
}
</script> </script>
<script lang="ts"> <script lang="ts">

View file

@ -29,6 +29,7 @@
</a-list-item-meta> </a-list-item-meta>
<template #actions> <template #actions>
<a-link @click="onStar(item.id)">👍</a-link> <a-link @click="onStar(item.id)">👍</a-link>
<a-link @click="iDownload('https://k6.vicicode.cn/wsapi/download?id=' + item.id, item.title)">{{$t('global.download')}}</a-link>
<a-link @click="useFirmware('https://k6.vicicode.cn/wsapi/download?id=' + item.id + '&n=/' + item.title)">{{$t('global.use')}}</a-link> <a-link @click="useFirmware('https://k6.vicicode.cn/wsapi/download?id=' + item.id + '&n=/' + item.title)">{{$t('global.use')}}</a-link>
</template> </template>
</a-list-item> </a-list-item>
@ -210,6 +211,18 @@
}); });
} }
const iDownload = (url: any, name: any) => {
fetch(url).then(e=>e.blob()).then(blob=>{
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = name;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
})
}
</script> </script>
<script lang="ts"> <script lang="ts">

View file

@ -10,7 +10,10 @@
<a-radio v-for="subItem in state.disMatrix[item]" :value="subItem[0]" <a-radio v-for="subItem in state.disMatrix[item]" :value="subItem[0]"
:disabled="subItem[1]">{{ state.disName[item].get(subItem[0]) }}</a-radio> :disabled="subItem[1]">{{ state.disName[item].get(subItem[0]) }}</a-radio>
</a-radio-group> </a-radio-group>
<a-button type="primary" @click="useFirmware">{{ $t('diy.generate') }}</a-button> <div>
<a-button type="primary" @click="useFirmware">{{ $t('diy.generate') }}</a-button>&nbsp;&nbsp;
<a-link @click="iDownload">{{$t('global.download')}}</a-link>
</div>
</t-space> </t-space>
</a-card> </a-card>
</a-col> </a-col>
@ -36,6 +39,18 @@ const useFirmware = () => {
}); });
} }
const iDownload = () => {
fetch('https://k6.vicicode.cn/diyapi/LOSEHU' + state.flag.join('') + '.bin?v=' + (new Date()).getTime()).then(e=>e.blob()).then(blob=>{
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = "LOSEHU-CUSTOM-" + state.flag.join('') + ".bin";
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
})
}
const state: { const state: {
versions: any, versions: any,
flag: any, flag: any,

View file

@ -5655,7 +5655,7 @@ number-precision@^1.5.0:
resolved "https://registry.npmjs.org/number-precision/-/number-precision-1.6.0.tgz" resolved "https://registry.npmjs.org/number-precision/-/number-precision-1.6.0.tgz"
integrity sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ== integrity sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ==
object-assign@^4.0.1, object-assign@^4.1.0: object-assign@>=4.0.1, object-assign@^4.0.1, object-assign@^4.1.0:
version "4.1.1" version "4.1.1"
resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz"
integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
@ -5993,6 +5993,11 @@ picocolors@^1.0.0:
resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz" resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz"
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
picocolors@^1.0.1:
version "1.0.1"
resolved "https://repo.vicicode.com/repository/npm-proxy/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1"
integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1:
version "2.3.1" version "2.3.1"
resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz"
@ -6082,11 +6087,28 @@ postcss-html@^1.5.0:
postcss "^8.4.0" postcss "^8.4.0"
postcss-safe-parser "^6.0.0" postcss-safe-parser "^6.0.0"
postcss-px-to-viewport@^1.1.1:
version "1.1.1"
resolved "https://repo.vicicode.com/repository/npm-proxy/postcss-px-to-viewport/-/postcss-px-to-viewport-1.1.1.tgz#a25ca410b553c9892cc8b525cc710da47bf1aa55"
integrity sha512-2x9oGnBms+e0cYtBJOZdlwrFg/mLR4P1g2IFu7jYKvnqnH/HLhoKyareW2Q/x4sg0BgklHlP1qeWo2oCyPm8FQ==
dependencies:
object-assign ">=4.0.1"
postcss ">=5.0.2"
postcss-safe-parser@^6.0.0: postcss-safe-parser@^6.0.0:
version "6.0.0" version "6.0.0"
resolved "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz" resolved "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz"
integrity sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ== integrity sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==
postcss@>=5.0.2:
version "8.4.40"
resolved "https://repo.vicicode.com/repository/npm-proxy/postcss/-/postcss-8.4.40.tgz#eb81f2a4dd7668ed869a6db25999e02e9ad909d8"
integrity sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q==
dependencies:
nanoid "^3.3.7"
picocolors "^1.0.1"
source-map-js "^1.2.0"
postcss@^8.4.0, postcss@^8.4.18, postcss@^8.4.35: postcss@^8.4.0, postcss@^8.4.18, postcss@^8.4.35:
version "8.4.38" version "8.4.38"
resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz" resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz"