Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branches/7.0-mv3 #459

Merged
merged 21 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
149424f
Migrate Clippings to Manifest V3 (issue #388)
aecreations May 18, 2024
3b50e6b
Get rid of WebExtension message "get-env-info"
aecreations May 18, 2024
85ea40d
Modified test file to use ampersand character for testing
aecreations May 19, 2024
ecb9144
Removed caching of OS name in a global variable
aecreations May 19, 2024
9c653d4
Bug fix: Missing separator in the Clippings menu
aecreations May 19, 2024
42eec91
Get rid of caching of prefs in global variable in background script
aecreations May 19, 2024
f931a66
Reload the IndexedDB database if it was reset due to background scrip…
aecreations May 19, 2024
8a39ccc
Get rid of global variable in background script: gSyncFldrID
aecreations May 19, 2024
407b4c4
Moved long-running global variables in background script to storage
aecreations May 20, 2024
67dc0e4
Updated UI styling (part of issue #450)
aecreations May 20, 2024
b3e4b66
Bug fix: Menu items for clippings and folders are duplicated
aecreations May 20, 2024
a8e79c3
Bug fix: Auto-incrementing placeholders incorrectly reset when backgr…
aecreations May 20, 2024
b1f5691
Refactored pref storage initialization
aecreations May 20, 2024
660e433
Bug fix: Clippings menu not displaying ampersand character in folders
aecreations May 21, 2024
d0ffac9
Renamed aePrefs method
aecreations May 21, 2024
d6ef7a4
Changed extension version to 7.0a1 (6.98.1)
aecreations May 21, 2024
eb5434f
Changed extension version to 7.0a1+
aecreations May 25, 2024
3073975
Bug fix: Clippings menu disappears when extension is reloaded
aecreations May 26, 2024
c701f9d
Bug fix: First-time backup notification does not appear (issue #456)
aecreations May 27, 2024
c8e464d
Turned off first-time backup notification shortly after installation
aecreations May 27, 2024
0efc3bb
Bug fix: On macOS, pasting a clipping doesn't work when browser windo…
aecreations Jun 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 1 addition & 98 deletions test/more-placeholders.json
Original file line number Diff line number Diff line change
@@ -1,98 +1 @@
{
"version": "6.1",
"createdBy": "Clippings/wx",
"userClippingsRoot": [
{
"name": "New demo clippings",
"children": [
{
"name": "Multi-select placehldr w/ default value containing special chars",
"content": "$[NAME]\n\n$[PlaceholderWithSpecialChars{Whoa!|This is OK?|Foo/bar _baz_|La-a|Censored profanity: @#%&!|The \"Best\" thing 'ever'|Lotsa Ca$h|£22.00 ea., in GBP|¥99 Japanese Yen|süß (German for «sweet» as in taste)|EUR €99.88|*Hello, world!?*|¡Hola! 89¢ per item}]\n\nTested with love on $[HOSTAPP]",
"shortcutKey": "",
"sourceURL": "",
"label": "",
"seq": 0
},
{
"name": "Normal placeholder w/ default value containing special chars",
"content": "$[NAME]\nHello, cruel world!\n\n$[PlaceholderWithSpecialChars{Whoa! This is OK? Foo/bar _baz_ La-a is an actual name! Censored profanity: @#%&! The \"Best\" thing 'ever'. Lotsa Ca$h: £22.00 ea. in GBP, ¥99 Japanese Yen... süß (German for «sweet» as in taste) ... EUR €99.88 -- *Hello, world!?* ¡Hola! 89¢ per item}]\n\nGoodbye, cruel world!",
"shortcutKey": "",
"sourceURL": "",
"label": "",
"seq": 2
},
{
"name": "Moment.js test",
"content": "Today's date and time, expressed in various formats:\n\nDefault date: $[DATE]\nLong format: $[DATE(MMMM D, YYYY)]\nLong format with abbreviated month: $[DATE(MMM. DD, YYYY)]\nFull format with day of week: $[DATE(dddd, MMMM Do, YYYY)]\nShort American format: $[DATE(MM/DD/YYYY)]\n\nDefault time: $[TIME]\nNorth American time: $[TIME(h:mm A)]\n\nISO date: $[DATE(YYYY-MM-DD)]\nBritish date: $[DATE(D MMMM YYYY)]\n\nMilitary time with seconds: $[DATE(HH:mm:ss)]\n\nDate and time: $[DATE(ddd, MMM DD, YYYY hh:mm a)]\nDate and time as two separate placeholders: $[DATE(dddd, MMMM Do, YYYY)] @ $[TIME(h:mm A)]",
"shortcutKey": "",
"sourceURL": "",
"label": "",
"seq": 5
},
{
"name": "Multi-select placehldr w/ default value containing special chars #2",
"content": "$[NAME]\n\n$[PlaceholderWithSpecialChars{Whoa!|This is OK?|Foo/bar _baz_|La-a|Censored profanity: @#%&!|The \"Best\" thing 'ever'|Lotsa Ca$h|£22.00 ea., in GBP|¥99 Japanese Yen|süß (German for «sweet» as in taste)|EUR €99.88|*Hello, world!?*|¡Hola! 89¢ per item}]\n\nTested on $[HOSTAPP] $[beta{beta|}]\n$[UA]",
"shortcutKey": "",
"sourceURL": "",
"label": "",
"seq": 1
},
{
"name": "Placeholders used multiple times",
"content": "$[salutation] $[name],\n\nMy name is $[senderName{Adrianna|Casi|Holly|Jewelya|Poesia|Riley|Taya|Veronica}]. I think you are awesome! Keep doing what you're doing, $[name]!\n\nHave a nice day, $[name]! :)\n\n$[closing{Yours truly|Best regards|Love}],\n\n$[senderName]",
"shortcutKey": "",
"sourceURL": "",
"label": "",
"seq": 3
},
{
"name": "Single placeholder used multiple times",
"content": "Hello $[name], how are you? It was really nice meeting you, $[name]. Have a nice day, $[name]!",
"shortcutKey": "",
"sourceURL": "",
"label": "",
"seq": 4
}
],
"seq": 1
},
{
"name": "Placeholder values with Symbols & Emoji",
"children": [
{
"name": "Symbols and emoji",
"content": "Arrows: $[arrows{←|→|⇑|⇓|⇿}]\nMathematical Operators: $[math{∀|∈|∞|⋿}]\nMiscellaneous Symbols: $[misc{☀|☘|♠|♫|⛩}]\nDingbats: $[dingbats{✅|❌|➿}]\nMiscellaneous Symbols and Pictographs: $[pictographs{🌀|🌎|🌞|🍅|🍕|🏀|👍|💖|💰|🔔|🔥|🗿}]\nEmoticons (Emoji): $[emoji{😀|😃|😄|😆|😎|🙁|🙂|🙏}]\nTransport and Map Symbols: $[transport{🚀|🚘|🚨}]\nSupplemental Symbols and Pictographs: $[supplmtSymbols{🤘|🤠|🤣|🥑|🦷|🧿}]",
"shortcutKey": "",
"sourceURL": "",
"label": "",
"seq": 0
},
{
"name": "macOS symbols and emoji",
"content": "Emoji - Smileys and People: $[smileys{😀|👍|🌂}]\nEmoji - Animals and Nature: $[nature{🍄|🌵|🐶|☔}]\nEmoji - Food and Drink: $[food{🍏|🍕|🧂}]\nEmoji - Activity: $[activity{⚽️|🏆|🧩}]\nEmoji - Travel and Places: $[travel{🚗|✈️|⛩|🌁}]\nEmoji - Objects: $[objects{📀|⚙|🔓}]\nEmoji - Symbols: $[symbols{❤️|☮️|❌|🔴|🟦|🔔|🕧}]\nEmoji - Flags: $[flags{🏁|🏴‍☠️|🚩|🏳️|🏴|🏳️‍🌈|🇨🇦|🇺🇸|🇿🇼}]\nBullets and Stars: $[bullets{●|★|☆|❖|※}]\nCurrency: $[currency{¢|€|£|₧}]\nLetter-like: $[letterLike{®|©|™|℅}]\nMath Symbols: $[math{±|×|℮|∅|∑|√}]\nParentheses: $[parens{【|】|‹|›|«|»}]\nPictographs: $[picto{☀|☯|☮|⚑}]\nPunctuation: $[punct{¡|§|¶}]\n**Unsupported Punctuation: $[unsupportedPunct{¡|~}]\nTechnical Symbols: $[tech{⌘|⇥|⌦|⌥|⏏|⎈}]",
"shortcutKey": "",
"sourceURL": "",
"label": "",
"seq": 1
},
{
"name": "Embedded symbols and emoji",
"content": "I feel $[emoji{happy 😃|sad 🙁|angry 😡|funny 🤣|cool 😎}]!\n\nMy favorite symbol is: $[symbol{← left arrow|⇒ double right arrow|★ star|® registered trademark}] ",
"shortcutKey": "",
"sourceURL": "",
"label": "",
"seq": 2
},
{
"name": "Test Clipping for issue #418",
"content": "Unicode symbols / emojis not supported in placeholders' default values (#418)\n\n$[foo{bar|baz}]\n$[quux{←|→}]\n$[qux{💪|🚀}]",
"shortcutKey": "",
"sourceURL": "",
"label": "",
"seq": 3
}
],
"seq": 2
}
]
}
{"version":"6.1","createdBy":"Clippings/mx","userClippingsRoot":[{"name":"New demo clippings","children":[{"name":"Multi-select placehldr w/ default value containing special chars","content":"$[NAME]\n\n$[PlaceholderWithSpecialChars{Whoa!|This is OK?|Foo/bar _baz_|La-a|Censored profanity: @#%&!|The \"Best\" thing 'ever'|Lotsa Ca$h|£22.00 ea., in GBP|¥99 Japanese Yen|süß (German for «sweet» as in taste)|EUR €99.88|*Hello, world!?*|¡Hola! 89¢ per item}]\n\nTested with love on $[HOSTAPP]","shortcutKey":"","sourceURL":"","label":"","seq":0},{"name":"Normal placeholder w/ default value containing special chars","content":"$[NAME]\nHello, cruel world!\n\n$[PlaceholderWithSpecialChars{Whoa! This is OK? Foo/bar _baz_ La-a is an actual name! Censored profanity: @#%&! The \"Best\" thing 'ever'. Lotsa Ca$h: £22.00 ea. in GBP, ¥99 Japanese Yen... süß (German for «sweet» as in taste) ... EUR €99.88 -- *Hello, world!?* ¡Hola! 89¢ per item}]\n\nGoodbye, cruel world!","shortcutKey":"","sourceURL":"","label":"","seq":2},{"name":"Moment.js test","content":"Today's date and time, expressed in various formats:\n\nDefault date: $[DATE]\nLong format: $[DATE(MMMM D, YYYY)]\nLong format with abbreviated month: $[DATE(MMM. DD, YYYY)]\nFull format with day of week: $[DATE(dddd, MMMM Do, YYYY)]\nShort American format: $[DATE(MM/DD/YYYY)]\n\nDefault time: $[TIME]\nNorth American time: $[TIME(h:mm A)]\n\nISO date: $[DATE(YYYY-MM-DD)]\nBritish date: $[DATE(D MMMM YYYY)]\n\nMilitary time with seconds: $[DATE(HH:mm:ss)]\n\nDate and time: $[DATE(ddd, MMM DD, YYYY hh:mm a)]\nDate and time as two separate placeholders: $[DATE(dddd, MMMM Do, YYYY)] @ $[TIME(h:mm A)]","shortcutKey":"","sourceURL":"","label":"","seq":5},{"name":"Multi-select placehldr w/ default value containing special chars #2","content":"$[NAME]\n\n$[PlaceholderWithSpecialChars{Whoa!|This is OK?|Foo/bar _baz_|La-a|Censored profanity: @#%&!|The \"Best\" thing 'ever'|Lotsa Ca$h|£22.00 ea., in GBP|¥99 Japanese Yen|süß (German for «sweet» as in taste)|EUR €99.88|*Hello, world!?*|¡Hola! 89¢ per item}]\n\nTested on $[HOSTAPP] $[beta{beta|}]\n$[UA]","shortcutKey":"","sourceURL":"","label":"","seq":1},{"name":"Placeholders used multiple times","content":"$[salutation] $[name],\n\nMy name is $[senderName{Adrianna|Casi|Holly|Jewelya|Poesia|Riley|Taya|Veronica}]. I think you are awesome! Keep doing what you're doing, $[name]!\n\nHave a nice day, $[name]! :)\n\n$[closing{Yours truly|Best regards|Love}],\n\n$[senderName]","shortcutKey":"","sourceURL":"","label":"","seq":3},{"name":"Single placeholder used multiple times","content":"Hello $[name], how are you? It was really nice meeting you, $[name]. Have a nice day, $[name]!","shortcutKey":"","sourceURL":"","label":"","seq":4}],"seq":1},{"name":"Placeholder values with Symbols & Emoji","children":[{"name":"Symbols & emoji","content":"Arrows: $[arrows{←|→|⇑|⇓|⇿}]\nMathematical Operators: $[math{∀|∈|∞|⋿}]\nMiscellaneous Symbols: $[misc{☀|☘|♠|♫|⛩}]\nDingbats: $[dingbats{✅|❌|➿}]\nMiscellaneous Symbols and Pictographs: $[pictographs{🌀|🌎|🌞|🍅|🍕|🏀|👍|💖|💰|🔔|🔥|🗿}]\nEmoticons (Emoji): $[emoji{😀|😃|😄|😆|😎|🙁|🙂|🙏}]\nTransport and Map Symbols: $[transport{🚀|🚘|🚨}]\nSupplemental Symbols and Pictographs: $[supplmtSymbols{🤘|🤠|🤣|🥑|🦷|🧿}]","shortcutKey":"","sourceURL":"","label":"","seq":0},{"name":"macOS symbols & emoji","content":"Emoji - Smileys and People: $[smileys{😀|👍|🌂}]\nEmoji - Animals and Nature: $[nature{🍄|🌵|🐶|☔}]\nEmoji - Food and Drink: $[food{🍏|🍕|🧂}]\nEmoji - Activity: $[activity{⚽️|🏆|🧩}]\nEmoji - Travel and Places: $[travel{🚗|✈️|⛩|🌁}]\nEmoji - Objects: $[objects{📀|⚙|🔓}]\nEmoji - Symbols: $[symbols{❤️|☮️|❌|🔴|🟦|🔔|🕧}]\nEmoji - Flags: $[flags{🏁|🏴‍☠️|🚩|🏳️|🏴|🏳️‍🌈|🇨🇦|🇺🇸|🇿🇼}]\nBullets and Stars: $[bullets{●|★|☆|❖|※}]\nCurrency: $[currency{¢|€|£|₧}]\nLetter-like: $[letterLike{®|©|™|℅}]\nMath Symbols: $[math{±|×|℮|∅|∑|√}]\nParentheses: $[parens{【|】|‹|›|«|»}]\nPictographs: $[picto{☀|☯|☮|⚑}]\nPunctuation: $[punct{¡|§|¶}]\n**Unsupported Punctuation: $[unsupportedPunct{¡|~}]\nTechnical Symbols: $[tech{⌘|⇥|⌦|⌥|⏏|⎈}]","shortcutKey":"","sourceURL":"","label":"","seq":1},{"name":"Embedded symbols & emoji","content":"I feel $[emoji{happy 😃|sad 🙁|angry 😡|funny 🤣|cool 😎}]!\n\nMy favorite symbol is: $[symbol{← left arrow|⇒ double right arrow|★ star|® registered trademark}] ","shortcutKey":"","sourceURL":"","label":"","seq":2},{"name":"Test Clipping for issue #418","content":"Unicode symbols / emojis not supported in placeholders' default values (#418)\n\n$[foo{bar|baz}]\n$[quux{←|→}]\n$[qux{💪|🚀}]","shortcutKey":"","sourceURL":"","label":"","seq":3}],"seq":2}]}
Loading