liyupi / code-nav Goto Github PK
View Code? Open in Web Editor NEW💎 专业的编程导航,帮你找到优质的编程学习资源!公众号【编程导航】 ☁️ 前后端均开源,励志成为最好的全栈云开发项目!
Home Page: https://www.code-nav.cn
License: MIT License
💎 专业的编程导航,帮你找到优质的编程学习资源!公众号【编程导航】 ☁️ 前后端均开源,励志成为最好的全栈云开发项目!
Home Page: https://www.code-nav.cn
License: MIT License
都指向的是“@primary-color-hover is undefined”
目前我的做法是把“@primary-color-hover”改为了“@primary-color”
然后再npm run start就可以启动项目了
https://www.code-nav.cn/wish
列表点击进去空白!
百度的图标有黑底
主页的透明主题和白底太少了,应该再加一个亚克力的
你好站长,我也想做个网站,结构和“编程导航”类似,但行业不同,是否可以将本项目的代码直接部署到我的网站,是否侵权?
编程导航 个人中心部分 点击编辑 弹出的修改信息对话框 输入邮箱 在没有输入完的时候就做了邮箱验证 我觉得这样是不符合交互预期的。
期望在用户脱离光标的时候在做验证
const cacheName = "ashes";
const cacheFiles = ["index.html", "webtorrent.min.js", "test.css", "register.js"];
self.addEventListener("install", (e) => {
console.log("[Service Worker] Install");
e.waitUntil(
(async () => {
const keys = await caches.keys();
console.log(keys);
if (keys.includes(cacheName)) {
return;
}
const cache = await caches.open(cacheName);
console.log("[Service Worker] Caching all: app shell and content");
await cache.addAll(cacheFiles);
})()
);
热点数据缓存:
window.addEventListener("fetch", async (data)=>{
//cache name 定期更新,用来进行首页数据更新
const cache = await caches.open(cacheName);
await cache.addAll(cacheFiles);
})
核心数据接口使用webtorrent生成磁链
const sourceFiles = new blob(JSON.stringify(dataObj))
export const createTorrent = async (sourceFiles) => {
const isMultiFiles = sourceFiles.length > 1;
const listItem = await new Promise<CustomStruct>((res, rej) => {
client.seed(
sourceFiles,
{
//辅助打洞服务
announce: ["udp://ip:port", "ws://ip:port", "http://ip:port", "http://ip:port/announce"],
},
(torrent) => {
const { files, magnetURI, name, infoHash, torrentFileBlobURL } = torrent;
const type = isMultiFiles ? "hybrid" : sourceFiles[0].type;
const names = isMultiFiles ? files.map(({ name }) => name).join(" | ") : name;
res({
name: names,
magnetURI,
id: infoHash,
fileUrl: torrentFileBlobURL,
lastModified: Date.now(),
type,
});
}
);
client.on("error", (err) => rej(err));
});
return listItem;
};
协议层/server配置
udp/tcp协议访问时,发送磁链,如磁链未建立新的peer,则判定为无意义访问,加入封禁列表
Q&A
为什么使用磁链:使用网站的人越多,数据访问的速度越快
为什么需要辅助打洞:解决多层NAT导致的无法访问/丢包问题
如何迁移现有项目:
使用nginx转发现有服务,让现有用户逐步成为P2P的节点,提供基础访问速度
页面端使用现有的npm包,可以让项目自带service worker
公众号的一键登录怎么实现的?
个人公众号可以实现么?
利用 npm run build
时,一直卡在 95%
提示为 OptimizeCssAssetsWebpackPlugin
能否提供修改功能并且修改后内容需要重新审核,应用场景如更换域名更换资源等,无法及时更新,或错误操作导致内容无法正常处理
如果数据量十万左右搜索性能怎么样?
优化建议:资源大全下,点击标签切换时,应该设置一个多个筛选条件还是单个筛选条件。默认应该为单个筛选条件,都比较喜欢点一下就换一个筛选标签,而不是默认多个筛选条件叠加
我希望一进去默认就是谷歌搜索,而不是需要点一下才变成谷歌
如何设置某个页面可以不用登陆访问呢
我添加 authority:{['admin', 'user', 'guest']}
没有效果
在選擇興趣時
最多只可以選15个
但保存時提示操作失敗
最後將興趣減少為10个才可以
搜索关键字中带有“#”时点击搜索无反应
小程序有开源吗?首页的tab要怎么处理才不会点击的时候页面跳动呢?
电脑端登录还需要拿手机扫码 , 和电脑版微信一样 , 我感觉很不好用
个人主页 下面的推荐链接 一闪而过 无法显示,不带个人参数(k=2VVNQPukrNUV)可以打开导航
https://home.code-nav.cn/ 有事会跳转到 合成大西瓜改图工具 1.0 - by 鱼皮 这个页面
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.