more-clean

This commit is contained in:
Untone 2024-02-08 05:29:24 +03:00
parent 01c78d9ee6
commit 52048852a0
4 changed files with 137 additions and 50 deletions

31
package-lock.json generated
View File

@ -10,16 +10,11 @@
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
"@authorizerdev/authorizer-js": "2.0.0",
"cropperjs": "1.6.1",
"form-data": "4.0.0",
"ga-gtag": "1.2.0",
"i18next": "22.4.15",
"i18next-icu": "2.3.0",
"intl-messageformat": "10.5.3",
"mailgun.js": "8.2.1"
},
"devDependencies": {
"@authorizerdev/authorizer-js": "2.0.0",
"@babel/core": "7.23.3",
"@biomejs/biome": "^1.5.3",
"@graphql-codegen/cli": "^5.0.0",
@ -78,12 +73,17 @@
"babel-preset-solid": "1.8.4",
"bootstrap": "5.3.2",
"clsx": "2.0.0",
"cropperjs": "1.6.1",
"fast-deep-equal": "3.1.3",
"ga-gtag": "1.2.0",
"graphql": "16.8.1",
"graphql-tag": "2.12.6",
"husky": "8.0.3",
"hygen": "6.2.11",
"i18next": "22.4.15",
"i18next-http-backend": "2.2.0",
"i18next-icu": "2.3.0",
"intl-messageformat": "10.5.3",
"javascript-time-ago": "2.5.9",
"js-cookie": "3.0.5",
"lint-staged": "15.1.0",
@ -334,6 +334,7 @@
},
"node_modules/@authorizerdev/authorizer-js": {
"version": "2.0.0",
"dev": true,
"license": "MIT",
"dependencies": {
"cross-fetch": "^3.1.5"
@ -1232,6 +1233,7 @@
},
"node_modules/@babel/runtime": {
"version": "7.23.9",
"dev": true,
"license": "MIT",
"dependencies": {
"regenerator-runtime": "^0.14.0"
@ -1454,6 +1456,7 @@
},
"node_modules/@formatjs/ecma402-abstract": {
"version": "1.17.2",
"dev": true,
"license": "MIT",
"dependencies": {
"@formatjs/intl-localematcher": "0.4.2",
@ -1462,6 +1465,7 @@
},
"node_modules/@formatjs/fast-memoize": {
"version": "2.2.0",
"dev": true,
"license": "MIT",
"dependencies": {
"tslib": "^2.4.0"
@ -1469,6 +1473,7 @@
},
"node_modules/@formatjs/icu-messageformat-parser": {
"version": "2.6.2",
"dev": true,
"license": "MIT",
"dependencies": {
"@formatjs/ecma402-abstract": "1.17.2",
@ -1478,6 +1483,7 @@
},
"node_modules/@formatjs/icu-skeleton-parser": {
"version": "1.6.2",
"dev": true,
"license": "MIT",
"dependencies": {
"@formatjs/ecma402-abstract": "1.17.2",
@ -1486,6 +1492,7 @@
},
"node_modules/@formatjs/intl-localematcher": {
"version": "0.4.2",
"dev": true,
"license": "MIT",
"dependencies": {
"tslib": "^2.4.0"
@ -5117,10 +5124,12 @@
},
"node_modules/cropperjs": {
"version": "1.6.1",
"dev": true,
"license": "MIT"
},
"node_modules/cross-fetch": {
"version": "3.1.5",
"dev": true,
"license": "MIT",
"dependencies": {
"node-fetch": "2.6.7"
@ -5854,6 +5863,7 @@
},
"node_modules/ga-gtag": {
"version": "1.2.0",
"dev": true,
"license": "MIT"
},
"node_modules/gensync": {
@ -6289,6 +6299,7 @@
},
"node_modules/i18next": {
"version": "22.4.15",
"dev": true,
"funding": [
{
"type": "individual",
@ -6318,6 +6329,7 @@
},
"node_modules/i18next-icu": {
"version": "2.3.0",
"dev": true,
"license": "MIT",
"peerDependencies": {
"intl-messageformat": "^10.3.3"
@ -6503,6 +6515,7 @@
},
"node_modules/intl-messageformat": {
"version": "10.5.3",
"dev": true,
"license": "BSD-3-Clause",
"dependencies": {
"@formatjs/ecma402-abstract": "1.17.2",
@ -7882,6 +7895,7 @@
},
"node_modules/node-fetch": {
"version": "2.6.7",
"dev": true,
"license": "MIT",
"dependencies": {
"whatwg-url": "^5.0.0"
@ -8768,6 +8782,7 @@
},
"node_modules/regenerator-runtime": {
"version": "0.14.1",
"dev": true,
"license": "MIT"
},
"node_modules/relative-time-format": {
@ -9628,6 +9643,7 @@
},
"node_modules/tr46": {
"version": "0.0.3",
"dev": true,
"license": "MIT"
},
"node_modules/trim-newlines": {
@ -9648,6 +9664,7 @@
},
"node_modules/tslib": {
"version": "2.6.2",
"dev": true,
"license": "0BSD"
},
"node_modules/type-fest": {
@ -10163,10 +10180,12 @@
},
"node_modules/webidl-conversions": {
"version": "3.0.1",
"dev": true,
"license": "BSD-2-Clause"
},
"node_modules/whatwg-url": {
"version": "5.0.0",
"dev": true,
"license": "MIT",
"dependencies": {
"tr46": "~0.0.3",

View File

@ -30,16 +30,11 @@
"typecheck:watch": "tsc --noEmit --watch"
},
"dependencies": {
"@authorizerdev/authorizer-js": "2.0.0",
"cropperjs": "1.6.1",
"form-data": "4.0.0",
"ga-gtag": "1.2.0",
"i18next": "22.4.15",
"i18next-icu": "2.3.0",
"intl-messageformat": "10.5.3",
"mailgun.js": "8.2.1"
"mailgun.js": "10.1.0"
},
"devDependencies": {
"@authorizerdev/authorizer-js": "2.0.0",
"@babel/core": "7.23.3",
"@biomejs/biome": "^1.5.3",
"@graphql-codegen/cli": "^5.0.0",
@ -98,12 +93,17 @@
"babel-preset-solid": "1.8.4",
"bootstrap": "5.3.2",
"clsx": "2.0.0",
"cropperjs": "1.6.1",
"fast-deep-equal": "3.1.3",
"ga-gtag": "1.2.0",
"graphql": "16.8.1",
"graphql-tag": "2.12.6",
"husky": "8.0.3",
"hygen": "6.2.11",
"i18next": "22.4.15",
"i18next-http-backend": "2.2.0",
"i18next-icu": "2.3.0",
"intl-messageformat": "10.5.3",
"javascript-time-ago": "2.5.9",
"js-cookie": "3.0.5",
"lint-staged": "15.1.0",

View File

@ -1,37 +0,0 @@
import { chromium } from 'playwright'
;(async () => {
const browser = await chromium.launch()
const context = await browser.newContext()
// Define the URLs to visit
const pagesToVisit = [
'http://localhost:3000/',
'http://localhost:3000/feed',
'http://localhost:3000/create',
'http://localhost:3000/about/donate',
'http://localhost:3000/authors',
'http://localhost:3000/topics',
'http://localhost:3000/inbox',
]
// Loop through the pages and visit each one
for (const pageUrl of pagesToVisit) {
const page = await context.newPage()
// Log a message before visiting the page
console.log(`Visiting page: ${pageUrl}`)
await page.goto(pageUrl)
// Add your test assertions here if needed
// Log a message after visiting the page
console.log(`Finished visiting page: ${pageUrl}`)
// Close the page before moving to the next one
await page.close()
}
// Close the browser
await browser.close()
})()

File diff suppressed because one or more lines are too long