|
| 1 | +/* |
| 2 | + * GNU AGPL-3.0 License |
| 3 | + * |
| 4 | + * Copyright (c) 2021 - present core.ai . All rights reserved. |
| 5 | + * Original work Copyright (c) 2012 - 2021 Adobe Systems Incorporated. All rights reserved. |
| 6 | + * |
| 7 | + * This program is free software: you can redistribute it and/or modify it |
| 8 | + * under the terms of the GNU Affero General Public License as published by |
| 9 | + * the Free Software Foundation, either version 3 of the License, or |
| 10 | + * (at your option) any later version. |
| 11 | + * |
| 12 | + * This program is distributed in the hope that it will be useful, but WITHOUT |
| 13 | + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 14 | + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License |
| 15 | + * for more details. |
| 16 | + * |
| 17 | + * You should have received a copy of the GNU Affero General Public License |
| 18 | + * along with this program. If not, see https://opensource.org/licenses/AGPL-3.0. |
| 19 | + * |
| 20 | + */ |
| 21 | + |
| 22 | +/* |
| 23 | + * This is a helper file for LiveDevelopment/BrowserScripts/RemoteFunctions.js |
| 24 | + * since that file runs in the browser context, it doesn't have access to the phoenix editor, |
| 25 | + * so this file stores all the data that the remoteFunctions require. |
| 26 | + * |
| 27 | + * Everything from this file will be exported. and this file is loaded by LiveDevelopment/main.js which then |
| 28 | + * passes everything to RemoteFunctions via the config object. |
| 29 | + * Read `LiveDevelopment/main.js` for more details |
| 30 | + * |
| 31 | + * NOTE: this file cannot pass anything directly to RemoteFunctions. Everything has to go through: |
| 32 | + * `LiveDevelopment/main.js`. |
| 33 | + * This file is only present so that we can keep RemoteFunctions logic clean and keep its code concise. |
| 34 | + */ |
| 35 | + |
| 36 | +define(function (require, exports, module) { |
| 37 | + const Strings = require('strings'); |
| 38 | + |
| 39 | + // list of all the strings that are used in the remoteFunctions file |
| 40 | + const remoteStrings = { |
| 41 | + selectParent: Strings.LIVE_DEV_MORE_OPTIONS_SELECT_PARENT, |
| 42 | + editText: Strings.LIVE_DEV_MORE_OPTIONS_EDIT_TEXT, |
| 43 | + editHyperlink: Strings.LIVE_DEV_MORE_OPTIONS_EDIT_HYPERLINK, |
| 44 | + hyperlinkNoHref: Strings.LIVE_DEV_HYPERLINK_NO_HREF, |
| 45 | + duplicate: Strings.LIVE_DEV_MORE_OPTIONS_DUPLICATE, |
| 46 | + delete: Strings.LIVE_DEV_MORE_OPTIONS_DELETE, |
| 47 | + ai: Strings.LIVE_DEV_MORE_OPTIONS_AI, |
| 48 | + imageGallery: Strings.LIVE_DEV_MORE_OPTIONS_IMAGE_GALLERY, |
| 49 | + moreOptions: Strings.LIVE_DEV_MORE_OPTIONS_MORE, |
| 50 | + cut: Strings.LIVE_DEV_MORE_OPTIONS_CUT, |
| 51 | + copy: Strings.LIVE_DEV_MORE_OPTIONS_COPY, |
| 52 | + paste: Strings.LIVE_DEV_MORE_OPTIONS_PASTE, |
| 53 | + showRulerLines: Strings.LIVE_PREVIEW_SHOW_RULER_LINES, |
| 54 | + aiPromptPlaceholder: Strings.LIVE_DEV_AI_PROMPT_PLACEHOLDER, |
| 55 | + imageGalleryUseImage: Strings.LIVE_DEV_IMAGE_GALLERY_USE_IMAGE, |
| 56 | + imageGallerySelectDownloadFolder: Strings.LIVE_DEV_IMAGE_GALLERY_SELECT_DOWNLOAD_FOLDER, |
| 57 | + imageGallerySearchPlaceholder: Strings.LIVE_DEV_IMAGE_GALLERY_SEARCH_PLACEHOLDER, |
| 58 | + imageGallerySearchButton: Strings.LIVE_DEV_IMAGE_GALLERY_SEARCH_BUTTON, |
| 59 | + imageGalleryLoadingInitial: Strings.LIVE_DEV_IMAGE_GALLERY_LOADING_INITIAL, |
| 60 | + imageGalleryLoadingMore: Strings.LIVE_DEV_IMAGE_GALLERY_LOADING_MORE, |
| 61 | + imageGalleryNoImages: Strings.LIVE_DEV_IMAGE_GALLERY_NO_IMAGES, |
| 62 | + imageGalleryLoadError: Strings.LIVE_DEV_IMAGE_GALLERY_LOAD_ERROR, |
| 63 | + imageGalleryClose: Strings.LIVE_DEV_IMAGE_GALLERY_CLOSE, |
| 64 | + imageGallerySelectFromComputer: Strings.LIVE_DEV_IMAGE_GALLERY_SELECT_FROM_COMPUTER, |
| 65 | + imageGallerySelectFromComputerTooltip: Strings.LIVE_DEV_IMAGE_GALLERY_SELECT_FROM_COMPUTER_TOOLTIP, |
| 66 | + imageGalleryDialogOverlayMessage: Strings.LIVE_DEV_IMAGE_GALLERY_DIALOG_OVERLAY_MESSAGE, |
| 67 | + toastNotEditable: Strings.LIVE_DEV_TOAST_NOT_EDITABLE, |
| 68 | + toastCopyFirstTime: Strings.LIVE_DEV_COPY_TOAST_MESSAGE |
| 69 | + }; |
| 70 | + |
| 71 | + exports.remoteStrings = remoteStrings; |
| 72 | +}); |
| 73 | + |
0 commit comments