Compare commits

..

318 Commits

Author SHA1 Message Date
Javier Segarra 3eb191d2d1 feat: zoom image home
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
2025-01-16 13:29:00 +01:00
Javier Segarra 2392f8c8d7 feat: sql style
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
2025-01-16 12:58:48 +01:00
Javier Segarra e618090c7c feat: show only isActive 2025-01-16 12:58:04 +01:00
Javier Segarra 4c1514f2a7 feat: update patch version
gitea/hedera-web/pipeline/head This commit looks good Details
2024-12-12 22:32:28 +01:00
Javier Segarra fb7da8a878 fix: replace lg by wxh
gitea/hedera-web/pipeline/head This commit looks good Details
2024-12-11 23:04:14 +01:00
Javier Segarra f2a13b7b96 feat: rollback missing dependencies
gitea/hedera-web/pipeline/head This commit looks good Details
2024-12-11 11:59:31 +01:00
Javier Segarra d6f1c8dc04 Merge branch 'beta' of https://gitea.verdnatura.es/verdnatura/hedera-web into beta
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-12-11 11:51:59 +01:00
Javier Segarra c32231202f feat: update patch version 2024-12-11 11:51:57 +01:00
Javier Segarra 4a7bc00c62 Merge pull request 'Replace data-testid' (!97) from wbuezas/hedera-web-mindshore:replace-data-testid into beta
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: #97
2024-12-10 13:32:37 +00:00
Javier Segarra aacac8dc28 Merge branch 'beta' into replace-data-testid
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
2024-12-10 13:32:14 +00:00
William Buezas 6adb4268ff Remplace data-testid
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
2024-12-10 10:29:42 -03:00
Javier Segarra 9b26f2dc7f Merge pull request 'Fix tests andd add catalog view test' (!96) from wbuezas/hedera-web-mindshore:tests-changes into beta
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: #96
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-12-10 12:06:40 +00:00
Javier Segarra bf25e871f3 Merge branch 'beta' into tests-changes
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
2024-12-10 12:04:05 +00:00
William Buezas 3aad2eaeec Fix tests and add new test to Catalog
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
2024-12-10 08:57:57 -03:00
Javier Segarra 0f1bde3b77 Merge pull request '#7750 - first-beta-review' (!95) from wbuezas/hedera-web-mindshore:first-beta-review into beta
gitea/hedera-web/pipeline/head This commit looks good Details
Reviewed-on: #95
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-12-09 23:18:06 +00:00
William Buezas 99c1386627 Small changes 2024-12-09 15:30:51 -03:00
William Buezas d913eba277 Tests adjustments 2024-12-09 15:18:45 -03:00
William Buezas dedb8a73a5 Resolve conflicts and simplyfy localeDates
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
2024-12-09 11:30:52 -03:00
William Buezas 09866f5b41 Add promise all in catalog
gitea/hedera-web/pipeline/pr-beta There was a failure building this commit Details
2024-12-05 18:39:33 -03:00
William Buezas 41196b4a23 VnSelect loading 2024-12-05 10:12:18 -03:00
William Buezas 65923fee9f Modify readme 2024-12-04 11:31:08 -03:00
William Buezas 52e45b93a0 Show always confirm button in stepper 2024-12-03 13:08:13 -03:00
William Buezas 221d0e7b8c Add default agency if found 2024-12-03 13:04:21 -03:00
William Buezas e7289b05e9 Emit search error when not typing search term 2024-12-03 12:36:34 -03:00
William Buezas 9fb67992ae Make locale dates a getter 2024-12-03 11:07:34 -03:00
William Buezas be0636a832 Recover password view and test 2024-12-03 10:52:59 -03:00
William Buezas 0aeacc88bc Remove bg color 2024-12-02 21:45:16 -03:00
William Buezas e4770c045d Shor cards as much as possible 2024-12-02 15:13:48 -03:00
William Buezas 9cff4a9ea6 adjust catalog paddings 2024-11-28 21:47:01 -03:00
William Buezas f52ee3f649 Change catalog card QBadges colors 2024-11-28 21:30:07 -03:00
William Buezas 3c3e88b044 send Accept-Language header 2024-11-28 21:23:02 -03:00
William Buezas c61b047fed Remove empty list icons 2024-11-28 21:12:29 -03:00
William Buezas b80d6e499a Add error translation 2024-11-28 08:50:20 -03:00
William Buezas 0661f4dd74 Catalog small changes 2024-11-28 08:47:27 -03:00
Juan Ferrer f8da4a09bb refs #4922 version increased
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-28 11:39:13 +01:00
Juan Ferrer 456522e1dd refs #4922 debian/install removed doc, version increased
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-28 11:01:35 +01:00
Juan Ferrer 11e1404b93 refs #4922 deps fixed, utils moved to back
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-28 10:57:51 +01:00
William Buezas 0806f63d8d Show catalog zoom images correct resolution and add spinner in preview catalog item 2024-11-27 21:41:00 -03:00
William Buezas af7db23fed Fix selected item image 2024-11-27 21:28:11 -03:00
William Buezas 3ddf73c958 Checkout stepper reset address and agency value when changin method 2024-11-27 21:25:11 -03:00
William Buezas 26320f098f Adjust checkout stepper title 2024-11-27 21:18:59 -03:00
William Buezas 7d0d52c704 Remove package.json duplicate key 2024-11-27 20:58:25 -03:00
William Buezas 63b43506ab Add loader to checkout stepper confirm button 2024-11-27 20:25:23 -03:00
William Buezas 16b1e205d3 Checkout stepper adjust change arrows step position 2024-11-27 20:18:10 -03:00
William Buezas 7c2f6183b0 Adjust right drawer scroll 2024-11-27 20:14:58 -03:00
William Buezas 8fd4448aab Translate basket catalog button 2024-11-27 20:09:44 -03:00
Javier Segarra 2507b7c7e2 Merge pull request 'merge_generalImprovements' (!94) from merge_generalImprovements into beta
gitea/hedera-web/pipeline/head There was a failure building this commit Details
Reviewed-on: #94
Reviewed-by: Juan Ferrer <juan@verdnatura.es>
2024-11-27 14:50:49 +00:00
Javier Segarra fe2b1e3e79 revert: images removed
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
2024-11-27 15:48:35 +01:00
Javier Segarra 77bc288682 Merge branch 'beta' into merge_generalImprovements
gitea/hedera-web/pipeline/pr-beta This commit looks good Details
2024-11-27 15:41:24 +01:00
Javier Segarra cc06eaa203 Merge branch 'beta' into merge_generalImprovements 2024-11-27 15:40:07 +01:00
Javier Segarra cf17529b80 Merge remote-tracking branch 'mindshore/feature/GeneralImprovements' into merge_generalImprovements
gitea/hedera-web/pipeline/pr-beta There was a failure building this commit Details
2024-11-27 15:33:23 +01:00
Juan Ferrer 151ec4bcbb refs #4922 debian/install reports removed
gitea/hedera-web/pipeline/pr-dev There was a failure building this commit Details
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-27 15:20:21 +01:00
Juan Ferrer 33bc413e8c refs #4922 debuild image updated, debian/rules remove corepack
gitea/hedera-web/pipeline/pr-dev There was a failure building this commit Details
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-27 15:16:33 +01:00
Juan Ferrer e7aebc371e refs #4922 debian/rules use pnpm
gitea/hedera-web/pipeline/pr-dev There was a failure building this commit Details
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-27 15:08:28 +01:00
Juan Ferrer fed067c533 refs #4922 pnpm migration, unused deps removed, clean back deprecated files
gitea/hedera-web/pipeline/head There was a failure building this commit Details
gitea/hedera-web/pipeline/pr-dev There was a failure building this commit Details
2024-11-27 14:24:21 +01:00
Juan Ferrer f1f40527bc refs #4922 Rename vue to beta
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-26 16:49:00 +01:00
Juan Ferrer 65280ccbc9 refs #4922 README fixes
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-26 14:29:08 +01:00
Juan Ferrer 5b84a03e16 refs #4922 Project root clean
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-26 14:25:57 +01:00
Juan Ferrer 850f4ba804 refs #4922 Version increased
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-26 12:43:22 +01:00
Juan Ferrer b05aaa36ba refs #4922 Apache rewrite fixes 2024-11-26 12:43:11 +01:00
Juan Ferrer bc97cd4a0a refs #4922 Apache config
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-26 12:23:56 +01:00
Juan Ferrer 56a4d46ac8 refs #4922 Version increased
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-26 11:56:49 +01:00
Juan Ferrer b47b63a550 refs #4922 Apache config 2024-11-26 11:56:27 +01:00
Juan Ferrer 0280a1ae82 refs #4922 Apache config
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-26 11:09:47 +01:00
Juan Ferrer fdda9a56c4 refs #4922 Version increased
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-25 18:03:05 +01:00
Juan Ferrer d6a8fa03dc refs #4922 Set apache rewrite config 2024-11-25 18:02:26 +01:00
Juan Ferrer 65b9d3d139 refs #4922 Deploy fixes
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-25 17:58:52 +01:00
Juan Ferrer ba0883fc7a refs #4922 Deploy fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-25 17:31:37 +01:00
Juan Ferrer 18e9f7cbe1 refs #4922 Dockerfile updated, rules fixes
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-25 17:07:33 +01:00
Juan Ferrer 2bf1c1f6dc refs #4922 Version increased
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-25 16:59:53 +01:00
Juan Ferrer a8d5f06866 refs #4922 Deploy fixes 2024-11-25 16:59:26 +01:00
Juan Ferrer cfceee4838 refs #4922 Jenkinsfile: Remove rdebuild folder
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-25 16:17:40 +01:00
Juan Ferrer 6c9e3bbc55 refs #4922 Debian rules fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-25 16:09:34 +01:00
Juan Ferrer a285e1acc7 refs #4922 Version increased
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-25 16:05:43 +01:00
Juan Ferrer bf6690113d refs #4922 Version increased
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-25 15:03:18 +01:00
Juan Ferrer 3c18f64d58 refs #4922 debuild: Install dev deps
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-25 14:42:25 +01:00
Juan Ferrer aec14f8ebd refs #4922 Jenkinsfile: fix protected branches
gitea/hedera-web/pipeline/head There was a failure building this commit Details
2024-11-25 14:40:08 +01:00
Juan Ferrer e1be2703e8 refs #4922 Setup Vue deployment
gitea/hedera-web/pipeline/head This commit looks good Details
2024-11-25 14:36:38 +01:00
William Buezas 46b828bd0c Add tests to account config lang change
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-13 18:50:18 -03:00
William Buezas dfc8096b19 Merge branch 'feature/GeneralImprovements' of https://gitea.verdnatura.es/wbuezas/hedera-web-mindshore into feature/GeneralImprovements
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-13 15:26:59 -03:00
William Buezas 1dc5bfe90c Change site lang when changing user lang configuration 2024-11-13 15:26:40 -03:00
Javier Segarra 8fc5c8e3e4 feat: porposal remove dependencies
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-13 13:14:50 +01:00
William Buezas 3219d44bdb remove webpack
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-12 18:09:45 -03:00
William Buezas 833e464a99 modify readme
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-12 16:47:04 -03:00
William Buezas 650fa0006f Remove more unused files
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-12 15:19:59 -03:00
William Buezas 94a105ab31 Remove unused files
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-12 15:14:06 -03:00
William Buezas 56262d91b4 Resolve main layout conflicts
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-12 15:12:39 -03:00
Javier Segarra 247ad94199 feat: porposal remove dependencies
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-12 17:59:24 +01:00
Javier Segarra e554dd1cb1 feat: cypress reporter 2024-11-12 17:58:52 +01:00
Javier Segarra 5a0dc0a927 perf: proposal package.json pnpm manager 2024-11-12 17:58:39 +01:00
Javier Segarra 8863b6428c feat: cypress reporter
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-12 17:47:21 +01:00
Javier Segarra f27dd79dcc feat: proposal updates
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-12 17:42:56 +01:00
William Buezas bb28805d23 Structure header and move hamburguer menu to the left 2024-11-12 10:52:19 -03:00
William Buezas 484e41e86b Change readme
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-12 09:56:28 -03:00
Javier Segarra 0fc1fc58e6 Merge pull request 'Cypress initial config and tests' (!90) from wbuezas/hedera-web-mindshore:feature/CypressInit into 4922-vueMigration
Reviewed-on: #90
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-11-12 12:24:41 +00:00
William Buezas 69abcf6870 Create custom title variable
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-06 22:44:01 -03:00
William Buezas dff5820ed4 Improve address details update test
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-06 19:41:37 -03:00
William Buezas ab7c1d1fe0 Add address tests
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-06 17:02:43 -03:00
William Buezas f70b98b514 Apply find input in dataCy
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-11-04 10:47:30 -03:00
William Buezas 22153c5171 Merge branch 'feature/CypressInit' of https://gitea.verdnatura.es/wbuezas/hedera-web-mindshore into feature/CypressInit
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-24 19:16:38 -03:00
William Buezas 12ff0b5845 Items view tests 2024-10-24 19:16:06 -03:00
Javier Segarra 1471d323d6 Merge branch '4922-vueMigration' into feature/CypressInit
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-24 21:58:14 +00:00
William Buezas 879e3cbb44 Add catalog view tests
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-24 18:03:41 -03:00
William Buezas a142ceb151 Create check notify commands
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-24 14:30:25 -03:00
William Buezas e4bc14ef3b Create confirmDialog command
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-24 14:21:49 -03:00
William Buezas 40444ac46a Reuse resetDatabase script
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-24 14:13:33 -03:00
William Buezas 5f0a2f9181 New login test
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-24 14:09:28 -03:00
William Buezas eea2ad7984 Adjustments
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-24 14:04:07 -03:00
William Buezas 0bec75b2d3 Some changes and more tests
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-24 10:02:15 -03:00
William Buezas 186ec60937 Add news view tests
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-22 14:49:29 -03:00
William Buezas cb1542937a Token changes
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-22 10:41:09 -03:00
William Buezas cfff9f7aeb PendingOrdersView and OrdersView tests
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-21 15:05:04 -03:00
William Buezas ff423ae79b More tests
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-18 16:22:23 -03:00
William Buezas 693b309e79 Several changes and more tests
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-17 16:34:23 -03:00
William Buezas 62349278ed Move command
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-16 20:35:40 -03:00
William Buezas 9450be744a Creation of first tests, commands, and flow
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-16 14:08:10 -03:00
William Buezas bbaa6f936e e2e order creation flow 2024-10-14 08:23:27 -03:00
Javier Segarra 8021a171f8 Merge pull request 'Renew token' (!89) from wbuezas/hedera-web-mindshore:feature/RenewToken into 4922-vueMigration
Reviewed-on: #89
2024-10-14 11:15:56 +00:00
William Buezas 2d9225f05f New tests changes 2024-10-10 16:34:39 -03:00
William Buezas cd7a4b13f6 Update branch and resolve conflicts 2024-10-08 15:53:27 -03:00
William Buezas 4c041f42b2 Update lang
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-07 17:38:39 -03:00
William Buezas c9812cd320 Apply multimedia token and change openReport method 2024-10-07 09:33:17 -03:00
William Buezas b669adab5a Add multimedia token feature 2024-10-07 09:14:59 -03:00
William Buezas 1cbbc092be Add cypress eslint config 2024-10-07 08:34:55 -03:00
William Buezas 56cf0f0e64 Remove menu items order
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-05 20:26:14 -03:00
Javier Segarra 0b70344708 Merge branch '4922-vueMigration' into feature/RenewToken
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-04 22:29:46 +00:00
Javier Segarra ec9d2bce56 Merge pull request 'Fixes varios #2' (!88) from wbuezas/hedera-web-mindshore:bugfix/fixes-2 into 4922-vueMigration
Reviewed-on: #88
2024-10-04 18:14:44 +00:00
William Buezas 851d97f321 Change catalog filters fetching order
gitea/hedera-web/pipeline/pr-dev There was a failure building this commit Details
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-04 15:04:56 -03:00
William Buezas c72bfdc100 Menu order 2024-10-04 09:40:26 -03:00
William Buezas 57e1f66a94 Integrate cypress and login view e2e tests 2024-10-04 08:06:56 -03:00
William Buezas ef3b41e4e2 More fixes and adjustments 2024-10-03 11:44:13 -03:00
William Buezas a97219ad59 Fix supplant users 2024-10-02 18:40:06 -03:00
William Buezas 0246e39f0f Renew token logic 2024-10-02 16:39:09 -03:00
William Buezas e5efdff1d8 Add desktop mixin
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-01 17:03:31 -03:00
William Buezas 15c5dc761f Merge branch 'bugfix/fixes-2' of https://gitea.verdnatura.es/wbuezas/hedera-web-mindshore into bugfix/fixes-2
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-01 17:01:51 -03:00
William Buezas 514af4f11e Catalog mobile adjustments 2024-10-01 17:01:40 -03:00
Javier Segarra 72da0cb5a1 Merge branch '4922-vueMigration' into bugfix/fixes-2
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-10-01 19:50:59 +00:00
Javier Segarra baa1422025 Merge pull request 'Catalog view' (!87) from wbuezas/hedera-web-mindshore:feature/Catalog into 4922-vueMigration
Reviewed-on: #87
2024-10-01 19:27:15 +00:00
William Buezas 261fddb1cf Renew token 2024-10-01 14:19:34 -03:00
William Buezas c950bf5ef1 Add lateral arrows to stepper and add hedera tryAutoLogin logic
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-30 12:42:35 -03:00
William Buezas fdff59a74d Remove home link in login 2024-09-29 21:11:42 -03:00
William Buezas 68f32c36e7 Redirect to login when init 2024-09-29 21:11:09 -03:00
William Buezas 3e93f14196 Al iniciar sesion no se traduce el titulo 2024-09-29 20:59:07 -03:00
William Buezas 5cab14f371 Refresh content after supplanted user logout 2024-09-29 20:53:14 -03:00
William Buezas 49244a411c Hide Reports from menu 2024-09-29 20:38:57 -03:00
William Buezas 2eb0963829 Add different translations for header titles and menu titles 2024-09-29 20:30:16 -03:00
William Buezas 477c42b964 Change agencies header title 2024-09-27 09:03:43 -03:00
William Buezas baaff90aef Adjust account conf form checkbox 2024-09-27 08:59:04 -03:00
William Buezas 4111dd8669 In address details make CP input number 2024-09-26 15:12:35 -03:00
William Buezas ce7e04379a Orders view changes in pay modal 2024-09-26 15:09:37 -03:00
William Buezas 6927b86570 Remove title attr in invoices view 2024-09-26 15:05:04 -03:00
William Buezas 577a6281b8 Create VnList 2024-09-26 15:02:40 -03:00
William Buezas 4358ef70c0 Add guest logic
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-25 14:15:41 -03:00
William Buezas d8ec175328 return from getOrder if basketOrderId is undefined
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-24 17:16:10 -03:00
William Buezas 0f5014088d Handle minQuantity
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-24 17:11:43 -03:00
William Buezas 202c22b8a9 Add translation
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-24 15:42:45 -03:00
William Buezas 58b7325605 Fix image sizes
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-24 09:28:38 -03:00
William Buezas e6f0320cf5 Change view type button logic
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-24 09:03:59 -03:00
William Buezas fac528b42f Merge branch 'feature/Catalog' of https://gitea.verdnatura.es/wbuezas/hedera-web-mindshore into feature/Catalog
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-24 08:40:52 -03:00
William Buezas 101ac917a2 Add await 2024-09-24 08:40:38 -03:00
Javier Segarra 0529505cc2 Merge branch '4922-vueMigration' into feature/Catalog
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-23 21:18:27 +00:00
Javier Segarra 622ce6ae28 Merge pull request 'Fixes primera revisión' (!86) from wbuezas/hedera-web-mindshore:bugfix/fixes-primera-review into 4922-vueMigration
Reviewed-on: #86
2024-09-23 21:18:13 +00:00
William Buezas 8664f40e06 Small changes
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-23 09:44:27 -03:00
William Buezas e39cab82f6 Use searchbar and debouncer 2024-09-23 08:08:24 -03:00
William Buezas 72cd9e6cd6 Grid mode 2024-09-22 20:12:25 -03:00
William Buezas ff0d2db8fe Filters changes and create card component 2024-09-22 18:47:06 -03:00
William Buezas bbaa6d87ff WIP 2024-09-22 17:50:24 -03:00
William Buezas c3e3b4d7b6 Resolve conflicts
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-17 08:29:02 -03:00
Javier Segarra d824df5eb0 Merge pull request 'Apply lang selector and update user config' (!85) from wbuezas/hedera-web-mindshore:feature/ApplyLangSelector into 4922-vueMigration
Reviewed-on: #85
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-09-17 07:51:00 +00:00
Javier Segarra f4fea5e904 feat: remove update in BD userLang
gitea/hedera-web/pipeline/pr-4922-vueMigration Build started... Details
2024-09-17 09:50:25 +02:00
William Buezas d09f90d47c Avoid redirecting to access log when clicking suplant user button
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-16 23:05:32 -03:00
William Buezas bc97e000b8 Modify store user name when is modified in account config form
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-16 14:41:44 -03:00
William Buezas cdf534e70b Add photos view tooltips and add image errors translations 2024-09-16 14:37:48 -03:00
William Buezas f8e67f0d98 VnImg prevent other events when clicking image 2024-09-16 13:32:17 -03:00
William Buezas 2b41bc31c1 Change news cards size and header translation 2024-09-16 13:31:21 -03:00
William Buezas cc44041e31 Create access log view 2024-09-16 13:24:43 -03:00
William Buezas 85eee7bb7a Admin users add disabled badge when user is disabled 2024-09-16 09:43:44 -03:00
William Buezas 2a43ab023a Remove console.log 2024-09-16 09:32:33 -03:00
William Buezas be868b60ab Remove unused imports 2024-09-16 09:32:14 -03:00
William Buezas f56d4cca14 Avoid supplant user error to appear 2 times 2024-09-16 09:30:42 -03:00
William Buezas 67847e798b In pending orders the price of the order is not in the end of the card 2024-09-16 09:29:25 -03:00
William Buezas 79ddbe4916 Add tooltips in pending orders cards action buttons 2024-09-16 09:13:17 -03:00
William Buezas 8ffe9a6a96 Adjust lang selector size
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-16 08:31:26 -03:00
William Buezas 21b6e96148 Resolve conflicts
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-13 21:48:49 -03:00
William Buezas f1a8fd2710 Integrate update config language dropdown
gitea/hedera-web/pipeline/pr-4922-vueMigration There was a failure building this commit Details
2024-09-13 21:42:40 -03:00
Javier Segarra 59e8285bd2 Merge pull request 'Confirm view' (!84) from wbuezas/hedera-web-mindshore:feature/ConfirmView into 4922-vueMigration
Reviewed-on: #84
2024-09-12 23:17:37 +00:00
William Buezas 2176c6e259 Fix ticket print
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-12 11:47:05 -03:00
William Buezas 533c7560dc Confirm view adjustments
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-12 09:58:45 -03:00
William Buezas c4a64bff91 hide table aspect in invoices view
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-12 09:19:17 -03:00
William Buezas 3c71c71df1 remove console.log
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-12 08:14:32 -03:00
William Buezas e76e4e4f8c Add prop
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-11 15:12:26 -03:00
William Buezas f95a8c9daa Resolve conflicts 2024-09-11 15:10:54 -03:00
William Buezas 2758dcf2c8 WIP 2024-09-11 14:46:45 -03:00
Javier Segarra facb565d26 Merge pull request 'Unload order when order check fails' (!83) from wbuezas/hedera-web-mindshore:feature/UnloadOrder into 4922-vueMigration
Reviewed-on: #83
2024-09-11 06:30:03 +00:00
Javier Segarra a7edc9b87a Merge branch '4922-vueMigration' into feature/UnloadOrder
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-10 20:08:16 +00:00
William Buezas 93e739f35c Create a constant for store local storage order name
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-10 17:07:29 -03:00
William Buezas 65e0d752d6 remove header actions 2024-09-10 16:48:05 -03:00
William Buezas 418911b903 Remove console.log
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-10 12:40:02 -03:00
William Buezas decf955224 Unload order when checkOrder fails 2024-09-10 12:38:36 -03:00
Javier Segarra d736ea716b Merge pull request 'Basket view' (!81) from wbuezas/hedera-web-mindshore:feature/Basket into 4922-vueMigration
Reviewed-on: #81
2024-09-10 14:15:23 +00:00
William Buezas a9427ddab9 Prevent entering basket view before checks
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-10 09:19:47 -03:00
Javier Segarra 057bfae517 Merge pull request 'Add menu translations' (!82) from wbuezas/hedera-web-mindshore:feature/AddMenuTranslations into 4922-vueMigration
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
Reviewed-on: #82
2024-09-09 20:19:31 +00:00
Javier Segarra 929623949b perf: change code position(clean code)
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-09 22:19:05 +02:00
Javier Segarra 38a88bb0cc feat: changes 2024-09-09 22:18:44 +02:00
William Buezas 265ff5c47f Confirm view 2024-09-09 08:50:21 -03:00
William Buezas c41d1430f7 Add menu translations
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-07 19:34:22 -03:00
William Buezas 2bff9304e8 Add title view translation
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-06 11:31:07 -03:00
William Buezas c53658e6e0 Add empty list
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-06 11:20:09 -03:00
William Buezas e94f8c6b23 Add missed code
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-06 10:53:28 -03:00
William Buezas c52fe7a870 WIP 2024-09-05 07:46:47 -03:00
William Buezas bfbe3621d6 Resolve conflicts
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-04 07:17:22 -03:00
Javier Segarra 05568280f3 Merge pull request 'Pedidos stepper' (!80) from wbuezas/hedera-web-mindshore:feature/PedidosStepper into 4922-vueMigration
Reviewed-on: #80
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-09-03 14:06:01 +00:00
William Buezas 6bfa5b9715 Small changes
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-03 08:17:22 -03:00
William Buezas 6631be401b Add minimal to QDate when is mobile
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-02 18:27:14 -03:00
William Buezas ba2ded5c48 Add contracted prop for narrow windows
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-02 17:53:43 -03:00
William Buezas 723a977ecd Small fix
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-02 16:29:18 -03:00
William Buezas a1d67ebc6f update branch 2024-09-02 16:27:54 -03:00
William Buezas 7026e3416f Remove fetching of default order method
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-02 12:39:03 -03:00
William Buezas 975495113d Set monday as first day of week
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-09-01 21:43:49 -03:00
William Buezas 8e0f09cc0f Add next and back buttons custom labels 2024-09-01 21:42:09 -03:00
William Buezas 95e23c05fa Translate back and next buttons labels 2024-09-01 21:36:13 -03:00
William Buezas 6423ecfb05 Fix agency step title 2024-09-01 21:33:37 -03:00
William Buezas 3a21292030 Add validation to address step in method PICKUP 2024-09-01 21:29:57 -03:00
William Buezas f2bd3c2fa6 Add title to address step 2024-09-01 21:27:12 -03:00
William Buezas 020e0afc96 Add locale to QDate and initiate localeDates in store 2024-09-01 21:15:54 -03:00
William Buezas 766417bb73 Basket 2024-09-01 20:58:05 -03:00
William Buezas c77c2e6648 Update branch
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-30 18:06:37 -03:00
William Buezas 6fe518601f WIP 2024-08-30 18:03:49 -03:00
William Buezas cb2c9871cc Stepper
gitea/hedera-web/pipeline/pr-4922-vueMigration There was a failure building this commit Details
2024-08-28 16:12:34 -03:00
Javier Segarra a832a1889a Merge pull request 'Modulo Administración' (!78) from wbuezas/hedera-web-mindshore:feature/Administracion into 4922-vueMigration
Reviewed-on: #78
2024-08-23 19:29:45 +00:00
William Buezas 7c4123ca0b Resolve conflicts
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-23 16:23:14 -03:00
William Buezas facbe9b990 WIP 2024-08-23 16:09:50 -03:00
William Buezas 57880705d0 WIP 2024-08-23 13:43:32 -03:00
Javier Segarra ed29a1939c Merge pull request 'Mejoras sección pedidos' (!79) from wbuezas/hedera-web-mindshore:feature/MejorasPedidos into 4922-vueMigration
Reviewed-on: #79
2024-08-23 12:05:15 +00:00
Javier Segarra 5456db8add perf: date proposal
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-22 23:32:47 +02:00
Javier Segarra 053b9f8457 fix: comments
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-22 23:28:10 +02:00
Javier Segarra 8866331926 feat: extra-form slot for other table
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-22 22:52:30 +02:00
William Buezas 33ef1da2a9 Small changes
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-22 12:35:35 -03:00
Javier Segarra 2e2c83dcde perf: remove console.log
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-21 13:45:43 +02:00
William Buezas 73eb3dcbee Updating VnInput
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-19 08:44:40 -03:00
William Buezas 05d735702e Formatting and small changes 2024-08-19 08:21:23 -03:00
Javier Segarra 462a8a3cf8 eprf: add max value
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-19 12:38:45 +02:00
Javier Segarra f821b8689a perf: improve interceptor 2024-08-19 12:38:33 +02:00
Javier Segarra e47edb9827 fix: eslint warnings 2024-08-19 12:38:17 +02:00
William Buezas 25f4f822b4 Extra improvements 2024-08-18 21:58:02 -03:00
William Buezas ef35914f34 Card list change 2024-08-18 21:39:44 -03:00
William Buezas b19bf710e8 Resolve conflicts 2024-08-18 20:33:17 -03:00
William Buezas 17a519e2ee Small changes 2024-08-18 20:10:57 -03:00
William Buezas 95a2bfb69c Add error interceptor 2024-08-17 20:25:55 -03:00
William Buezas 6e41548fdf Create jApi error interceptor
gitea/hedera-web/pipeline/pr-dev There was a failure building this commit Details
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-17 20:23:15 -03:00
William Buezas c86c1cc0c0 General improvements 2024-08-17 19:59:35 -03:00
William Buezas 87c151c057 Add news details change 2024-08-17 19:36:19 -03:00
William Buezas 13af1d03a3 Change eslint config 2024-08-17 00:06:19 -03:00
William Buezas 14bef2383f News 2024-08-16 23:11:56 -03:00
Javier Segarra 5053a908f7 Merge pull request 'Vistas sección pedidos' (!77) from wbuezas/hedera-web-mindshore:feature/Pedidos into 4922-vueMigration
Reviewed-on: #77
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-08-16 06:52:22 +00:00
William Buezas 7e0c591026 Add tooltips
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 12:22:51 -03:00
William Buezas 594b17b4ab Fix teleport submit problem
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 12:16:46 -03:00
William Buezas 887ee8aea4 Create date format util with translations
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 11:28:15 -03:00
William Buezas 44627dbc8a Replace prompt with VnConfirm
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 10:56:07 -03:00
William Buezas f2c8b90324 Create print service and fix slot in VnTable
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 09:31:42 -03:00
William Buezas e0f55f8ca3 Change class casing
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 09:09:52 -03:00
William Buezas f36eb1bd88 Create VnTable and use it
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 09:08:46 -03:00
William Buezas b728ecaf29 Add vn date
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 08:54:15 -03:00
William Buezas 7c96106faa Change serial column name to invoice
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 08:47:24 -03:00
William Buezas a0fc1cfc07 use line.discount directly
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 08:39:51 -03:00
William Buezas b66c47955c Move script tag to the start of the file
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 08:37:04 -03:00
William Buezas ec14ca334a WIP
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-14 08:30:53 -03:00
William Buezas 7837925be9 Photos view 2024-08-13 16:37:28 -03:00
William Buezas 2fb892c71a WIP 2024-08-12 11:41:06 -03:00
William Buezas 2a1cd59492 Visits view 2024-08-08 11:24:43 -03:00
William Buezas 76b99ed293 Admin section WIP 2024-08-07 17:34:00 -03:00
William Buezas 67c6f84de3 Several changes
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-08-02 21:56:20 -03:00
William Buezas 745e9a569c Translation files, pending orders, and more changes 2024-07-28 18:45:38 -03:00
William Buezas ad2d494481 Create CardList component 2024-07-27 22:55:40 -03:00
Javier Segarra 24687e57e6 Merge pull request 'Account config and change password form' (!73) from wbuezas/hedera-web-mindshore:feature/AccountConfig into 4922-vueMigration
Reviewed-on: #73
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-07-26 20:24:41 +00:00
Javier Segarra c20f48b2bf Merge branch '4922-vueMigration' into feature/AccountConfig
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-26 22:23:21 +02:00
Javier Segarra 6bad41db20 feat: add password visibility
gitea/hedera-web/pipeline/pr-4922-vueMigration There was a failure building this commit Details
2024-07-26 22:18:17 +02:00
Javier Segarra eb0328753a Merge pull request 'Agencies packages' (!74) from wbuezas/hedera-web-mindshore:feature/Agencies into 4922-vueMigration
Reviewed-on: #74
2024-07-26 20:05:39 +00:00
Javier Segarra e067f5f7bd feat: langs button
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-26 22:05:01 +02:00
Javier Segarra 34a0d93ece fix: email i18n 2024-07-26 21:55:42 +02:00
William Buezas 4256f45373 Add verificationToken as a prop to let the view handle it
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-26 10:36:48 -03:00
William Buezas 93cc0d4286 Add login when password changed
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-26 09:25:46 -03:00
William Buezas ef36566442 Create change password with and without token and add related features
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-26 09:09:21 -03:00
William Buezas 06cd9b01d3 Change password form fields validation
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-26 08:54:11 -03:00
William Buezas 7f831ae3a5 Remove unused style tag
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-26 08:41:19 -03:00
William Buezas 382378e867 Agencies packages
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-25 11:39:25 -03:00
William Buezas 401487dfd3 Resolve conflicts
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-24 14:52:54 -03:00
William Buezas aa4ccf65f5 Change password form and several changes 2024-07-24 14:42:02 -03:00
Javier Segarra fb267b910b Merge pull request 'Address details and VnForm' (!72) from wbuezas/hedera-web-mindshore:feature/AddressDetails into 4922-vueMigration
Reviewed-on: #72
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-07-24 14:19:39 +00:00
Javier Segarra 24a9c130d1 On AddressDetails: Merge branch 'feature/AddressDetails' of https://gitea.verdnatura.es/wbuezas/hedera-web-mindshore into feature/AddressDetails
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-23 23:07:40 +02:00
Javier Segarra f59b37c722 Merge branch 'feature/AddressDetails' of https://gitea.verdnatura.es/wbuezas/hedera-web-mindshore into feature/AddressDetails
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-23 22:39:45 +02:00
Javier Segarra 160552ff2f fix: hover AddressListCardActions 2024-07-23 22:37:22 +02:00
William Buezas 83e3e034a8 Show Addresses list actions always
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-23 16:37:24 -03:00
William Buezas 61062c1418 Add app.provide api
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-23 11:26:12 -03:00
William Buezas 2cbbaf619c small change
gitea/hedera-web/pipeline/pr-dev There was a failure building this commit Details
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-23 11:02:39 -03:00
William Buezas ec0d783672 WIP 2024-07-23 10:58:35 -03:00
William Buezas 07c5f64265 improvements 2024-07-22 13:51:54 -03:00
William Buezas dcbc154caa Components creation: AddressDetails, VnForm, VnInput and VnSelect 2024-07-22 11:17:56 -03:00
Javier Segarra 0d3da684b4 Merge pull request 'Address List view' (!71) from wbuezas/hedera-web-mindshore:feature/AddressList into 4922-vueMigration
Reviewed-on: #71
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-07-19 17:58:11 +00:00
William Buezas 8d2f041c46 Small change
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-19 09:24:20 -03:00
William Buezas 28b2dd386f Address List view 2024-07-19 09:19:26 -03:00
Javier Segarra d589b89a62 Merge pull request 'Home view adjustments' (!70) from wbuezas/hedera-web-mindshore:feature/HomeViewAdjustments into 4922-vueMigration
Reviewed-on: #70
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-07-19 12:17:13 +00:00
Javier Segarra 04660bd05e feat: VnImg
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-19 13:58:50 +02:00
Javier Segarra 1d6ec00c78 Merge branch '4922-vueMigration' into feature/HomeViewAdjustments
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good Details
2024-07-19 11:16:07 +00:00
Javier Segarra ce557dc5b9 Merge pull request 'Init config' (!68) from wbuezas/hedera-web-mindshore:feature/InitConfig into 4922-vueMigration
Reviewed-on: #68
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
2024-07-19 11:13:55 +00:00
Javier Segarra 4387a868bc perf: update
gitea/hedera-web/pipeline/pr-4922-vueMigration There was a failure building this commit Details
2024-07-19 09:36:25 +02:00
William Buezas 003f42dd03 Home view adjustments
gitea/hedera-web/pipeline/pr-4922-vueMigration There was a failure building this commit Details
2024-07-18 08:51:11 -03:00
William Buezas 9dfeb2f7ef package fix
gitea/hedera-web/pipeline/pr-4922-vueMigration There was a failure building this commit Details
2024-07-17 15:45:56 -03:00
William Buezas 8bea750244 Fix build
gitea/hedera-web/pipeline/pr-4922-vueMigration There was a failure building this commit Details
2024-07-17 15:10:27 -03:00
William Buezas bf2094163d More linting and formatting
gitea/hedera-web/pipeline/pr-4922-vueMigration There was a failure building this commit Details
2024-07-17 09:23:30 -03:00
William Buezas e0cc4e40ba Change components auto import casing type 2024-07-17 09:23:20 -03:00
William Buezas 47c6fe02ec Config prettier and eslint for src folder 2024-07-17 09:22:54 -03:00
Juan Ferrer 6458d8db5e #4922 Catalog & fixes
gitea/hedera-web/pipeline/head This commit looks good Details
2023-01-16 08:32:48 +01:00
Juan Ferrer 0234e14c6b #4922 invoices & orders
gitea/hedera-web/pipeline/head This commit looks good Details
2022-12-13 18:29:04 +01:00
Juan Ferrer 7e26aa773c refs #4922 password recovery, app store, error handler, fixes
gitea/hedera-web/pipeline/head This commit looks good Details
2022-12-09 11:28:38 +01:00
Juan Ferrer 0d0be4ee5f refs #4922 Login, logout, home, layout style
gitea/hedera-web/pipeline/head This commit looks good Details
2022-12-06 11:41:41 +01:00
Juan Ferrer 042b8b0309 refs #4922 Login UI
gitea/hedera-web/pipeline/head This commit looks good Details
2022-11-30 18:59:07 +01:00
Juan Ferrer b7658b76cf refs #4922 Quasar added
gitea/hedera-web/pipeline/head This commit looks good Details
2022-11-29 20:32:57 +01:00
717 changed files with 24101 additions and 43557 deletions

9
.editorconfig Normal file
View File

@ -0,0 +1,9 @@
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

8
.eslintignore Normal file
View File

@ -0,0 +1,8 @@
/dist
/src-bex/www
/src-capacitor
/src-cordova
/.quasar
/node_modules
.eslintrc.js
babel.config.js

86
.eslintrc.js Normal file
View File

@ -0,0 +1,86 @@
module.exports = {
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
// This option interrupts the configuration hierarchy at this file
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
root: true,
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module' // Allows for the use of imports
},
env: {
browser: true,
'vue/setup-compiler-macros': true
},
extends: ['standard'],
plugins: ['vue', 'prettier'],
globals: {
ga: 'readonly', // Google Analytics
cordova: 'readonly',
__statics: 'readonly',
__QUASAR_SSR__: 'readonly',
__QUASAR_SSR_SERVER__: 'readonly',
__QUASAR_SSR_CLIENT__: 'readonly',
__QUASAR_SSR_PWA__: 'readonly',
process: 'readonly',
Capacitor: 'readonly',
chrome: 'readonly'
},
// add your custom rules here
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow paren-less arrow functions
'arrow-parens': 'off',
'one-var': 'off',
'no-void': 'off',
'multiline-ternary': 'off',
'import/first': 'off',
'import/named': 'error',
'import/namespace': 'error',
'import/default': 'error',
'import/export': 'error',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'prefer-promise-reject-errors': 'off',
semi: 'off',
// allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
overrides: [
{
files: ['src/**/*.{js,vue,scss}', 'quasar.config.js'], // Aplica ESLint solo a archivos .js, .vue y .scss dentro de src (Proyecto de quasar)
extends: [
// Base ESLint recommended rules
'eslint:recommended',
// Uncomment any of the lines below to choose desired strictness,
// but leave only one uncommented!
// See https://eslint.vuejs.org/rules/#available-rules
// 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
// https://github.com/prettier/eslint-config-prettier#installation
// usage with Prettier, provided by 'eslint-config-prettier'.
'prettier',
'plugin:cypress/recommended'
],
rules: {
semi: 'off',
'space-before-function-paren': 'off',
'prefer-promise-reject-errors': 'off',
'vue/no-multiple-template-root': 'off'
},
parserOptions: {
ecmaVersion: '2021'
},
plugins: ['vue']
}
]
};

View File

@ -1,15 +0,0 @@
extends: eslint:recommended
parserOptions:
ecmaVersion: 2017
sourceType: module
rules:
no-undef: 0
no-redeclare: 0
no-mixed-spaces-and-tabs: 0
no-console: 0
no-cond-assign: 0
no-unexpected-multiline: 0
brace-style: [error, 1tbs]
space-before-function-paren: [error, never]
padded-blocks: [error, never]
func-call-spacing: [error, never]

35
.gitignore vendored
View File

@ -1,5 +1,36 @@
node_modules
build/ build/
config.my.php config.my.php
.vscode/
.DS_Store
.thumbs.db
node_modules
# Quasar core related directories
.quasar .quasar
/dist
# Cordova related directories and files
/src-cordova/node_modules
/src-cordova/platforms
/src-cordova/plugins
/src-cordova/www
# Capacitor related directories and files
/src-capacitor/www
/src-capacitor/node_modules
# BEX related directories and files
/src-bex/www
/src-bex/js/core
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
*.suo
*.ntvs*
*.njsproj
*.sln

9
.postcssrc.js Normal file
View File

@ -0,0 +1,9 @@
/* eslint-disable */
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
plugins: [
// to edit target browsers: use "browserslist" field in package.json
require('autoprefixer')
]
}

9
.prettierrc.js Normal file
View File

@ -0,0 +1,9 @@
module.exports = {
printWidth: 80,
tabWidth: 4,
useTabs: false,
singleQuote: true,
bracketSpacing: true,
arrowParens: 'avoid',
trailingComma: 'none'
};

14
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,14 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"vue.volar",
"wayou.vscode-todo-highlight"
],
"unwantedRecommendations": [
"octref.vetur",
"hookyqr.beautify",
"dbaeumer.jshint",
"ms-vscode.vscode-typescript-tslint-plugin"
]
}

22
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,22 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}

9
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,9 @@
{
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
"cSpell.words": ["axios", "composables"]
}

27
Jenkinsfile vendored
View File

@ -1,8 +1,12 @@
#!/usr/bin/env groovy #!/usr/bin/env groovy
def PROTECTED_BRANCH
def RUN_BUILD
def BRANCH_ENV = [ def BRANCH_ENV = [
test: 'test', test: 'test',
master: 'production' master: 'production',
beta: 'test'
] ]
def remote = [:] def remote = [:]
@ -10,6 +14,15 @@ node {
stage('Setup') { stage('Setup') {
env.NODE_ENV = BRANCH_ENV[env.BRANCH_NAME] ?: 'dev' env.NODE_ENV = BRANCH_ENV[env.BRANCH_NAME] ?: 'dev'
PROTECTED_BRANCH = [
'dev',
'test',
'master',
'beta'
].contains(env.BRANCH_NAME)
RUN_BUILD = PROTECTED_BRANCH
echo "NODE_NAME: ${env.NODE_NAME}" echo "NODE_NAME: ${env.NODE_NAME}"
echo "WORKSPACE: ${env.WORKSPACE}" echo "WORKSPACE: ${env.WORKSPACE}"
} }
@ -22,14 +35,11 @@ pipeline {
stages { stages {
stage('Debuild') { stage('Debuild') {
when { when {
anyOf { expression { PROTECTED_BRANCH }
branch 'master'
branch 'test'
}
} }
agent { agent {
docker { docker {
image 'registry.verdnatura.es/verdnatura/debuild:2.23.4-vn7' image 'registry.verdnatura.es/verdnatura/debuild:2.23.4-vn8'
registryUrl 'https://registry.verdnatura.es/' registryUrl 'https://registry.verdnatura.es/'
registryCredentialsId 'docker-registry' registryCredentialsId 'docker-registry'
} }
@ -55,10 +65,7 @@ pipeline {
} }
stage('Deploy') { stage('Deploy') {
when { when {
anyOf { expression { PROTECTED_BRANCH }
branch 'master'
branch 'test'
}
} }
environment { environment {
CREDS = credentials('docker-registry') CREDS = credentials('docker-registry')

View File

@ -1,4 +1,4 @@
Copyright (C) 2016 - Juan Ferrer Toribio Copyright (C) 2024 - Verdnatura Levante SL
This package is free software; you can redistribute it and/or modify This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by

View File

@ -1,58 +1,35 @@
# Hedera # Hedera
Hedera is the main web shop page for Verdnatura. Hedera is the main web page for Verdnatura.
## Prerequisites ## Getting Started
Required applications. Required dependencies.
* PHP >= 8.4
* Node.js >= 20.0
Take a look to *debian/control* file to see additional dependencies. - PHP >= 7.0
- Node.js >= 18.0
Copy config.php to *config.my.php* and place your DB config there. Launch application for development.
### Installing dependencies and launching
Pull from repository.
Run this commands on project root directory to install Node dependencies.
``` ```
$ npm install $ quasar dev
``` ```
Install project dependences (debian/control). Launch Salix backend.
Pull from repository [php-vn-lib](https://gitea.verdnatura.es/verdnatura/php-vn-lib) and install [dependences](https://gitea.verdnatura.es/verdnatura/php-vn-lib/src/branch/master/debian/control) of this project.
Configure config.php file.
Launch project fronted.
```
$ npm run front
``` ```
Launch salix backend. pnpm run back
``` ```
$ npm run db
$ npm run back
```
Launch project backend.
```
$ php -S 127.0.0.1:3001 -t . index.php
```
### Command line
Run server side method from command line. Run server side method from command line.
``` ```
$ php hedera-web.php -m method_path php hedera-web.php -m method_path
``` ```
## Built with ## Built with
* [nodejs](https://nodejs.org/) - [Webpack](https://webpack.js.org/)
* [php](https://www.php.net/) - [MooTools](https://mootools.net/)
* [Webpack](https://webpack.js.org/) - [TinyMCE](https://www.tinymce.com/)
* [MooTools](https://mootools.net/)
* [TinyMCE](https://www.tinymce.com/)

41
app.js
View File

@ -1,41 +0,0 @@
__webpack_public_path__ = _PUBLIC_PATH;
import 'promise-polyfill/src/polyfill';
import 'hedera/hedera';
const locales = require('./import').locales;
const packageJson = require('./package.json');
window.onload = function() {
loadLocale(main);
}
function main() {
Vn.setVersion(packageJson.version);
const hederaWeb = new Hedera.App();
window.hederaWeb = hederaWeb;
hederaWeb.run();
}
function loadLocale(callback) {
Vn.Locale.init();
var lang = Vn.Locale.language;
var req = require.context('js', true, /locale\/en.yml$/);
onLocaleLoad(Vn.Locale.fallbackLang, req);
const loadFn = locales[lang];
if (loadFn)
loadFn(function(req) {
onLocaleLoad(lang, req);
callback();
});
else
callback();
}
function onLocaleLoad(lang, req) {
var keys = req.keys();
for (var i = 0; i < keys.length; i++)
Vn.Locale.add(req(keys[i]), lang);
}

14
babel.config.js Normal file
View File

@ -0,0 +1,14 @@
/* eslint-disable */
module.exports = api => {
return {
presets: [
[
'@quasar/babel-preset-app',
api.caller(caller => caller && caller.target === 'node')
? { targets: { node: 'current' } }
: {}
]
]
}
}

View File

@ -9,14 +9,26 @@
</IfModule> </IfModule>
<VirtualHost *:80> <VirtualHost *:80>
DocumentRoot /usr/share/hedera-web/ DocumentRoot /usr/share/hedera-web/spa
RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&)srv=([^&]+) [OR]
RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^/$ /usr/share/hedera-web/back/index.php [L]
</VirtualHost> </VirtualHost>
<Directory /usr/share/hedera-web/> <Directory /usr/share/hedera-web/back>
Options -Indexes -FollowSymLinks Options -Indexes -FollowSymLinks
AllowOverride None AllowOverride None
Require all granted Require all granted
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
</Directory>
<Directory /usr/share/hedera-web/spa>
Options -FollowSymLinks
AllowOverride None
Require all granted
<FilesMatch "\.(css|js|json|yml|php|xml|html|svg)$"> <FilesMatch "\.(css|js|json|yml|php|xml|html|svg)$">
SetOutputFilter DEFLATE SetOutputFilter DEFLATE

View File

@ -12,8 +12,6 @@
* *
* - http://www.mydomain.org -> config.www.php * - http://www.mydomain.org -> config.www.php
* - http://test.mydomain.org -> config.test.php * - http://test.mydomain.org -> config.test.php
*
* Put the password in base64.
*/ */
return [ return [
/** /**
@ -24,7 +22,7 @@ return [
,'port' => 3306 ,'port' => 3306
,'schema' => 'hedera' ,'schema' => 'hedera'
,'user' => 'hedera-web' ,'user' => 'hedera-web'
,'pass' => '' // base64 encoded ,'pass' => ''
,'tz' => 'Europe/madrid' ,'tz' => 'Europe/madrid'
] ]
]; ];

View File

@ -1,6 +1,6 @@
<?php <?php
require_once __DIR__.'/../php-vn-lib/env.php'; require_once __DIR__.'/../../php-vn-lib/env.php';
set_include_path(__DIR__.PATH_SEPARATOR.get_include_path()); set_include_path(__DIR__.PATH_SEPARATOR.get_include_path());

7
back/package.json Normal file
View File

@ -0,0 +1,7 @@
{
"name": "hedera-web-back",
"version": "24.50.16",
"description": "Verdnatura web page backend",
"license": "GPL-3.0",
"author": "Verdnatura Levante SL"
}

View File

@ -0,0 +1,5 @@
{
"InvalidAction": "Acció invàlida"
,"EmptyQuery": "Consulta buida"
}

View File

@ -0,0 +1,5 @@
{
"InvalidAction": "Invalid action"
,"EmptyQuery": "Empty query"
}

View File

@ -0,0 +1,7 @@
{
"InvalidAction": "Acción inválida"
,"EmptyQuery": "Consulta vacía"
,"Invalid password": "Contraseña inválida"
,"Password does not meet requirements":
"La nueva contraseña no reune los requisitos de seguridad necesarios"
}

View File

@ -0,0 +1,5 @@
{
"InvalidAction": "Action non valide"
,"EmptyQuery": "Requête vide"
}

View File

@ -0,0 +1,5 @@
{
"InvalidAction": "Ação Inválida"
,"EmptyQuery": "Consulta vazía"
}

View File

@ -1,7 +1,6 @@
<?php <?php
use Vn\Lib; use Vn\Lib;
use Vn\Lib\Locale;
use Vn\Web\Security; use Vn\Web\Security;
use Vn\Lib\Type; use Vn\Lib\Type;
@ -23,6 +22,8 @@ class Query extends Vn\Web\JsonRequest {
function run($db) { function run($db) {
$results = []; $results = [];
try {
$db->multiQuery($_REQUEST['sql']); $db->multiQuery($_REQUEST['sql']);
do { do {
@ -36,25 +37,38 @@ class Query extends Vn\Web\JsonRequest {
} }
while ($db->moreResults() && $db->nextResult()); while ($db->moreResults() && $db->nextResult());
// Checks for warnings
if ($db->checkWarnings() if ($db->checkWarnings()
&&($result = $db->query('SHOW WARNINGS'))) { &&($result = $db->query('SHOW WARNINGS'))) {
$sql = $sql = 'SELECT `description`, @warn `code`
'SELECT IFNULL(i.`description`, m.`description`) `description`, @warn `code` FROM `message` WHERE `code` = @warn';
FROM `message` m
LEFT JOIN `messageI18n` i
ON i.`code` = m.`code` AND i.lang = #
WHERE m.`code` = @warn';
while ($row = $result->fetch_object()) { while ($row = $result->fetch_object()) {
if ($row->Code == 1265 if ($row->Code == 1265
&& ($warning = $db->getObject($sql, [Locale::get()]))) &&($warning = $db->getObject($sql)))
trigger_error("{$warning->code}: {$warning->description}", E_USER_WARNING); trigger_error("{$warning->code}: {$warning->description}", E_USER_WARNING);
else else
trigger_error("{$row->Code}: {$row->Message}", E_USER_WARNING); trigger_error("{$row->Code}: {$row->Message}", E_USER_WARNING);
} }
} }
// Checks for errors
$db->checkError(); $db->checkError();
} catch (Vn\Db\Exception $e) {
if ($e->getCode() == 1644) {
$dbMessage = $e->getMessage();
$sql = 'SELECT `description` FROM `message` WHERE `code` = #';
$message = $db->getValue($sql, [$dbMessage]);
if ($message)
throw new Lib\UserException($message, $dbMessage);
}
throw $e;
}
return $results; return $results;
} }

21
back/rest/dms/invoice.php Normal file
View File

@ -0,0 +1,21 @@
<?php
use Vn\Web\Security;
use Vn\Web\Util;
use Vn\Lib;
class Invoice extends Vn\Web\RestRequest {
const PARAMS = ['invoice'];
const SECURITY = Security::INVOKER;
function run($db) {
$pdfPath = $db->getValueFromFile(__DIR__ .'/invoice',
['invoice' =>(int) $_GET['invoice']]);
if (!$pdfPath)
throw new Lib\UserException(s('Invoice id not found'));
Util::printFile($pdfPath);
}
}

View File

@ -0,0 +1,5 @@
SELECT CONCAT_WS('/', c.pdfsDir, vn.invoiceOut_getPath(#invoice))
FROM config c
JOIN myInvoice i
WHERE i.id = #invoice

View File

@ -8,7 +8,7 @@ class Clean extends Edi\Method {
$cleanPeriod = $db->getValue( $cleanPeriod = $db->getValue(
"SELECT ic.cleanPeriod "SELECT ic.cleanPeriod
FROM imapMultiConfig ic FROM imapConfig ic
JOIN util.config c ON c.environment = ic.environment"); JOIN util.config c ON c.environment = ic.environment");
$deleted = 0; $deleted = 0;

View File

@ -14,7 +14,7 @@ abstract class Method extends \Vn\Lib\Method {
$imapConf = $db->getRow( $imapConf = $db->getRow(
"SELECT ic.host, ic.user, ic.pass, ic.successFolder, ic.errorFolder "SELECT ic.host, ic.user, ic.pass, ic.successFolder, ic.errorFolder
FROM imapMultiConfig ic FROM imapConfig ic
JOIN util.config c ON c.environment = ic.environment"); JOIN util.config c ON c.environment = ic.environment");
$this->mailbox = sprintf('{%s/imap/ssl/novalidate-cert}', $this->mailbox = sprintf('{%s/imap/ssl/novalidate-cert}',

View File

@ -0,0 +1,29 @@
{
"Cant lock cache": "The cache could not be blocked"
,"Bad file format": "Unrecognized file format"
,"File not choosed": "You have not selected any file"
,"Permission denied": "You are not allowed to upload the file"
,"File upload error": "Failed to upload the file, check that size is not too large"
,"File save error": "Failed to save the file: %s"
,"File size error": "The file must be no longer than %.2f MB"
,"Bad file name": "The file name must contain only lowercase letters, digits or the '_' character"
,"Bad collection name": "Invalid collection name"
,"Collection not exists": "Collection does not exist"
,"Unreferenced file": "The file is not referenced by the database"
,"Cannot update matching id": "Cannot update matching id"
,"Com error": "Error communicating with the server"
,"Image open error": "Error opening the image file"
,"Operation disabled": "Operation disabled for security"
,"Image added": "Image added correctly"
,"ErrIniSize": "File exceeds the upload_max_filesize directive in php.ini"
,"ErrFormSize": "File exceeds the MAX_FILE_SIZE specified in the HTML form"
,"ErrPartial": "File was partially uploaded"
,"ErrNoFile": "No file was uploaded"
,"ErrNoTmpDir": "Missing a temporary folder"
,"ErrCantWrite": "Failed to write file to disk"
,"ErrExtension": "File upload stopped by extension"
,"ErrDefault": "Unknown upload error"
,"Sync complete": "Synchronization complete"
}

View File

@ -0,0 +1,29 @@
{
"Cant lock cache": "La caché no pudo ser bloqueada"
,"Bad file format": "Formato de archivo no reconocido"
,"File not choosed": "No has seleccionado ningún archivo"
,"Permission denied": "No tienes permiso para subir el fichero"
,"File upload error": "Error al subir el fichero, comprueba que su tamaño no sea demasiado grande"
,"File save error": "Error al guardar el fichero: %s"
,"File size error": "El fichero no debe ocupar más de %.2f MB"
,"Bad file name": "El nombre del archivo solo debe contener letras minúsculas, dígitos o el carácter '_'"
,"Bad collection name": "Nombre de colección no válido"
,"Collection not exists": "La colección no existe"
,"Unreferenced file": "El archivo no está referenciado por la base de datos"
,"Cannot update matching id": "No es posible actualizar los ítems con id coincidente"
,"Com error": "Error en la comunicación con el servidor"
,"Image open error": "Error al abrir el archivo de imagen"
,"Operation disabled": "Operación deshabilitada por seguridad"
,"Image added": "Imagen añadida correctamente"
,"ErrIniSize": "File exceeds the upload_max_filesize directive in php.ini"
,"ErrFormSize": "File exceeds the MAX_FILE_SIZE specified in the HTML form"
,"ErrPartial": "File was partially uploaded"
,"ErrNoFile": "No file was uploaded"
,"ErrNoTmpDir": "Missing a temporary folder"
,"ErrCantWrite": "Failed to write file to disk"
,"ErrExtension": "File upload stopped by extension"
,"ErrDefault": "Unknown upload error"
,"Sync complete": "Sincronización completada"
}

View File

@ -0,0 +1,29 @@
{
"Cant lock cache": "O cache não pôde ser bloqueado"
,"Bad file format": "Formato de arquivo inválido"
,"File not choosed": "Não selecionastes nenhum arquivo"
,"Permission denied": "Não estas autorizado a subir o arquivo"
,"File upload error": "Erro ao subir o arquivo, verifique o tamanho"
,"File save error": "Erro ao salvar o arquivo: %s"
,"File size error": "O arquivo não deve ser maior que: %.2f MB"
,"Bad file name": "O nome do arquivo deve conter somente letras minusculas, numeros ou '_' "
,"Bad collection name": "Nome de coleção inválido"
,"Collection not exists": "Coleção não existe"
,"Unreferenced file": "O arquivo não é referenciado pelo banco de dados"
,"Cannot update matching id": "Não é possível atualizar os itens com id coincidente"
,"Com error": "Erro de comunicação com o servidor"
,"Image open error": "Erro ao abrir a imagem"
,"Operation disabled": "Operação desativada por segurança"
,"Image added": "Imagem adicionada corretamente"
,"ErrIniSize": "Arquivo supera o tamanho maximo de protocolo em php.ini"
,"ErrFormSize": "Arquivo supera o tamanho maximo de protocolo em HTML form"
,"ErrPartial": "Arquivo subido parcialmente"
,"ErrNoFile": "Nenhum arquivo subido"
,"ErrNoTmpDir": "Falta a pasta de arquivo temporal"
,"ErrCantWrite": "Erro ao gravar arquivo no disco"
,"ErrExtension": "Erro de extensão do arquivo"
,"ErrDefault": "Erro desconhecido ao subir arquivo"
,"Sync complete": "Sincronização completa"
}

View File

@ -101,6 +101,12 @@ class Upload extends Vn\Web\JsonRequest {
$symbolicSrc = "../full/$fileName"; $symbolicSrc = "../full/$fileName";
$image = Image::create($tmpName); $image = Image::create($tmpName);
Image::resizeSave($image, $fullFile, $info['maxHeight'], $info['maxWidth']);
foreach ($info['sizes'] as $size => $i) {
$dstFile = "$collectionPath/$size/$fileName";
Image::resizeSave($image, $dstFile, $i['height'], $i['width'], $i['crop'], $symbolicSrc);
}
$query = $query =
"INSERT INTO `image` "INSERT INTO `image`
@ -115,13 +121,6 @@ class Upload extends Vn\Web\JsonRequest {
'name' => $name 'name' => $name
]); ]);
Image::resizeSave($image, $fullFile, $info['maxHeight'], $info['maxWidth']);
foreach ($info['sizes'] as $size => $i) {
$dstFile = "$collectionPath/$size/$fileName";
Image::resizeSave($image, $dstFile, $i['height'], $i['width'], $i['crop'], $symbolicSrc);
}
imagedestroy($image); imagedestroy($image);
unlink($tmpName); unlink($tmpName);
return TRUE; return TRUE;

View File

@ -0,0 +1,41 @@
<?php
/**
* Ejemplo:
* <Cube><Cube time="2010-12-10"><Cube currency="USD" rate="1.3244"/>
*/
class ExchangeRate extends Vn\Lib\Method {
function run($db) {
$db->selectDb('vn2008');
// Indica la URL del archivo
$xml = new SimpleXMLElement(
'http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml', 0, TRUE);
$date = $db->getValue("SELECT MAX(date) fecha FROM reference_rate");
$maxDate = $date ? DateTime::createFromFormat('Y-m-d', $date) : NULL;
foreach ($xml->Cube[0]->Cube as $cube) {
$xmlDate = new DateTime($cube['time']);
// Si existen datos más recientes de la máxima fecha los añade
if ($maxDate <= $xmlDate)
foreach ($cube->Cube as $subCube)
if ($subCube['currency'] == 'USD') {
$params = [
'date' => $xmlDate,
'rate' => $subCube['rate']
];
$db->query(
'REPLACE INTO reference_rate(moneda_id, date, rate)
VALUES(2, #date, #rate)',
$params
);
}
}
$db->queryFromFile(__DIR__.'/exrate-add');
}
}

View File

@ -0,0 +1,6 @@
INSERT INTO reference_rate (moneda_id, date, rate)
SELECT 2, TIMESTAMPADD (DAY, 1, r1.date), r1.rate
FROM reference_rate r1
LEFT JOIN reference_rate r2
ON TIMESTAMPADD(DAY, 1, r1.date) = r2.date
WHERE r2.date IS NULL AND r1.date < TIMESTAMPADD (DAY, -2, CURDATE())

View File

@ -0,0 +1,6 @@
{
"An automated message could not be delivered": "Un mensaje automatizado no se ha podido entregar"
,"Notification from IT department about problem.": "Desde el departamento de informática te enviamos este correo porque ha habido un problema al intentar entregar un correo automatizado."
,"If you have questions, resend this email to cau@verdnatura.es.": "Si tienes dudas, reenvia este correo a cau@verdnatura.es."
,"The response from the remote server was:": "La respuesta del servidor remoto ha sido:"
}

View File

@ -48,13 +48,13 @@ class Mail extends Vn\Lib\Method {
if ($row->replyTo) { if ($row->replyTo) {
Vn\Lib\Locale::set('es'); Vn\Lib\Locale::set('es');
$errorMsg = $errorMsg =
'<p>'. s('ITProblemNotification') .'</p>' '<p>'. s('Notification from IT department about problem.') .'</p>'
.'<p>'. s('ifQuestionsResendEmailToIT') .'</p>' .'<p>'. s('If you have questions, resend this email to cau@verdnatura.es.') .'</p>'
.'<p style="color: gray">'. $status .'</p>'; .'<p style="color: gray">'. $status .'</p>';
$errorMail = $mailer->createObject($row->replyTo, $errorMail = $mailer->createObject($row->replyTo,
$errorMsg, $errorMsg,
s('automatedMessageNotDelivered') s('An automated message could not be delivered')
); );
$errorMail->AddStringAttachment( $errorMail->AddStringAttachment(
$mail->getSentMIMEMessage(), $mail->getSentMIMEMessage(),

View File

@ -48,13 +48,13 @@ class JsonService extends RestService {
$json = new JsonException(); $json = new JsonException();
if (_ENABLE_DEBUG || $errno & $eUser) { if (_ENABLE_DEBUG || $errno & $eUser)
$json->message = $message; $json->message = $message;
$json->code = $errno; else
} else
$json->message = s('Something went wrong'); $json->message = s('Something went wrong');
if (_ENABLE_DEBUG) { if (_ENABLE_DEBUG) {
$json->code = $errno;
$json->file = $file; $json->file = $file;
$json->line = $line; $json->line = $line;
} }
@ -79,13 +79,13 @@ class JsonService extends RestService {
if (_ENABLE_DEBUG || $e instanceof Lib\UserException) { if (_ENABLE_DEBUG || $e instanceof Lib\UserException) {
$json->exception = get_class($e); $json->exception = get_class($e);
$json->message = $e->getMessage(); $json->message = $e->getMessage();
$json->code = $e->getCode();
} else { } else {
$json->exception = 'Exception'; $json->exception = 'Exception';
$json->message = s('Something went wrong'); $json->message = s('Something went wrong');
} }
if (_ENABLE_DEBUG) { if (_ENABLE_DEBUG) {
$json->code = $e->getCode();
$json->file = $e->getFile(); $json->file = $e->getFile();
$json->line = $e->getLine(); $json->line = $e->getLine();
$json->trace = $e->getTrace(); $json->trace = $e->getTrace();

View File

@ -5,7 +5,6 @@ namespace Vn\Web;
require_once 'libphp-phpmailer/autoload.php'; require_once 'libphp-phpmailer/autoload.php';
use Vn\Lib\UserException; use Vn\Lib\UserException;
use PHPMailer\PHPMailer\PHPMailer;
class Mailer { class Mailer {
private $conf; private $conf;
@ -20,7 +19,7 @@ class Mailer {
function createObject($mailTo, $body, $subject) { function createObject($mailTo, $body, $subject) {
$conf = $this->conf; $conf = $this->conf;
$mail = new PHPMailer(); $mail = new \PHPMailer();
$mail->isSMTP(); $mail->isSMTP();
$mail->Host = $conf->host; $mail->Host = $conf->host;

View File

@ -50,22 +50,9 @@ class RestService extends Service {
try { try {
$res = $method->run($methodDb); $res = $method->run($methodDb);
} catch (\Vn\Db\Exception $e) { } catch (Db\Exception $e) {
if ($e->getCode() == 1644) { if ($e->getCode() == 1644)
$eMessage = $e->getMessage(); throw new UserException(s($e->getMessage()));
$tMessage = $db->getValue(
'SELECT IFNULL(i.`description`, m.`description`) `description`
FROM `message` m
LEFT JOIN `messageI18n` i
ON i.`code` = m.`code` AND i.lang = #
WHERE m.`code` = #',
[Locale::get(), $eMessage]
);
if (!$tMessage) $tMessage = $eMessage;
throw new Lib\UserException($tMessage, $eMessage);
}
throw $e;
} }
if ($method::SECURITY == Security::DEFINER) if ($method::SECURITY == Security::DEFINER)

View File

@ -158,10 +158,8 @@ abstract class Service {
[$token] [$token]
); );
if (!$userId) { if (!$userId)
$_SESSION['user'] = null;
throw new SessionExpiredException(); throw new SessionExpiredException();
}
$anonymousUser = FALSE; $anonymousUser = FALSE;
$user = $db->getValue( $user = $db->getValue(
@ -177,11 +175,9 @@ abstract class Service {
[$user] [$user]
); );
if (!$isActive) { if (!$isActive)
$_SESSION['user'] = null;
throw new UserDisabledException(); throw new UserDisabledException();
} }
}
$db->query('CALL account.myUser_loginWithName(#)', [$user]); $db->query('CALL account.myUser_loginWithName(#)', [$user]);
@ -191,6 +187,7 @@ abstract class Service {
$_SESSION['user'] = $user; $_SESSION['user'] = $user;
// Registering the user access // Registering the user access
if (isset($_SESSION['access']) && $userChanged) if (isset($_SESSION['access']) && $userChanged)
$db->query( $db->query(
'CALL visitUser_new(#, #)', 'CALL visitUser_new(#, #)',

View File

@ -3,7 +3,6 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=no"/>
<title>Not available - Verdnatura</title> <title>Not available - Verdnatura</title>
<style type="text/css"> <style type="text/css">
body { body {
@ -23,7 +22,7 @@
font-weight: normal; font-weight: normal;
} }
div a { div a {
color: #6a1; color: #2962FF;
text-decoration: none; text-decoration: none;
} }
</style> </style>

32
cypress.config.js Normal file
View File

@ -0,0 +1,32 @@
const { defineConfig } = require('cypress');
module.exports = defineConfig({
e2e: {
baseUrl: 'http://localhost:8080/',
supportFile: 'src/test/cypress/support/index.js',
fixturesFolder: 'src/test/cypress/fixtures',
specPattern: 'src/test/cypress/integration/**/*.spec.js',
viewportHeight: 660,
viewportWidth: 1240,
experimentalMemoryManagement: true,
numTestsKeptInMemory: 0,
video: false,
screenshotOnRunFailure: false,
reporter: 'cypress-mochawesome-reporter',
reporterOptions: {
charts: true,
reportPageTitle: 'Hedera-Web E2E Reporter',
embeddedScreenshots: true,
reportDir: 'src/test/cypress/reports',
inlineAssets: true
},
setupNodeEvents (on, config) {
require('cypress-mochawesome-reporter/plugin')(on);
on('after:spec', (spec, results) => {
console.log('Finished running', spec.relative);
console.log('❌spec:', results.stats.failures);
console.log('✅spec:', results.stats.passes);
});
}
}
});

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (24.14.11) stable; urgency=low hedera-web (24.50.16) stable; urgency=low
* Initial Release. * Initial Release.

2
debian/control vendored
View File

@ -10,7 +10,7 @@ Vcs-Git: https://gitea.verdnatura.es/verdnatura/hedera-web
Package: hedera-web Package: hedera-web
Architecture: all Architecture: all
Depends: apache2 | httpd, nodejs, php-cli, php-vn-lib, php-apcu, php-imap, php-soap, libphp-phpmailer, php-gd, php-pear Depends: apache2 | httpd, nodejs, php-cli, php-vn-lib, php-apcu, php-imap, php-soap, libphp-phpmailer, php-gd, php-pear
Suggests: php-image-text, php-text-captcha, php-zip, cron Suggests: php-text-captcha, php-zip, cron
Section: misc Section: misc
Priority: optional Priority: optional
Description: Verdnatura's web page Description: Verdnatura's web page

2
debian/cron.d vendored
View File

@ -1,8 +1,10 @@
MAILTO=webmaster MAILTO=webmaster
*/1 * * * * root hedera-web.php -m misc/mail */1 * * * * root hedera-web.php -m misc/mail
*/4 * * * * root hedera-web.php -m tpv/confirm-mail
*/2 * * * * root hedera-web.php -m edi/load */2 * * * * root hedera-web.php -m edi/load
0 23 * * * root hedera-web.php -m edi/clean 0 23 * * * root hedera-web.php -m edi/clean
0 5 * * * root hedera-web.php -m edi/update 0 5 * * * root hedera-web.php -m edi/update
0 5 * * * root hedera-web.php -m misc/exchange-rate
0 0 * * * root hedera-web.php -m image/sync 0 0 * * * root hedera-web.php -m image/sync
0 1 * * * root /usr/share/hedera-web/utils/image-clean.sh > /dev/null 0 1 * * * root /usr/share/hedera-web/utils/image-clean.sh > /dev/null
0 */1 * * * root /usr/share/hedera-web/utils/update-browscap.sh > /dev/null 0 */1 * * * root /usr/share/hedera-web/utils/update-browscap.sh > /dev/null

29
debian/install vendored
View File

@ -1,19 +1,12 @@
apache.conf etc/hedera-web back/apache.conf etc/hedera-web
config.php etc/hedera-web back/config.php etc/hedera-web
php.ini etc/hedera-web back/php.ini etc/hedera-web
web usr/share/php/vn back/web usr/share/php/vn
doc/* usr/share/doc/hedera-web back/index.php usr/share/hedera-web/back
hedera-web.php usr/share/hedera-web back/hedera-web.php usr/share/hedera-web/back
forms usr/share/hedera-web back/rest usr/share/hedera-web/back
image usr/share/hedera-web back/package.json usr/share/hedera-web/back
js usr/share/hedera-web dist/spa/* usr/share/hedera-web/spa
pages usr/share/hedera-web build-deps/node_modules usr/share/hedera-web/spa
reports usr/share/hedera-web back/utils usr/share/hedera-web
rest usr/share/hedera-web
utils usr/share/hedera-web
index.php usr/share/hedera-web
package.json usr/share/hedera-web
build usr/share/hedera-web
README.md usr/share/hedera-web README.md usr/share/hedera-web
webpack.config.json usr/share/hedera-web
build-deps/node_modules usr/share/hedera-web

4
debian/links vendored
View File

@ -1,3 +1,3 @@
usr/share/hedera-web/hedera-web.php usr/bin/hedera-web.php usr/share/hedera-web/back/hedera-web.php usr/bin/hedera-web.php
etc/hedera-web/apache.conf etc/apache2/conf-available/hedera-web.conf etc/hedera-web/apache.conf etc/apache2/conf-available/hedera-web.conf
etc/hedera-web/php.ini etc/php/8.2/apache2/conf.d/99-hedera-web.ini etc/hedera-web/php.ini etc/php/7.0/apache2/conf.d/99-hedera-web.ini

6
debian/rules vendored
View File

@ -10,9 +10,9 @@ clean:
dh_clean $@ dh_clean $@
build: build:
npm install --no-audit --prefer-offline pnpm install --prefer-offline
npm --omit=dev run build pnpm exec quasar build
mkdir -p build-deps mkdir -p build-deps
cp package.json package-lock.json build-deps cp package.json build-deps
(cd build-deps && npm install --omit=dev --no-audit --prefer-offline) (cd build-deps && npm install --omit=dev --no-audit --prefer-offline)

Binary file not shown.

View File

@ -1,43 +0,0 @@
import './style.scss';
export default new Class({
Extends: Hedera.Form,
Template: require('./ui.xml')
,activate() {
this.$.userModel.setInfo('c', 'myClient', 'hedera');
this.$.addresses.setInfo('a', 'myAddress', 'hedera');
}
,onAddAddressClick() {
this.hash.setAll({
form: 'account/address',
address: 0
});
}
,onReturnClick() {
window.history.back();
}
,onSetDefaultClick(event, addressId) {
if (event.defaultPrevented) return;
this.$.defaultAddress.value = addressId;
Htk.Toast.showMessage(_('DefaultAddressModified'));
}
,async onRemoveAddressClick(form) {
if (confirm(_('AreYouSureDeleteAddress'))) {
await form.set('isActive', false);
await form.refresh();
}
}
,onEditAddressClick(address) {
this.hash.setAll({
form: 'account/address',
address
});
}
});

View File

@ -1,8 +0,0 @@
Addresses: Adreces
Return: Tornar
AddAddress: Afegir adreça
SetAsDefault: Establir com per defecte
RemoveAddress: Esborrar direcció
EditAddress: Modificar direcció
AreYouSureDeleteAddress: Estàs segur de que vols eliminar la direcció?
DefaultAddressModified: Adreça per defecte modificada

View File

@ -1,8 +0,0 @@
Addresses: Addresses
Return: Return
AddAddress: Add address
SetAsDefault: Set as default
RemoveAddress: Remove address
EditAddress: Edit address
AreYouSureDeleteAddress: Are you sure you want to delete the address?
DefaultAddressModified: Default address modified

View File

@ -1,8 +0,0 @@
Addresses: Direcciones
Return: Volver
AddAddress: Añadir dirección
SetAsDefault: Establecer como predeterminada
RemoveAddress: Borrar dirección
EditAddress: Modificar dirección
AreYouSureDeleteAddress: ¿Estás seguro de que quieres borrar la dirección?
DefaultAddressModified: Dirección por defecto modificada

View File

@ -1,8 +0,0 @@
Addresses: Adresses
Return: Retour
AddAddress: Ajouter une adresse
SetAsDefault: Définir par défaut
RemoveAddress: Supprimer l'adresse
EditAddress: Changement d'adresse
AreYouSureDeleteAddress: Souhaitez-vous vraiment supprier l'adresse?
DefaultAddressModified: Adresse par défaut modifiée

View File

@ -1,8 +0,0 @@
Addresses: Moradas
Return: Voltar
AddAddress: Adicionar Morada
SetAsDefault: Selecionar como pre-determinado
RemoveAddress: Eliminar Morada
EditAddress: Modificar Morada
AreYouSureDeleteAddress: Tens certeza que queres eliminar esta morada?
DefaultAddressModified: Endereço padrão modificado

View File

@ -1,6 +0,0 @@
hedera-address-list {
.htk-list .side {
padding-right: 16px;
}
}

View File

@ -1,70 +0,0 @@
<vn>
<vn-group>
<db-form id="user-form">
<db-model property="model" id="user-model" updatable="true">
SELECT id, defaultAddressFk
FROM myClient c
</db-model>
</db-form>
<db-model id="addresses" updatable="true">
SELECT a.id, a.nickname, p.name province, a.postalCode,
a.city, a.street, a.isActive
FROM myAddress a
LEFT JOIN vn.province p ON p.id = a.provinceFk
WHERE a.isActive
</db-model>
</vn-group>
<div id="title">
<h1><t>Addresses</t></h1>
</div>
<div id="actions">
<htk-bar-button
icon="add"
tip="_AddAddress"
on-click="this.onAddAddressClick()"/>
</div>
<div id="form" class="hedera-address-list">
<div class="box vn-w-sm">
<htk-radio-group
id="default-address"
column="defaultAddressFk"
form="user-form"/>
<htk-repeater model="addresses" form-id="address" class="htk-list">
<custom>
<div class="item clickable" on-click="this.onSetDefaultClick($event, address.id)">
<div class="side">
<htk-radio
radio-group="default-address"
val="{{address.id}}"
tip="_SetAsDefault"
name="test"/>
</div>
<div class="content">
<p class="important">
{{address.nickname}}
</p>
<p>
{{address.street}}
</p>
<p>
{{address.postalCode}}, {{address.city}}
</p>
</div>
<div
class="actions"
on-click="$event.preventDefault()">
<htk-button
icon="delete"
tip="_RemoveAddress"
on-click="this.onRemoveAddressClick($iter)"/>
<htk-button
icon="edit"
tip="_EditAddress"
on-click="this.onEditAddressClick(address.id)"/>
</div>
</div>
</custom>
</htk-repeater>
</div>
</div>
</vn>

View File

@ -1,20 +0,0 @@
export default new Class({
Extends: Hedera.Form,
Template: require('./ui.xml'),
activate() {
this.$.model.setInfo('a', 'myAddress', 'hedera', ['id'], 'id');
this.$.model.setDefault('clientFk', 'a',
new Sql.Function({schema: 'account', name: 'myUser_getId'}));
},
onStatusChange() {
if (this.$.iter.ready && this.hash.$.address == 0)
this.$.iter.insertRow();
},
onOperationsDone() {
Htk.Toast.showMessage(_('AddressChangedSuccessfully'));
window.history.back()
}
});

View File

@ -1,10 +0,0 @@
AddEditAddress: Afegir o modificar adreça
Name: Consignatari
Address: Direcció
City: Ciutat
ZipCode: Codi postal
Country: País
Province: Província
Return: Tornar
Accept: Acceptar
AddressChangedSuccessfully: Adreça modificada correctament

View File

@ -1,10 +0,0 @@
AddEditAddress: Add or edit address
Name: Consignee
Address: Address
City: City
ZipCode: Zip code
Country: Country
Province: Province
Return: Return
Accept: Accept
AddressChangedSuccessfully: Address changed successfully

Some files were not shown because too many files have changed in this diff Show More