-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Justin3go/master
release
- Loading branch information
Showing
14 changed files
with
344 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 忽略 node_modules 目录 | ||
node_modules | ||
|
||
# 忽略 .nuxt 目录 | ||
.nuxt | ||
|
||
# 忽略日志文件 | ||
*.log | ||
|
||
# 忽略操作系统生成的文件 | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# 忽略编辑器生成的文件 | ||
.vscode | ||
.idea | ||
*.swp | ||
*.swo | ||
|
||
# 忽略 git 相关文件 | ||
.git | ||
.gitignore | ||
|
||
# 忽略测试和 CI 相关文件 | ||
tests/ | ||
.travis.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: Feature request | ||
about: 在这里描述你的需求 | ||
title: '' | ||
labels: feature request | ||
assignees: '' | ||
|
||
--- | ||
|
||
### 自检清单 | ||
|
||
> 请仔细检查下方列表,将你已经完成的动作前方`[]`填入`[x]` | ||
- [] 确认仓库中Issues中没有相似的问题 | ||
- [] 确认仓库中Discussions中也没有相似的讨论 | ||
- [] 包含截图/视频演示描述,除非你认为文字已经能表达清楚 | ||
|
||
### 需求描述 | ||
|
||
> 在这里描述你的需求 | ||
### 在线演示 | ||
|
||
> 可选,这在里详细演示你的需求,如果有在线链接、现成可参考的demo这对于笔者来说将更加清楚地理解你的需求 | ||
### 补充说明 | ||
|
||
> 没说完?在这里继续~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
name: Release | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: GoogleCloudPlatform/release-please-action@v3 | ||
id: release | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
release-type: node | ||
package-name: standard-version | ||
changelog-types: '[ | ||
{"type": "types", "section":"Types", "hidden": false}, | ||
{"type": "revert", "section":"Reverts", "hidden": false}, | ||
{"type": "feat", "section": "Features", "hidden": false}, | ||
{"type": "fix", "section": "Bug Fixes", "hidden": false}, | ||
{"type": "docs", "section":"Docs", "hidden": false}, | ||
{"type": "style", "section":"Styling", "hidden": false}, | ||
{"type": "refactor", "section":"Code Refactoring", "hidden": false}, | ||
{"type": "perf", "section":"Performance Improvements", "hidden": false}, | ||
{"type": "test", "section":"Tests", "hidden": false}, | ||
{"type": "build", "section":"Build System", "hidden": false}, | ||
{"type": "ci", "section":"CI", "hidden":false} | ||
]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 设置基础镜像 | ||
ARG NODE_VERSION=18.14.2 | ||
FROM node:${NODE_VERSION}-slim as base | ||
ARG PORT=3000 | ||
ENV NODE_ENV=production | ||
WORKDIR /src | ||
|
||
# 构建阶段 | ||
FROM base as build | ||
COPY --link package.json pnpm-lock.yaml ./ | ||
RUN npm install -g pnpm | ||
RUN pnpm install --production=false | ||
COPY --link . . | ||
RUN pnpm run build | ||
# RUN pnpm prune | ||
|
||
# 运行阶段 | ||
FROM base | ||
ENV PORT=$PORT | ||
COPY --from=build /src/.output /src/.output | ||
CMD ["node", ".output/server/index.mjs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,63 @@ | ||
<p align="center"> | ||
<a href="https://ssgo.app" target="blank"> | ||
<img src="https://ssgo.app/logobg.png" height="200px" alt="logo" style="border-radius: 20px"/> | ||
<h1 align="center"> SearchSearchGo-APP</h1> | ||
</a> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://nuxt.com/"> | ||
<img src="https://img.shields.io/badge/Nuxt3-00C58E?style=for-the-badge&logo=nuxt.js&logoColor=white" alt=""> | ||
</a> | ||
<a href="https://vuetifyjs.com/"> | ||
<img src="https://img.shields.io/badge/Vuetify-1867C0?style=for-the-badge&logo=vuetify&logoColor=white" alt=""> | ||
</a> | ||
<a href="https://www.typescriptlang.org/"> | ||
<img src="https://img.shields.io/badge/TypeScript-3178C6?style=for-the-badge&logo=typescript&logoColor=white" alt=""> | ||
</a> | ||
<a href="https://www.elastic.co/"> | ||
<img src="https://img.shields.io/badge/ElasticSearch-7-06B8D7?style=for-the-badge&logo=elasticsearch&logoColor=white" alt=""> | ||
</a> | ||
<a href="https://opensource.org/license/mit/"> | ||
<img src="https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge" alt=""> | ||
</a> | ||
</p> | ||
|
||
<p align="center"> | ||
<div align="center"> | ||
|
||
<a href="https://ssgo.app" target="blank"> | ||
<img src="https://ssgo.app/logobg.png" height="200px" alt="logo" style="border-radius: 20px"/> | ||
</a> | ||
|
||
# SearchSearchGo-APP | ||
|
||
[![Nuxt3](https://img.shields.io/badge/Nuxt3-00C58E?style=for-the-badge&logo=nuxt.js&logoColor=white)](https://nuxt.com/) | ||
[![Vuetify](https://img.shields.io/badge/Vuetify-1867C0?style=for-the-badge&logo=vuetify&logoColor=white)](https://vuetifyjs.com/) | ||
[![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?style=for-the-badge&logo=typescript&logoColor=white)](https://www.typescriptlang.org/) | ||
[![ElasticSearch7](https://img.shields.io/badge/ElasticSearch-7-06B8D7?style=for-the-badge&logo=elasticsearch&logoColor=white)](https://www.elastic.co/) | ||
[![License MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/license/mit/) | ||
|
||
|
||
一款极简体验、优雅、现代化、资源丰富、免费、无需登录的新一代阿里云盘搜索引擎,来体验找寻资源的快乐吧~ | ||
</p> | ||
|
||
<p align="center"> | ||
<a href=""> | ||
<img src="./images/PCMoblie-demo.png" alt=""> | ||
</a> | ||
</p> | ||
每周六/周末如有更新release一次,版本发布分支为`release`,欢迎大家star、watch关注最新动态。 | ||
|
||
|
||
[![PR Welcome](https://img.shields.io/badge/PR-Welcome-EA4AAA?style=for-the-badge&logo=git&logoColor=white)](https://github.com/Justin3go/SearchSearchGo/pulls) | ||
[![Request-Feature](https://img.shields.io/badge/Request-Feature-007BFF?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Justin3go/SearchSearchGo/issues/new/choose) | ||
[![Report-Bug](https://img.shields.io/badge/Report-Bug-red?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Justin3go/SearchSearchGo/issues/new/choose) | ||
|
||
![PCMoblie-demo](./images/PCMoblie-demo.png) | ||
|
||
|使用vercel部署|使用docker构建| | ||
|-|-| | ||
|[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2FJustin3go%2FSearchSearchGo&env=ES_URL,ES_INDEX,ES_AUTH_USERNAME,ES_AUTH_PASSWORD) | [![Docker-部署](https://img.shields.io/badge/Docker-部署→-2496ED?style=for-the-badge&logo=docker&logoColor=white&link=https://www.docker.com)](./docs/docker.md) | | ||
|
||
</div> | ||
|
||
|
||
## 功能特性 | ||
|
||
得益于Nuxt框架,该应用支持SSR,对SEO比较友好: | ||
`一、` **得益于Nuxt框架,该应用支持SSR,对SEO比较友好** | ||
|
||
1. 比如当用户输入搜索之后,对应的url路径也会发生变化,比如[https://ssgo.app/?page=1&query=AI](https://ssgo.app/?page=1&query=AI), | ||
2. 如果用户将该url分享到其他平台被搜索引擎抓取之后,搜索引擎得到的数据将不再是空白的搜索框,而是包含相关资源的结果页, | ||
3. 这样有可能再下一次用户在其他搜索引擎搜索对应资源的时候,有可能会直接跳转到该应用的搜索结果页,这样就可以大大提高该应用的曝光率。 | ||
|
||
## 开发事项 | ||
![SSR-demo](./images/SSR-demo.png) | ||
|
||
![SEO-demo](./images/SEO-demo.png) | ||
|
||
`二、` **该应用支持深色模式** | ||
|
||
![darkMode-demo](./images/darkMode-demo.png) | ||
|
||
`三、` **对于使用ElasticSearch7的用户,几乎是开箱即用** | ||
|
||
[![开发指南](https://img.shields.io/badge/%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97-%E2%86%92-blue?style=for-the-badge&logo=read-the-docs&logoColor=white)](./docs/devGuide.md) | ||
|
||
## 开发简介 | ||
|
||
启动项目: | ||
|
||
```shell | ||
npm i -g pnpm | ||
pnpm i | ||
pnpm dev | ||
``` | ||
|
||
|
@@ -61,26 +72,16 @@ pnpm dev | |
|
||
除此之外,如果你需要导入自己的Analytics,请修改`plugins/XXXAnalytics.ts`中的id为你自己的id | ||
|
||
[![开发指南](https://img.shields.io/badge/%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97-%E2%86%92-blue?style=for-the-badge&logo=read-the-docs&logoColor=white)](./docs/devGuide.md) | ||
|
||
**重要**: | ||
|
||
- 该仓库仅为SearchSearchGo的应用部分,无爬虫以及数据索引部分 | ||
- 如果你使用ElasticSearch-7搭建了一个搜索引擎,可以直接使用该应用进行构建 | ||
- 如果你使用的其他版本的ElasticSearch,则需安装对应版本的ElasticSearch客户端版本,并且`sever/api`部分中的相应字段可能需要修改,比如ElasticSearch-8中返回的就没有了`body`字段 | ||
|
||
|
||
## 意见反馈 | ||
|
||
如何反馈? | ||
|
||
1. 点击上方的`Issues`选项,选择`new issues`,然后根据模板如果你想要表达的内容 | ||
2. 尽量使用图片、视频等易于理解的方式进行表达 | ||
3. 为你的问题添加一个标签 | ||
4. 请耐心等待笔者的反馈... | ||
|
||
如果你想直接联系我,可以通过<a href="mailto:[email protected]?subject=请表明您的来意">点击这里邮件联系</a> | ||
|
||
## 声明 | ||
|
||
1. 本站链接为程序自动收集自互联网,链接跳转至官方网盘,网站本身不储存、复制、传播、控制编辑任何网盘文件,也不提供下载服务; | ||
2. 本站遵守相关法律法规,坚决杜绝一切违规不良信息,如您发现任何涉嫌违规的网盘信息,请立即向<a href="https://terms.alicdn.com/legal-agreement/terms/suit_bu1_dingtalk/suit_bu1_dingtalk202103181300_11832.html">网盘官方网站</a>举报; | ||
3. 本站是笔者在线作品演示网站,所有服务仅供学习交流使用,搜索引擎技术细节可以访问笔者的<a href="https://justin3go.com">个人博客</a>查找。 | ||
2. 本站遵守相关法律法规,坚决杜绝一切违规不良信息,如您发现任何涉嫌违规的网盘信息,请立即向[网盘官方网站](https://terms.alicdn.com/legal-agreement/terms/suit_bu1_dingtalk/suit_bu1_dingtalk202103181300_11832.html)举报; | ||
3. 本站是笔者在线作品演示网站,所有服务仅供学习交流使用,搜索引擎技术细节可以访问笔者的[个人博客](https://justin3go.com)查找。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.