0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-09 20:38:40 +00:00
Commit Graph

270 Commits

Author SHA1 Message Date
David Bolack c58c8777f1 Add arbitrary tag attr assign. in moustaches
This adds the ability to include attribute values for any element that
can be altered by a moustache.

Form:

```
{attribute=value}

example:

![homebrew mug](https://i.imgur.com/hMna6G0.png) {position:absolute,bottom:20px,left:130px,width:220px,a=b and c,g=h}
```

In order to permit spaces, the pattern matches for moustache code had to
remove the space character as a delimiter. I believe I have adequate
compensated.

This should solve #1488
2023-11-07 17:43:24 -06:00
Gazook89 8077a91ff7 add foldAll and unfoldAll buttons to snippet bar. 2023-09-29 09:31:20 -05:00
Gazook89 f1e6a9a41e add syntax highlighting for definition lists 2023-09-27 22:46:51 -05:00
G.Ambatte cf3635bccc Merge branch 'master' into addEditorThemes-#362 2023-07-11 07:38:13 +12:00
G.Ambatte d2b2e69123 Shift Footer generation to snippet 2023-06-03 13:30:32 +12:00
G.Ambatte c660f87dff Load from & save to local storage 2023-04-02 17:57:11 +12:00
G.Ambatte 5e9b451e29 Pass current editor theme to SnippetBar as prop 2023-04-02 16:17:50 +12:00
G.Ambatte b2546d908a Shift CSS link to CodeEditor render 2023-04-02 13:19:43 +12:00
G.Ambatte 7dd1368c09 Add editorTheme to editor.jsx and downstream 2023-04-02 12:53:26 +12:00
Charlie Humphreys 6ddf0bb889 update metadata editor to include error handling 2023-01-23 09:35:19 -06:00
Gazook89 ecdcaadfa9 remove | from regexp 2022-12-05 11:25:24 -06:00
Gazook89 31d58f9075 change regex to work with safari. 2022-12-01 11:55:37 -06:00
Trevor Buckner 1cc84da976 Remove end/start bracket tracking for injectors 2022-11-16 15:42:45 -05:00
Gazook89 24debfc75c fix regexp to not include inside of curly spans 2022-11-15 11:09:27 -06:00
Gazook89 ffe6272299 Merge branch 'master' into Add-syntax-highlighting-for-injections 2022-11-15 10:36:06 -06:00
Trevor Buckner 8016f82040 Tweak capture group order 2022-11-14 18:56:04 -05:00
Gazook89 cc58721ccd give span tags to injection syntax for styling 2022-11-13 21:02:45 -06:00
Gazook89 03c6edf31a change regexp to calculuschild's atomic fix 2022-11-07 10:01:22 -06:00
G.Ambatte db174c9655 Add optional overwrite protection 2022-09-24 13:50:26 +12:00
G.Ambatte 22896470e3 Remove unused splice function 2022-09-24 13:36:14 +12:00
G.Ambatte 56fde5a448 Use cm.replaceSelection instead of split/join text 2022-09-24 13:34:26 +12:00
Trevor Buckner 5f5ff0023b Merge branch 'master' into SwappableThemes-ReorganizeFolderStructure 2022-06-21 16:07:00 -04:00
G.Ambatte d04df9aeb0 Remove redundant isStyle check 2022-06-05 10:10:59 +12:00
G.Ambatte 6bc5edd33f Remove unnecessary isMeta check 2022-06-05 10:03:03 +12:00
G.Ambatte ee3c521094 Change throttle options 2022-06-04 18:35:22 +12:00
G.Ambatte ff2268871d Throttle brew move function 2022-06-04 17:54:35 +12:00
G.Ambatte 1d0cceda04 Eliminate unnecessary window.frames calls 2022-06-04 17:09:25 +12:00
G.Ambatte 4e8cbf621b Add brew bounce animation 2022-06-04 16:38:32 +12:00
Trevor Buckner df41b58441 Smooth scroll editor Panel, and flash target line 2022-06-03 13:32:04 -04:00
G.Ambatte e9adc4de82 Highlight target line during moveSource 2022-06-02 13:50:37 +12:00
G.Ambatte 4cc3dd93e2 Move state change to handleViewChange 2022-05-29 16:16:48 +12:00
G.Ambatte 08db2e8492 Hide divider arrows when not required 2022-05-29 15:49:37 +12:00
G.Ambatte 7b2486e411 Use RegEx for text.split 2022-05-29 15:31:57 +12:00
G.Ambatte 03bcbee1fc Apply suggested regex
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2022-05-29 15:27:02 +12:00
G.Ambatte 4e5daf583a Remove from snippet bar 2022-05-29 15:24:02 +12:00
G.Ambatte eca39369de Initial pass at split pane button functionality 2022-05-29 15:18:35 +12:00
G.Ambatte 160cfcce4d Change for line consistency when moving to page 1 2022-05-29 13:48:36 +12:00
Trevor Buckner 4f6555b522 Merge snippets between theme and basetheme
- Current theme has preference over the base theme
- Snippets with the same name are overwritten by the current theme.
- If the overwritten snippet has no `gen` property (or `gen` is falsy), it will remove the base Theme snippet.
- Snippets not overwritten will carry over from base Theme
- New snippets will be added on to base Theme
2022-05-16 01:40:40 -04:00
G.Ambatte 80fa48e592 Remove redundant variable
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2022-05-11 15:48:03 +12:00
G.Ambatte 9f7ee39b09 Use BoundingRect.bottom to determine page 2022-05-11 10:46:49 +12:00
G.Ambatte 412ac5f331 Change to getBoundingClientRect().bottom 2022-05-09 23:39:04 +12:00
G.Ambatte 7c0e702ead Remove a loop from sourceJump 2022-05-09 23:20:16 +12:00
G.Ambatte 02c8bf7292 Change to smooth scrolling from auto 2022-05-09 22:21:00 +12:00
G.Ambatte b26ff9eb00 Shift to getBoundingClientRect().height 2022-05-09 22:20:35 +12:00
G.Ambatte be0b1abe41 Adjust \page check for renderer 2022-05-09 20:57:43 +12:00
G.Ambatte 3c36b7f328 Limit Style tab source jumping 2022-05-09 20:23:39 +12:00
G.Ambatte 3d9704a392 Fix typo
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2022-05-09 19:47:04 +12:00
G.Ambatte 7034f1d2d5 Add sourceJump function 2022-05-03 22:32:30 +12:00
G.Ambatte 451f06ca74 Fix getCurrentPage 2022-05-03 17:24:37 +12:00
G.Ambatte f6db66b28c Add brewJump and sourceJump functions 2022-05-03 13:36:03 +12:00