2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-12 21:57:50 +00:00
Commit Graph

52 Commits

Author SHA1 Message Date
Vjacheslav Trushkin
33b8510a1c fix(loadIcon): do not attempt to load invalid icons 2022-09-21 12:16:17 +03:00
Vjacheslav Trushkin
ac009bcb39 Replace jest done function with promises in core tests 2022-09-07 20:03:58 +03:00
Vjacheslav Trushkin
a5c9edb4da Store partial icon data in storage to reduce memory usage 2022-07-02 10:53:06 +03:00
Vjacheslav Trushkin
34d0ced20f More code optimisations 2022-06-29 19:05:55 +03:00
Vjacheslav Trushkin
d0d491b066 Invalidate browser cache based on lastModified property from icon set 2022-06-29 16:11:16 +03:00
Vjacheslav Trushkin
2adcb7368b Function to iterate browser storage 2022-06-29 12:30:13 +03:00
Vjacheslav Trushkin
c1c849a61c Reuse storage for API data, clean up build scripts 2022-06-29 09:45:30 +03:00
Vjacheslav Trushkin
882be420f9 Use browser storage with API 2022-06-28 23:40:20 +03:00
Vjacheslav Trushkin
0e0b6b66ef Complete restructure of browser storage 2022-06-28 22:37:23 +03:00
Vjacheslav Trushkin
7980cce929 More browser storage restructuring 2022-06-28 22:11:15 +03:00
Vjacheslav Trushkin
a4240f122a Restructure browser storage code 2022-06-28 21:16:08 +03:00
Vjacheslav Trushkin
7ca4026eb6 Use Set to mark icons as missing 2022-06-28 20:20:22 +03:00
Vjacheslav Trushkin
59bdbe89e0 Move browser cache config to separate file 2022-06-28 19:12:45 +03:00
Vjacheslav Trushkin
6d1ec83912 Update core package 2022-06-19 17:28:03 +03:00
Vjacheslav Trushkin
2c2a9647fa Remove getIconFromStorage, change getIconData to return null if icon is marked as missing 2022-04-29 22:59:34 +03:00
Vjacheslav Trushkin
70ed79a516 Use URLSearchParams for API queries 2022-03-31 19:02:49 +03:00
Vjacheslav Trushkin
1736308a64 Move browser storage mock to source in core 2022-03-16 23:50:53 +02:00
Vjacheslav Trushkin
3f89dd6cec Fix linting errors in tests in core 2022-03-16 23:30:16 +02:00
Vjacheslav Trushkin
41afe33976 Fix tsconfig in core, specify config when clearing jest cache 2022-03-16 16:10:14 +02:00
Vjacheslav Trushkin
efd0038aff Use unbuild to build core package 2022-03-14 18:12:01 +02:00
Vjacheslav Trushkin
194ec91f87 Test loading icon set with valid prefix, but invalid icon names 2022-01-26 00:06:11 +02:00
Vjacheslav Trushkin
2e838b5ff4 Update core package for new redundancy structure 2022-01-25 22:18:52 +02:00
Vjacheslav Trushkin
bf8d17f97a Add loadIcon function 2022-01-13 22:19:49 +02:00
Vjacheslav Trushkin
c1b22647eb Few more changes to parseIconSet function to make it cleaner 2021-10-12 18:19:46 +03:00
Vjacheslav Trushkin
c28ad01412 Remove combined exports from core, they make it more difficult to use ES named exports 2021-09-24 18:38:52 +03:00
Vjacheslav Trushkin
e6951fef7c Support ES modules in core package, switch tests to Jest and Jasmine 2021-09-24 00:27:16 +03:00
Vjacheslav Trushkin
e6f69c6901 Merge branch 'dev/reusable-api' into dev/next 2021-09-20 16:33:57 +03:00
Vjacheslav Trushkin
027a317e4e Create script for building ES and CommonJS libraries, move Utils and Core to new build process, move Redundancy package to monorepo and refactor it 2021-09-20 12:59:16 +03:00
Vjacheslav Trushkin
7143e4abbd Support hosts in mock API module, allow host specific API modules 2021-09-12 21:01:33 +03:00
Vjacheslav Trushkin
96ced6e5de Rewite API handling and export reusable _api.sendQuery function that can be used without adding API provider first 2021-09-05 19:09:25 +03:00
Vjacheslav Trushkin
a5f8282df2 Redo internal API exports to make API functions reusable 2021-09-01 11:34:58 +03:00
Vjacheslav Trushkin
fbb836d3c0 Split API queries into icons and custom queries 2021-08-30 10:22:53 +03:00
Vjacheslav Trushkin
712e620e9a Test mismatched API provider in API response 2021-06-15 18:48:31 +03:00
Vjacheslav Trushkin
dee8562c7f Move few more functions from Core to Utils, update packages 2021-05-26 10:01:23 +03:00
Vjacheslav Trushkin
85a3717618 Move few more functions from Core to Utils 2021-05-24 17:02:00 +03:00
Vjacheslav Trushkin
ebeb8de02c Split common functions from Core to Utils package, remove buble from build process and use spread operator 2021-05-24 13:25:02 +03:00
Vjacheslav Trushkin
46ae993b95 Fix incorrect transformations for negative rotation, for merging icon and customisation rotations, better code for merging customisations 2021-05-11 21:03:10 +03:00
Vjacheslav Trushkin
b46498b8fd Refectoring React: working API component 2021-04-27 19:21:35 +03:00
Vjacheslav Trushkin
31ceb48b6e Create mock API module in core to allow testing API in components 2021-04-25 11:21:59 +03:00
Vjacheslav Trushkin
44692efcb5 Handle 404 errors in API in core by marking icons as missing 2021-04-24 22:41:54 +03:00
Vjacheslav Trushkin
a846dbcc8c Support storage for simple names without provider and prefix 2021-04-23 23:31:36 +03:00
Vjacheslav Trushkin
8903221391 Split type and value imports in core 2020-12-25 21:03:15 +02:00
Vjacheslav Trushkin
d9303423d1 Organize exported functions in reusable modules to make it easier to manage multiple implementations 2020-12-22 14:49:02 +02:00
Vjacheslav Trushkin
1e3ffd7984 Remove getIconName function, add optional validation to stringToIcon 2020-12-21 19:33:08 +02:00
Vjacheslav Trushkin
5f285fcf14 Split common storage functions into separate file with reusable interface 2020-12-21 17:15:45 +02:00
Vjacheslav Trushkin
9e2e2d315e Refactor addCollection in core: move it to separate reusable function. Publish RC.1 2020-09-03 14:11:17 +03:00
Vjacheslav Trushkin
c9cfa55bb4 Update dependencies for core, remove debug code that was added by mistake, publish new version 2020-08-26 18:34:53 +03:00
Vjacheslav Trushkin
19312fe1dd Move listIcons to core, add unit tests 2020-08-14 12:01:47 +03:00
Vjacheslav Trushkin
eea235f97d Slightly change API providers behavior, import providers from IconifyProviders global 2020-05-31 09:44:24 +03:00
Vjacheslav Trushkin
2aad697264 Implement icon providers (similar to namespaces) 2020-05-29 22:08:45 +03:00