View en-US.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bee-common-top-bar": { | |
"actions": "Actions", | |
"help": "Help", | |
"hide-structure": "Hide structure", | |
"preview": "Preview", | |
"save": "SAVE", | |
"save-as-template": "Save as template", | |
"send-test": "Send test", | |
"settings": "Settings", |
View onComment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sample onComment callback for bee config | |
onComment: function (response) { | |
// Extract the comments from the response | |
var comments = Object.values(response.comments); | |
// Gets all words that start with '@', until a space | |
var handleRegex = /@[^\s]+/g | |
// Use reducer to extract the @ mentions from the content | |
function mentionsReducer(acc, comment) { |
View getDataURI.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getDataUri = (img) => { | |
let dataUri = '' | |
try { | |
dataUri = new Buffer(img, 'binary').toString('base64') | |
dataUri = `data:image/png;base64,${dataUri}` | |
} catch { | |
dataUri = '' // Or, replace '' with default placholder image. | |
} | |
return dataUri | |
} |
View bee-compare-roles.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Designer Advanced Permissions,Marketer/Copywriter Advanced Permissions | |
"{ | |
""uid"": ""test_uid"", | |
""container"": ""bee-plugin-container"", | |
""language"": ""en-US"", | |
""sidebarPosition"": ""left"", | |
""advancedPermissions"": [ | |
{ | |
""rows"": { | |
""behaviors"": { |
View Designer-Advanced-Permissions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"uid": "test_uid", | |
"container": "bee-plugin-container", | |
"language": "en-US", | |
"sidebarPosition": "left", | |
"advancedPermissions": [ | |
{ | |
"rows": { | |
"behaviors": { | |
"canSelect": true |
View custom.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
"--cs" for custom css override classes | |
--- Generals --- | |
- Custom font url | https://fast.fonts.net/cssapi/12006fbc-93aa-46b4-b1a2-436f9d660c2c.css | |
- Custom font family (with font stack - i.e. 'Source Sans Pro', sans-serif) | "Frutiger Next W01",Helvetica,Arial,sans-serif | |
- Custom font size | 12px | |
- Widget bar border color | #c7c7c7 | |
- Widget bar & active tab background color | #F9F9F9 | |
- Show tab icons [BOOLEAN] - if (true) "inline-block" else "none" | True |