Trevor Buckner
31352e417f
Simplify folding logic
2024-08-08 17:48:32 -04:00
Trevor Buckner
643af98ca3
Add comment
2024-08-08 17:44:16 -04:00
Trevor Buckner
3b61cd355f
Fix edge case where string was emitting data: twice.
...
Also, a case where the input is right around 50 chars. It can be truncated twice, leading to a long `.....`
2024-08-08 17:43:57 -04:00
David Bolack
423a4a521a
Correct truncation when looking for data: in css folding
2024-08-02 15:25:41 -05:00
David Bolack
05d4d5b1ff
Revert "Correct truncation when looking for data: in css folding"
...
This reverts commit ad1e8d50d7 .
2024-08-02 15:25:10 -05:00
David Bolack
ad1e8d50d7
Correct truncation when looking for data: in css folding
2024-08-02 15:24:14 -05:00
David Bolack
c926f0de79
Resolve import matching suggestion.
2024-08-02 15:10:39 -05:00
David Bolack
957b1ed9e7
Merge branch 'master' into CSSFolding
2024-08-01 10:09:56 -05:00
Trevor Buckner
8221579b6a
Linting
2024-07-28 18:03:25 -04:00
Trevor Buckner
e0425ec6c0
Simplify API call url
2024-07-28 16:47:16 -04:00
Trevor Buckner
8aa88a2e45
Add proper error popup when theme fails to load
2024-07-28 16:45:01 -04:00
Trevor Buckner
113f9b3fe3
No need to stringify Theme Bundle object
2024-07-27 02:00:38 -04:00
David Bolack
d2afa7adea
Move fetchThemeBundle into /shared/helpers
...
This might not be the best rework - I was unsure if the *this* that would be available when called would see the appropriate object so I assumed not and pass it as a parameter.
Works, but may be bad form.
2024-07-23 22:17:52 -05:00
David Bolack
2af2ad629d
Try to account for situations where the URL folding is past the max length for the truncation so the user can see why this is a fold.
...
Remove missed debug messages.
2024-07-21 12:58:21 -05:00
David Bolack
2fc7aa454f
Add data: URL folding for CSS.
...
Regex might need tweaking to catch all cases, but it catches the basics.
2024-07-21 12:40:49 -05:00
David Bolack
fde797c044
Rename prevLine to activeLine for better reading clarity.
2024-07-20 21:51:03 -05:00
David Bolack
6693fb1c13
reduce redundant trim()s
2024-07-20 21:40:22 -05:00
David Bolack
2c4f3473e5
Trim the trailing { on a CSS fold.
2024-07-20 00:43:02 -05:00
G.Ambatte
9a4cc5f63e
Add @import folding
2024-07-20 14:57:09 +12:00
David Bolack
c82b62f953
Add Code folding on CSS style tab
2024-07-19 16:03:44 -05:00
David Bolack
ade819c70c
A not so light rework.
...
This removes the existing endpoints and replaces them with /theme.
/theme/:id - return a theme bundle containing all styling from this USER theme and any parents.
/theme/:engine/:id - return a theme bundle containing all styling from this STATIC theme and any parents
The theme bundle returns a marshalled JSON object containing:
styles - an array of strings representing the collected styles in loading order
snippets - an array ( currently empty ) of collected snippets.
The various bits of theme rendering code for <style> an style <link> have been swapped out with an 'onDidMount' call that loads the thendpoint and appends a series of <style> blocks to the brewRender's head.
This loses some caching advantages, but probably won't matter in the long run.
2024-07-13 12:12:05 -05:00
Trevor Buckner
0a199e750f
Simplify string splitting code
...
String.split will return the substring before > or the whole string if no > exists.
2024-07-06 18:00:18 -04:00
G.Ambatte
9c4de58161
Limit htmlString to the first element ONLY
2024-07-06 13:22:47 +12:00
Trevor Buckner
8ee70b0928
Only split curly attributes on on first =, allow ?, = in attributes
2024-07-01 12:21:29 -04:00
Trevor Buckner
179e21755c
Unify some emoji CSS across fonts
2024-06-28 22:01:55 -04:00
Trevor Buckner
66fdf808a6
Lint renderWarnings.less
2024-06-07 11:29:02 -04:00
G.Ambatte
866548deec
Move renderWarnings to use Dialog
2024-06-06 22:12:13 +12:00
Trevor Buckner
9285d355b2
Merge branch 'master' into propagateEventsToNavButtons
2024-06-04 10:22:12 -04:00
Trevor Buckner
7fb23c7362
Pass click events to click handler
2024-05-28 16:25:39 -04:00
Trevor Buckner
8a55658bd7
Rename printPage function to printCurrentBrew()
...
Avoid confusion with other "page" components.
2024-05-28 16:11:18 -04:00
Trevor Buckner
01d60c4520
lint
2024-05-28 13:22:33 -04:00
Trevor Buckner
ac3168e365
Move "printPage()" to helpers.js for reuse in multiple pages
2024-05-24 19:28:02 -04:00
Trevor Buckner
783e88b5e6
Merge branch 'master' into pr/3477
2024-05-21 17:42:03 -04:00
Trevor Buckner
e62e185214
Lint a bunch of things
2024-05-21 17:32:17 -04:00
Trevor Buckner
73f879aa63
Merge branch 'master' into clean-up-unused-constants-and-requires
2024-05-21 17:28:51 -04:00
Víctor Losada Hernández
b7717171b3
Server and shared folders
2024-05-17 22:34:40 +02:00
Gazook89
78ce8aa6e3
remove unused ref attributes
...
from editPage, homePage, newPage, and printPage, as well as splitPane. The refs were declared, but never used.
2024-05-16 23:25:22 -05:00
Gazook89
8ae22bdc27
fix refs in codeEditor.jsx
2024-05-16 23:15:54 -05:00
Gazook89
b748a597d2
some fixes post merge.
2024-05-15 21:25:45 -05:00
Gazook89
9a4a14fa97
add license, rename files for clarity, update references
2024-05-15 20:48:58 -05:00
Gazook89
0c76a546e4
Merge branch 'master' into RPG-Awesome-Redux
2024-05-15 20:19:00 -05:00
Trevor Buckner
a6b2dab9cc
Linting
2024-05-08 14:53:24 -04:00
Trevor Buckner
5bcd3a1b01
Clear up steps
2024-05-07 15:54:08 -04:00
Trevor Buckner
d49d9fd755
typo
2024-05-07 15:35:00 -04:00
Trevor Buckner
41d817823b
Don't autosuggest emojis inside injectors
2024-05-07 15:30:56 -04:00
Trevor Buckner
cfffb4961b
Rename files, add some instructions to markdown.js
2024-05-07 15:28:05 -04:00
Trevor Buckner
df3d1078f1
Add FontAwesome Solid to emoji list
2024-05-05 01:50:38 -04:00
Trevor Buckner
babe1f30a2
Prevent autosuggest inside curly span/div properties
2024-05-03 21:40:08 -04:00
Trevor Buckner
cd35e91ea2
add elderberryInn to emoji syntax
2024-05-03 21:40:08 -04:00
Trevor Buckner
2309887c92
Change diceFont to camelCase to match existing naming convention
2024-05-03 21:40:08 -04:00