This commit is contained in:
0x1eef 2024-09-01 17:32:30 -03:00
parent bd7257663f
commit c925c8241f
11 changed files with 11 additions and 46 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "wimi", "name": "wimi",
"version": "0.5.1", "version": "0.6.1",
"webExt": { "webExt": {
"sourceDir": "build/production" "sourceDir": "build/production"
}, },

View file

@ -1,6 +1,9 @@
# -*- mode: org -*- # -*- mode: org -*-
** vNEXT ** v0.6.1
**** Remove unneccessary translations
Remove translations not in use anymore
**** Replace UI **** Replace UI
The new UI is focused on being simple but useful The new UI is focused on being simple but useful

View file

@ -1 +1 @@
v0.5.1 v0.6.1

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,27 +1,6 @@
{ {
"ip_address": {
"message": "IP Address"
},
"isp": {
"message": "ISP"
},
"location": {
"message": "Location"
},
"tor_exit_node": {
"message": "Tor exit node"
},
"loading": { "loading": {
"message": "Loading..." "message": "Loading"
},
"clean.myip.wtf": {
"message": "clean.myip.wtf"
},
"yes": {
"message": "Yes"
},
"no": {
"message": "No"
}, },
"error": { "error": {
"message": "Error" "message": "Error"

View file

@ -1,17 +0,0 @@
.label {
padding: 4px;
}
.label-rounded {
border-radius: 5px;
}
.label-error {
background: var(--primary-red);
color: var(--primary-white);
}
.label-success {
background: var(--primary-green);
color: var(--primary-white);
}

View file

@ -3,7 +3,6 @@
<title></title> <title></title>
<link rel="stylesheet" href="/css/tail.min.css"/> <link rel="stylesheet" href="/css/tail.min.css"/>
<link rel="stylesheet" href="/css/index.css"/> <link rel="stylesheet" href="/css/index.css"/>
<link rel="stylesheet" href="/css/components/BooleanLabel.css"/>
</head> </head>
<body class="h-12 w-full"> <body class="h-12 w-full">
<div id="root"></div> <div id="root"></div>

View file

@ -1,5 +1,6 @@
import { useWebService } from "~/hooks/useWebService"; import { useWebService } from "~/hooks/useWebService";
export function App() { export function App() {
const t = chrome.i18n.getMessage;
const [response, error] = useWebService(); const [response, error] = useWebService();
if (response) { if (response) {
return ( return (
@ -15,14 +16,14 @@ export function App() {
return ( return (
<div data-testid="error" className="font-sans p-2 flex items-center w-full h-full"> <div data-testid="error" className="font-sans p-2 flex items-center w-full h-full">
<img className="w-8 h-8" src={`/images/icon.svg`} /> <img className="w-8 h-8" src={`/images/icon.svg`} />
<span className="ml-3 text-xs">Error</span> <span className="ml-3 text-xs">{t("error")}</span>
</div> </div>
); );
} else { } else {
return ( return (
<div data-testid="loading" className="font-sans p-2 flex items-center w-full h-full"> <div data-testid="loading" className="font-sans p-2 flex items-center w-full h-full">
<img className="w-8 h-8" src={`/images/icon.svg`} /> <img className="w-8 h-8" src={`/images/icon.svg`} />
<span className="ml-3 text-xs">Loading</span> <span className="ml-3 text-xs">{t("loading")}</span>
</div> </div>
); );
} }

View file

@ -1,7 +1,7 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "wimi", "name": "wimi",
"version": "0.5.1", "version": "0.6.1",
"description": "Your public IP address from clean.myip.wtf to your browser", "description": "Your public IP address from clean.myip.wtf to your browser",
"action": { "action": {
"default_popup": "/html/browseraction.html" "default_popup": "/html/browseraction.html"