Commit graph

31 commits

Author SHA1 Message Date
barredterra
41a28e7381 fix: load crowdin script using https 2024-03-27 13:15:53 +01:00
barredterra
90610a7e8e feat: In-Context Translation 2024-03-27 12:53:15 +01:00
Corentin Flr
2b00309d94
fix(app.html): Add charset="UTF-8" meta first in head 2023-11-23 15:21:00 +01:00
Ankush Menat
428d78a491 chore: move svg icons to end and correct version 2023-09-23 15:17:05 +05:30
Ankush Menat
d7a9d0111c
perf: lazy load SVG icons (#22517)
| Metric                             | Before | After | Change    |
| ---                                | ---    | ---   | ---       |
| app.html first response size       | 421kb  | 106kb | -75% (!)  |
| First response duration            | 60ms   | 40ms  | -33%      |

huge thanks to @cogk for doing most of the work for this PR on this issue: https://github.com/frappe/frappe/issues/17449#issuecomment-1728328726

Co-authored-by: Corentin Flr <10946971+cogk@users.noreply.github.com>
2023-09-23 15:13:43 +05:30
Ankush Menat
8635daf425
fix: duplicate icons (#22516) 2023-09-23 12:51:20 +05:30
Maharshi Patel
37f03069bf
Merge branch 'develop' into feat-desk-refresh 2023-09-20 22:24:33 +05:30
Corentin Flr
41d30e7213
feat: Add custom icons with the app_include_icons hook (#22254)
* feat: Add custom icons with the `app_include_icons` hook

These custom icons are available on the desk only. They can be picked in the `ControlIcon` picker.

Co-authored-by: Abraham Kalungi <85731451+kalungia@users.noreply.github.com>

* fix: skip conf for including icons

* test: Fix test_include_icons

---------

Co-authored-by: Abraham Kalungi <85731451+kalungia@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2023-09-20 20:23:17 +05:30
Maharshi Patel
0343f0d1f3 fix: add espresso icons
added espresso icons svg sprite and loaded them in base and app
2023-08-15 14:08:01 +05:30
Ankush Menat
1eabd21bb8
chore!: remove mixpanel code (#21112) 2023-05-25 17:10:43 +05:30
Babuuu
607b83de5c
fix: Change page title to app name. (#19247)
[skip ci]
2022-12-13 12:06:01 +05:30
Suraj Shetty
9f2dfbe980 chore: Fix merge error 2022-06-21 09:06:34 +05:30
Suraj Shetty
49bee3a912
Merge branch 'develop' into fix-login-ux 2022-06-21 09:02:14 +05:30
Suraj Shetty
245302dc7a refactor: Rename icon symbol filename from symbol-defs.svg to icons.svg 2022-06-21 08:07:51 +05:30
Ankush Menat
d6f2d34bf4 perf: send boot string instead of JSON literal
changes:

- compact boot info in /app HTML
    /app size went from 451kb to 393kb - ~13% less
    Verified that regex applied on this JSON aren't affecting perf, infact
    found them to be faster with compact JSON.

- Send json string instead of placing JSON literal in code using Jinja.
  JS takes more time to pass object literal than parsing a plain JSON string.

Overall content transfer size remains roughly same (albeit slightly
lower) since double escaping ends up adding extra `\` around quotes.

Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
2022-06-21 07:53:48 +05:30
Suraj Shetty
d7fe7ae39c perf(UX): Load splash screen immediately after login 2022-06-21 07:02:58 +05:30
Sagar Vora
0f98f8a3a4 fix: dont create copy of object 2021-12-16 17:36:57 +05:30
Sagar Vora
774b1dcd07 perf: improve translation speed 2021-12-16 13:10:41 +05:30
Suraj Shetty
3129e4d8ab feat: Add auto theme switcher
- Removed redundant code
- Added theme mode change listener to update theme realtime
2021-11-17 13:14:54 +05:30
Suraj Shetty
31d8436979 refactor: Rename dir to layout_direction
- For readability
2021-06-28 12:04:57 +05:30
Suraj Shetty
40dd522796 feat: Auto generate RTL styles using rtlcss
https://github.com/MohammadYounes/rtlcss
2021-06-25 13:06:09 +05:30
Faris Ansari
adc236e35d feat: Notify build events to browser
- Update assets_json directly from node
- Show error overlay or success message
- Open file in editor from error overlay
2021-05-01 16:02:49 +05:30
Faris Ansari
dd69f1ab43 fix: Hash based file naming
- For better HTTP caching and cache busting
- assets.json is created under [app]/dist folder which contains the map
of input file and output file name, this is used to get the correct path for
bundled assets
2021-04-29 13:30:07 +05:30
Faris Ansari
34c6d099b1 fix: Update all /assets urls with new urls 2021-04-24 16:24:08 +05:30
Faris Ansari
63771417a2 fix: style, script, assets_url jinja helpers
Jinja helpers to load js, css assets
2021-04-23 08:07:47 +05:30
Faris Ansari
226ad1d91a feat: New Build System based on esbuild
- Deprecate use of build.json
- *.bundle.js files placed anywhere in the public folder are bundled
- Built files are created in public/build folder which is gitignored

WIP
2021-04-22 07:01:36 +05:30
Suraj Shetty
caaed1a4e5 fix: Move data-theme attribute to root (html)
- So that the HTML background matches with the theme background color
2021-03-07 13:22:28 +05:30
Suraj Shetty
ce117d4aee
fix: Miscellaneous Changes (#12397) 2021-02-15 13:23:51 +05:30
Suraj Shetty
603018ef53
perf: Load workspace faster (#12364) 2021-02-12 19:10:44 +05:30
Suraj Shetty
b8bd622cc8 feat: Add local inter font 2020-11-12 16:26:51 +05:30
Rushabh Mehta
75fe8a615a feat(app): move /desk to /app 2020-11-11 16:31:47 +05:30
Renamed from frappe/www/desk.html (Browse further)