Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
96e8a6c
fix: improve monitor component UI and interaction
CC11001100 May 18, 2025
2d5af0d
ui: 调整导航栏布局,移除左侧logo并将菜单项左对齐
CC11001100 May 18, 2025
6a4e78b
fix: 修复图片遮挡文字的布局问题,调整层级和响应式布局
CC11001100 May 18, 2025
d5e9287
fix: 恢复显示器组件样式,修复显示问题
CC11001100 May 18, 2025
8819ed5
feat: 添加社区交流群组件,展示QR码和社区信息
CC11001100 May 18, 2025
329db8f
refactor: 优化导航栏布局和样式,改进移动端适配
CC11001100 May 18, 2025
15b540d
refactor: 优化支持组件布局和样式,提升用户体验
CC11001100 May 18, 2025
a81e2c2
feat: 在应用程序中集成社区交流群组件
CC11001100 May 18, 2025
d2659b5
deps: 添加react-medium-image-zoom依赖用于图片预览功能
CC11001100 May 18, 2025
460de20
refactor: 优化社区交流群组件,使用数据驱动的方式渲染二维码
CC11001100 May 18, 2025
a86642c
style: 优化社区交流群组件样式,改进响应式布局和视觉效果
CC11001100 May 18, 2025
a0a124e
feat(installation): 优化安装指南UI,拆分命令步骤以增强可读性
CC11001100 May 18, 2025
18a1bed
refactor(support): 移除未使用的Star History组件,优化Support页面结构
CC11001100 May 18, 2025
45409b0
style(community): 优化社区组件卡片布局,增加垂直间距
CC11001100 May 18, 2025
e675fb4
style(layout): 优化页面整体布局及导航样式
CC11001100 May 18, 2025
544698c
feat(router): 添加GitHub Pages兼容的路由系统
CC11001100 May 18, 2025
455b1b7
fix(scroll): 修复页面滚动时的闪烁问题
CC11001100 May 18, 2025
3ac31a8
fix(layout): 修复导航栏高度异常问题,调整页面布局
CC11001100 May 18, 2025
df84717
fix(layout): 彻底修复导航栏高度问题,固定导航栏高度
CC11001100 May 18, 2025
103af64
fix(layout): 增加导航栏与内容区域之间的间距
CC11001100 May 18, 2025
b7864d2
style(layout): 优化导航栏与内容间距,增加顶部空白区域
CC11001100 May 18, 2025
9b6f393
fix(header): 优化导航栏菜单与GitHub徽标对齐
CC11001100 May 18, 2025
8ad4b39
feat(i18n): 添加网站国际化支持
CC11001100 May 18, 2025
f06bbca
ci: 添加GitHub Pages自动部署工作流配置
CC11001100 May 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main # 当推送到main分支时触发
# 允许手动触发工作流
workflow_dispatch:

# 权限设置
permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Setup Node.js 🔧
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: './script-hook-website/package-lock.json'

- name: Install Dependencies 📦
run: |
cd script-hook-website
npm ci

- name: Build 🏗️
run: |
cd script-hook-website
npm run build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: script-hook-website/dist # 要部署的文件夹
branch: gh-pages # 部署到的分支
clean: true # 在部署前清理目标分支
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ dist
# TernJS port file
.tern-port

# VS Code settings
.vscode/

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# Change Log

# v0.0.1(2021年-01-02)
# v0.1(2021年-01-02)
- 在逆向时有初步的心得,并将其整理为一个简单的脚本。

# v0.0.2(不记得了)
# v0.2(不记得了)
- 具体啥功能不记得了,应该是进行了一些优化

# v0.0.3(2025-01-09)
# v0.3(2025-01-09)
- 完全重做,增加了界面、控制台的支持,对Hook功能也进行了增强。

# v0.4
- 重构为使用TypeScript






151 changes: 151 additions & 0 deletions script-hook-website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
# JS Script Hook Website

<div align="right">
<a href="README.md">English</a> | <a href="README.md">中文</a>
</div>

## About

This is the official website for the JS Script Hook project, featuring a React-based SPA that showcases the library's features, provides installation instructions, and offers community support resources.

The website is built with React, TypeScript, and supports full internationalization with both English and Chinese languages.

## Features

- Responsive design that works on all devices
- Comprehensive internationalization (i18n) support for English and Chinese
- Optimized SEO metadata with language-specific content
- Interactive UI components to demonstrate the library's capabilities
- Social sharing functionality

## Development

### Prerequisites

- Node.js (v14.0.0 or higher)
- npm or yarn

### Installation

```bash
# Clone the repository
git clone https://github.com/JSREI/js-script-hook.git
cd js-script-hook/script-hook-website

# Install dependencies
npm install
# or
yarn install
```

### Development Server

```bash
# Start the development server
npm start
# or
yarn start
```

The website will be available at `http://localhost:8080`.

### Building for Production

```bash
# Build for production
npm run build
# or
yarn build
```

The compiled website will be available in the `dist` directory.

## Internationalization

The website supports both English and Chinese languages. The language is automatically detected based on the user's browser settings, but can also be manually selected through the language switcher in the header.

Translation files are located in:
- `src/i18n/locales/en.json` (English)
- `src/i18n/locales/zh.json` (Chinese)

## Deployment

The website is deployed to GitHub Pages automatically via GitHub Actions when changes are pushed to the main branch.

---

<div align="center">
<h1>JS Script Hook 网站</h1>
</div>

<div align="right">
<a href="README.md">English</a> | <a href="README.md">中文</a>
</div>

## 简介

这是JS Script Hook项目的官方网站,基于React的单页应用程序,展示了该库的功能特性,提供安装指南,并提供社区支持资源。

该网站使用React和TypeScript构建,支持英文和中文的完整国际化。

## 特性

- 响应式设计,适用于所有设备
- 全面支持英文和中文的国际化(i18n)
- 针对不同语言优化的SEO元数据
- 交互式UI组件,展示库的功能
- 社交媒体分享功能

## 开发

### 环境要求

- Node.js (v14.0.0或更高版本)
- npm或yarn

### 安装

```bash
# 克隆仓库
git clone https://github.com/JSREI/js-script-hook.git
cd js-script-hook/script-hook-website

# 安装依赖
npm install
# 或
yarn install
```

### 开发服务器

```bash
# 启动开发服务器
npm start
# 或
yarn start
```

网站将在`http://localhost:8080`可访问。

### 生产环境构建

```bash
# 构建生产版本
npm run build
# 或
yarn build
```

编译后的网站将在`dist`目录中可用。

## 国际化

该网站支持英文和中文两种语言。语言会根据用户的浏览器设置自动检测,也可以通过页头的语言切换器手动选择。

翻译文件位于:
- `src/i18n/locales/en.json`(英文)
- `src/i18n/locales/zh.json`(中文)

## 部署

当更改推送到主分支时,网站会通过GitHub Actions自动部署到GitHub Pages。
Loading