Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.3.0 #25

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

UpTab adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [V1.3.0] — Unreleased

### ✨ Added

-

### 🐛 Fixed

-

### 🧹 Removed

-

### ♻️ Changed

-

## [V1.2.2] — 2024-09-05

### ♻️ Changed
Expand Down Expand Up @@ -93,6 +111,7 @@ UpTab adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Added Bookmarks: allowing you to easily view, open and delete your browser bookmarks
- Added `CTRL+U` shortkey to open popup

[V1.3.0]: https://github.com/AJGeel/uptab/compare/v1.3.0...v1.2.2
[V1.2.1]: https://github.com/AJGeel/uptab/compare/v1.2.2...v1.2.1
[V1.2.1]: https://github.com/AJGeel/uptab/compare/v1.2.1...v1.2.0
[V1.2.0]: https://github.com/AJGeel/uptab/compare/v1.2.0...v1.1.0
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "uptab",
"displayName": "UpTab",
"version": "1.2.2",
"version": "1.3.0",
"description": "What's UpTab?",
"author": "Arthur Geel <[email protected]>",
"scripts": {
Expand Down Expand Up @@ -32,7 +32,6 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.50.1",
"react-markdown": "^9.0.1",
"tailwind-merge": "^2.4.0",
"tailwindcss-animate": "^1.0.7",
"uuid": "^10.0.0",
Expand Down
12 changes: 7 additions & 5 deletions src/components/UpdateNotification/UpdateNotification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ const UpdateNotification = () => {
}

return (
<button
<a
href="https://uptab.vercel.app/changelog"
target="_blank"
rel="noopener noreferrer"
className="mb-8 flex w-full items-center gap-2 rounded bg-sky-500/10 p-2 pl-4 duration-150 hover:bg-sky-500/20"
onClick={(event) => {
event.preventDefault();
onClick={() => {
onOpen();
}}
rel="noreferrer noopener"
>
<SparklesIcon className="size-4 shrink-0 opacity-50" />
<p className="grow text-left">
Expand All @@ -27,14 +28,15 @@ const UpdateNotification = () => {
<button
className="flex items-center gap-1 rounded-sm px-3 py-2 duration-150 hover:bg-sky-800/10 hover:text-sky-800"
onClick={(event) => {
event.preventDefault();
event.stopPropagation();
onHide();
}}
>
{RNG >= 0.95 ? "Shut UpTab" : "Close"}
<XMarkIcon className="size-4" />
</button>
</button>
</a>
);
};

Expand Down
1 change: 0 additions & 1 deletion src/hooks/useUpdateNotification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export const useUpdateNotification = () => {
const [isVisible, setIsVisible] = useState(false);

const onOpen = () => {
window.open("/src/pages/changelog/index.html");
setIsVisible(false);
setUpdateNotification(false);
};
Expand Down
56 changes: 0 additions & 56 deletions src/pages/changelog/Changelog.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/pages/changelog/index.css

This file was deleted.

12 changes: 0 additions & 12 deletions src/pages/changelog/index.html

This file was deleted.

28 changes: 0 additions & 28 deletions src/pages/changelog/index.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions utils/plugins/include-changelog.ts

This file was deleted.

9 changes: 6 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";

import { buildTargets } from "./buildTarget";
import includeChangelog from "./utils/plugins/include-changelog";
import makeManifest from "./utils/plugins/make-manifest";

const root = resolve(__dirname, "src");
Expand Down Expand Up @@ -32,15 +31,19 @@ export default defineConfig({
),
newtab: resolve(pagesDir, "newtab", "index.html"),
popup: resolve(pagesDir, "popup", "index.html"),
changelog: resolve(pagesDir, "changelog", "index.html"),
},
output: {
entryFileNames: (chunk) => `src/pages/${chunk.name}/index.js`,
},
onwarn(warning, defaultHandler) {
return warning.code === "SOURCEMAP_ERROR"
? null
: defaultHandler(warning);
},
},
sourcemap: process.env.__DEV__ === "true",
},
plugins: [react(), makeManifest(), includeChangelog()],
plugins: [react(), makeManifest()],
publicDir,
resolve: {
alias: {
Expand Down