Skip to content

Commit

Permalink
增加支持页面
Browse files Browse the repository at this point in the history
  • Loading branch information
027xiguapi committed Aug 26, 2024
1 parent f0ab699 commit 48993c3
Show file tree
Hide file tree
Showing 16 changed files with 104 additions and 20 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ https://github.com/027xiguapi/code-box
- [Edge网上应用商店](https://microsoftedge.microsoft.com/addons/Microsoft-Edge-Extensions-Home?hl=zh-CN)
2. 搜索:`codebox`

![1723513894421.jpg](https://raw.githubusercontent.com/027xiguapi/code-box/main/public/1723513894421.jpg)
![img](https://raw.githubusercontent.com/027xiguapi/code-box/main/public/img.png)

![1723513894421.jpg](https://raw.githubusercontent.com/027xiguapi/code-box/main/public/webstore/1723513894421.jpg)
![img](https://raw.githubusercontent.com/027xiguapi/code-box/main/public/webstore/img.png)
![1724640161752](https://raw.githubusercontent.com/027xiguapi/code-box/main/public/webstore/1724640161752.jpg)

### 安装方式二:直接安装

Expand Down
2 changes: 1 addition & 1 deletion options/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default function IndexOptions() {
<div>
<a
className="btn"
href="https://github.com/027xiguapi/code-box"
href="/tabs/feed.html"
target="_blank"
rel="noreferrer">
{chrome.i18n.getMessage("support")}👍
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
"@types/node": "20.11.5",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
"postcss": "^8.2.1",
"postcss-modules": "^4.3.0",
"prettier": "3.2.4",
"sass": "^1.77.8",
"sharp": "^0.33.4",
"typescript": "5.3.3"
},
Expand Down
2 changes: 1 addition & 1 deletion popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function IndexPopup() {
<div>
<a
className="btn"
href="https://github.com/027xiguapi/code-box"
href="/tabs/feed.html"
target="_blank"
rel="noreferrer">
{chrome.i18n.getMessage("support")}👍
Expand Down
File renamed without changes
Binary file added public/webstore/1724640034462.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/webstore/1724640161752.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added public/wx/qrcode_wx.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/wx/wx_logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions tabs/feed.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>codexbox-支持</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body></body>
</html>
17 changes: 17 additions & 0 deletions tabs/feed.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.feed {
display: flex;
flex-direction: column;
padding: 16px;
:global {
.item {
text-align: center;
.item-img {
width: 80%;
}
.desc {
font-size: 16px;
display: block;
}
}
}
}
53 changes: 53 additions & 0 deletions tabs/feed.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import chromeUrl from "raw:~/public/webstore/1723513894421.jpg"
import githubUrl from "raw:~/public/webstore/1724640034462.jpg"
import edgeUrl from "raw:~/public/webstore/1724640161752.jpg"
import firefoxUrl from "raw:~/public/webstore/img.png"
import qrcodeUrl from "raw:~/public/wx/qrcode_wx.jpg"

import styles from "./feed.module.scss"

export default function FeedPage() {
return (
<div className={styles.feed}>
<div className="item">
<h1>微信公众号</h1>
<img src={qrcodeUrl} alt="微信公众号" />
</div>
<div className="item">
<h1>github</h1>
<a
className="desc"
href="https://github.com/027xiguapi/code-box"
target="_blank">
<div className="desc">
网站(https://github.com/027xiguapi/code-box)
</div>
<img src={githubUrl} alt="github" />
</a>
</div>
<div className="item">
<h1>应用商店</h1>
<a
href="https://chrome.google.com/webstore/detail/acnnhjllgegbndgknlliobjlekgilbdf"
target="_blank">
<div className="desc">Chrome</div>
<img className="item-img" src={chromeUrl} alt="Chrome" />
</a>
<a
className="desc"
href="https://addons.mozilla.org/zh-CN/firefox/addon/code-box/"
target="_blank">
<div className="desc">Firefox</div>
<img className="item-img" src={firefoxUrl} alt="Firefox" />
</a>
<a
className="desc"
href="https://microsoftedge.microsoft.com/addons/detail/code-box/cfpdbfmncaampihkmejogihjkenkonbn"
target="_blank">
<div className="desc">Edge</div>
<img className="item-img" src={edgeUrl} alt="Edge" />
</a>
</div>
</div>
)
}
7 changes: 0 additions & 7 deletions tabs/history.css

This file was deleted.

14 changes: 14 additions & 0 deletions tabs/history.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.history {
display: flex;
flex-direction: column;
padding: 16px;
:global {
.content {
width: 1000px;
margin: 0 auto;
.keyword-lighten {
background-color: gold;
}
}
}
}
11 changes: 3 additions & 8 deletions tabs/history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import {
import dayjs from "dayjs"
import React, { useEffect, useState } from "react"

import "./history.css"

import { useStorage } from "@plasmohq/storage/hook"

import { ThemeProvider } from "~theme"

import styles from "./history.module.scss"

const { Content } = Layout

interface DataType {
Expand Down Expand Up @@ -185,12 +185,7 @@ export default function HistoryPage() {

return (
<ThemeProvider>
<div
style={{
display: "flex",
flexDirection: "column",
padding: 16
}}>
<div className={styles.history}>
<h2>历史列表</h2>
{/*<div>*/}
{/* <a key="list-delete-all" onClick={handleDeleteAll}>*/}
Expand Down

0 comments on commit 48993c3

Please sign in to comment.