Skip to content

Commit

Permalink
v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rarous committed Feb 6, 2025
1 parent 5b377fb commit 3118799
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 33 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Extension

## 2.2.0
* The detail API call moved from content script to service worker
* Removed custom CSP

## 2.1.13
* Fix Alza voucher price parsing
* Fix Tetadrogerie price parsing for multiple pieces
Expand Down
40 changes: 20 additions & 20 deletions apple/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@
buildSettings = {
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = 8P5697C5H7;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (ShareExtension)/Info.plist";
Expand All @@ -627,7 +627,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 2.1.13;
MARKETING_VERSION = 2.2.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.topmonks.hlidac-shopu.ShareExtension";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -644,7 +644,7 @@
buildSettings = {
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = 8P5697C5H7;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (ShareExtension)/Info.plist";
Expand All @@ -656,7 +656,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 2.1.13;
MARKETING_VERSION = 2.2.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.topmonks.hlidac-shopu.ShareExtension";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -783,7 +783,7 @@
buildSettings = {
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = 8P5697C5H7;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (Extension)/Info.plist";
Expand All @@ -795,7 +795,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 2.1.13;
MARKETING_VERSION = 2.2.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -816,7 +816,7 @@
buildSettings = {
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = 8P5697C5H7;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (Extension)/Info.plist";
Expand All @@ -828,7 +828,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 2.1.13;
MARKETING_VERSION = 2.2.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -853,7 +853,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = 8P5697C5H7;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (App)/Info.plist";
Expand All @@ -868,7 +868,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.1.13;
MARKETING_VERSION = 2.2.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -893,7 +893,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = 8P5697C5H7;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "iOS (App)/Info.plist";
Expand All @@ -908,7 +908,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.1.13;
MARKETING_VERSION = 2.2.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -932,7 +932,7 @@
CODE_SIGN_ENTITLEMENTS = "macOS (Extension)/hlidac shopu.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = 8P5697C5H7;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -945,7 +945,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 2.1.13;
MARKETING_VERSION = 2.2.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -966,7 +966,7 @@
CODE_SIGN_ENTITLEMENTS = "macOS (Extension)/hlidac shopu.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = 8P5697C5H7;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -979,7 +979,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 2.1.13;
MARKETING_VERSION = 2.2.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -1003,7 +1003,7 @@
CODE_SIGN_ENTITLEMENTS = "macOS (App)/hlidac shopu.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = 8P5697C5H7;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -1017,7 +1017,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 2.1.13;
MARKETING_VERSION = 2.2.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand All @@ -1043,7 +1043,7 @@
CODE_SIGN_ENTITLEMENTS = "macOS (App)/hlidac shopu.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 22;
CURRENT_PROJECT_VERSION = 23;
DEVELOPMENT_TEAM = 8P5697C5H7;
ENABLE_HARDENED_RUNTIME = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand All @@ -1057,7 +1057,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 2.1.13;
MARKETING_VERSION = 2.2.0;
OTHER_LDFLAGS = (
"-framework",
SafariServices,
Expand Down
14 changes: 9 additions & 5 deletions extension/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Extension

Extension shows historical prices for biggest czech e-commerce websites.
Extension shows historic prices for biggest czech e-commerce websites on product details page.

## Shop

Object with getInfo and insertChartElement methods.
Object with `getInfo` and `insertChartElement` methods.

To create new shop create new shop with those two methods:
To create a new shop, create a new `Shop` class with those two methods:

`scrape` method selects itemId, image, title, original and current price of the product from the page.
Returns of object with .

`inject` method inserts widget element to the page. Usually it inserts whole chart wrapper with border and info text.
First param is `renderMarkup` function that returns html element, you can add styles to the root element of the wrapper
`inject` method inserts a widget element to the page. Usually it inserts a whole chart wrapper with border and info text.
First param is `renderMarkup` function that returns HTML element, you can add styles to the root element of the wrapper
by passing string to it.

### Create new file `alza.mjs` in folder `shops`:
Expand Down Expand Up @@ -75,3 +75,7 @@ and run command
```
yarn build:extension
```


## Development

14 changes: 10 additions & 4 deletions extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"default_locale": "cs",
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "2.1.13",
"version": "2.2.0",
"author": "TopMonks s.r.o., Apify Technologies s.r.o., Keboola Czech s.r.o. & contributors",
"homepage_url": "https://www.hlidacshopu.cz/",
"background": {
"scripts": ["sw.js"],
"scripts": [
"sw.js"
],
"service_worker": "sw.js"
},
"icons": {
Expand Down Expand Up @@ -41,7 +43,9 @@
}
]
},
"host_permissions": ["https://api.hlidacshopu.cz/*"],
"host_permissions": [
"https://api.hlidacshopu.cz/*"
],
"content_scripts": [
{
"matches": [
Expand Down Expand Up @@ -93,7 +97,9 @@
"https://www.tetadrogerie.cz/*",
"https://www.tsbohemia.cz/*"
],
"js": ["content.js"],
"js": [
"content.js"
],
"run_at": "document_idle"
}
],
Expand Down
2 changes: 1 addition & 1 deletion extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hlidac-shopu/extension",
"version": "2.1.13",
"version": "2.2.0",
"description": "Extension",
"dependencies": {
"@hlidac-shopu/lib": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion extension/popup/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h1>
/>
</svg>
</a>
<small>2.1.13</small>
<small>2.2.0</small>
</h1>
<div class="c">
<p>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hlidac-shopu",
"version": "2.1.13",
"version": "2.2.0",
"private": true,
"description": "Rozšíření zobrazuje historická data pro největší české eshopy.",
"author": "TopMonks s.r.o., Apify Technologies s.r.o., Keboola Czech s.r.o. & contributors",
Expand Down
2 changes: 1 addition & 1 deletion www.hlidacshopu.cz/src/static/webapp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.1.13",
"version": "2.2.0",
"name": "Hlídač Shopů",
"description": "Ověřte si, jestli v nejoblíbenějších českých e-shopech nakupujete opravdu se slevou.",
"type": "web",
Expand Down

0 comments on commit 3118799

Please sign in to comment.