Skip to content

Commit

Permalink
Merge pull request #55 from ltoinel/releases/2.4.0
Browse files Browse the repository at this point in the history
Update the project with new dependencies and
  • Loading branch information
ltoinel authored Feb 4, 2024
2 parents 468a2d1 + 300c7a0 commit dbd4513
Show file tree
Hide file tree
Showing 9 changed files with 276 additions and 265 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules/
package-lock.json
dist/
config/development.yml
config/production.yml

26 changes: 26 additions & 0 deletions config/sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
Amazon:
accessKey: <YOUR ACCESS KEY>
secretKey: <YOUR SECRET KEY>
host: webservices.amazon.fr
region: eu-west-1
partnerTag: <YOUR PARTNER TAG>
partnerType: Associates
marketplace: www.amazon.fr
condition: New

Server:
port: 8080
debug: true
path: /amazon
cors: false
projectDir: <PATH WHERE THE PROJECT IS INSTALLED>
httpCache: 3600

Redis:
enabled: false
host: localhost
port: 6379
password:
username:
expire: 3600
41 changes: 18 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,40 @@
{
"name": "amazon-modern-widgets",
"version": "2.3.0",
"version": "2.4.0",
"description": "Amazon Modern Widgets for Amazon affiliate websites based on Amazon PAAPI v5",
"license": "MIT",
"author": "Ludovic Toinel",
"main": "dist/src/main.js",
"main": "dist/main.js",
"dependencies": {
"@josecfreitas/paapi5-nodejs-sdk": "^1.1.0",
"config": "^3.3.9",
"config": "^3.3.11",
"cors": "^2.8.5",
"crypto-js": "^4.1.1",
"crypto-js": "^4.2.0",
"express": "^4.18.2",
"express-cache-controller": "^1.1.0",
"ioredis": "^5.3.2",
"js-yaml": "^4.1.0",
"redis": "^4.6.5",
"typescript-logging": "^1.0.1"
"typescript-logging": "^2.1.0",
"typescript-logging-log4ts-style": "^2.1.0"
},
"devDependencies": {
"@types/config": "^3.3.0",
"@types/cors": "^2.8.12",
"@types/express": "^4.17.14",
"@types/jest": "^29.5.0",
"@types/node": "^14.18.31",
"expect.js": "^0.3.1",
"jest": "^29.5.0",
"mocha": "^10.0.0",
"release-it": "^15.5.0",
"sinon": "^9.2.4",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"tslint": "^6.1.3",
"typescript": "^4.8.4"

"@types/config": "^3.3.3",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/ioredis": "^5.0.0",
"@types/node": "^20.11.16",
"eslint": "^8.56.0",
"mocha": "^10.2.0",
"release-it": "^17.0.3",
"typescript": "^5.3.3"
},
"scripts": {
"prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
"build": "tsc",
"prestart": "npm run build",
"prestart:dev": "npm run build",
"start:dev": "set NODE_ENV=development&&node .",
"start": "node .",
"test": "jest",
"test": "echo \"Error: no test specified\" && exit 1",
"release": "release-it"
},
"repository": {
Expand Down
7 changes: 3 additions & 4 deletions resources/html/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
.card {
max-width: 1000px;
background-color: #333;
border: 1px solid orange;
}

.card-title {
Expand All @@ -49,13 +50,11 @@
.card-img {
transform-origin: 50% 65%;
transition: transform 5s, filter 3s ease-in-out;
filter: brightness(150%);
display: none;
}

/* The Transformation */
.card-img:hover {
filter: brightness(100%);
transform: scale(1.2);
}

Expand Down Expand Up @@ -168,7 +167,7 @@ <h1 class="card-title text-truncate"><a href="#" class="caption" target="_blank"

lang = {
fr : {
buy : 'Plus de détails',
buy : 'Intéressant !',
update : '↻ Dernière mise à jour : ',
not_available : "Non disponible"
},
Expand Down Expand Up @@ -260,4 +259,4 @@ <h1 class="card-title text-truncate"><a href="#" class="caption" target="_blank"

</body>

</html>
</html>
Loading

0 comments on commit dbd4513

Please sign in to comment.