Giter VIP home page Giter VIP logo

pnavi's Introduction

pnavi

做了一个自用的导航页,技术栈是 Vite + React + TypeScript + Less

搜索窗口自己摸索了一下,工具箱照搬 Google 的 CSS

整理一下开源出来,算是给前端之旅划上一个句号

特性

  1. 自定义程度高,可以自行 增删改 工具箱和搜索窗口的项
  2. 隐私安全,数据100%本地存储,导入导出方便
  3. 100%无广告,可以自己部署
  4. 可配置初始的默认项
  5. 按照 LRU 排序

示例

示例网站

截图

自定义程度高?有多高? (以QQ邮箱的图标为例)

自定义background的css属性进行裁剪

url("https://rescdn.qqmail.com/zh_CN/htmledition/images/logo/logo_13_01e9c5d.gif") no-repeat scroll -12px

image

只填logo链接的默认效果

image

自定义效果

image

静态部署 (以 Github Pages 为例)

  1. 安装依赖
  2. 构建静态文件
git clone https://github.com/sora-blue/pnavi
cd pnavi
npm i && npm run build
  1. 新建Github公开库,库名为你的Github用户名.github.io详见
  2. dist目录下的文件都上传到这个库里

动态部署 (以 ubuntu 22.04 为例,开发环境热更新,加载较慢,默认端口 80)

  1. 购买服务器,建议最低配置1核2G
  2. 安装 nodejs npm
curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
sudo npm config set registry https://registry.npm.taobao.org
  1. 运行
git clone https://github.com/sora-blue/pnavi
cd pnavi
npm i && npm run devhost

pnavi's People

Contributors

sora-blue avatar

Stargazers

Roy avatar pray avatar 7ee avatar  avatar Goji avatar boxker avatar

Watchers

 avatar

pnavi's Issues

Breaking change introduced at commit 67d88c1 | 提交 67d88c1 引入了破坏性更改

  • TookitItemProps Param iconPath was changed to iconUrl.
  • 工具箱配置 字段 iconPath 改名为 iconUrl

If you are deploying it on your own host, export before pulling changes,
replace at text editor, import back after changes, and it turns to be fine.

如果你部署在自己的机器上,导出工具箱配置到文件,"查找和替换"改掉,
然后重新导入回来就行了

Reason: obsessive compulsive disorder
引入原因:强迫症

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.