-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
83 changed files
with
29,315 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
**/lwc/**/*.css | ||
**/lwc/**/*.html | ||
**/lwc/**/*.json | ||
**/lwc/**/*.svg | ||
**/lwc/**/*.xml | ||
**/aura/**/*.auradoc | ||
**/aura/**/*.cmp | ||
**/aura/**/*.css | ||
**/aura/**/*.design | ||
**/aura/**/*.evt | ||
**/aura/**/*.json | ||
**/aura/**/*.svg | ||
**/aura/**/*.tokens | ||
**/aura/**/*.xml | ||
.sfdx |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status | ||
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm | ||
# | ||
|
||
package.xml | ||
|
||
# LWC configuration files | ||
**/jsconfig.json | ||
**/.eslintrc.json | ||
|
||
# LWC Jest | ||
**/__tests__/** |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This file is used for Git repositories to specify intentionally untracked files that Git should ignore. | ||
# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore | ||
# For useful gitignore templates see: https://github.com/github/gitignore | ||
|
||
# Salesforce cache | ||
.sfdx/ | ||
.localdevserver/ | ||
|
||
# LWC VSCode autocomplete | ||
**/lwc/jsconfig.json | ||
|
||
# LWC Jest coverage reports | ||
coverage/ | ||
|
||
# SOQL Query Results | ||
**/scripts/soql/query-results | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Dependency directories | ||
node_modules/ | ||
|
||
# Eslint cache | ||
.eslintcache | ||
|
||
# MacOS system files | ||
.DS_Store | ||
|
||
# Windows system files | ||
Thumbs.db | ||
ehthumbs.db | ||
[Dd]esktop.ini | ||
$RECYCLE.BIN/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# List files or directories below to ignore them when running prettier | ||
# More information: https://prettier.io/docs/en/ignore.html | ||
# | ||
|
||
**/staticresources/** | ||
.localdevserver | ||
.sfdx | ||
.vscode | ||
|
||
coverage/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"printWidth": 120, | ||
"trailingComma": "es5", | ||
"bracketSpacing": true, | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"endOfLine": "lf", | ||
"overrides": [ | ||
{ | ||
"files": "**/lwc/**/*.html", | ||
"options": { "parser": "lwc" } | ||
}, | ||
{ | ||
"files": "*.{cmp,page,component}", | ||
"options": { "parser": "html" } | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Copyright (c) 2020, Salesforce.com, Inc. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,96 @@ | ||
# ImageUploader | ||
# ImageUploader | ||
|
||
**⭐️ 操作マニュアルはコチラ ↓** | ||
|
||
[https://salesforce.quip.com/aV5yATMhaA96](https://salesforce.quip.com/aV5yATMhaA96) | ||
|
||
**⭐️ 詳細な設定マニュアルはコチラ ↓** | ||
|
||
[https://salesforce.quip.com/wqkJANnbuwgp](https://salesforce.quip.com/wqkJANnbuwgp) | ||
|
||
## 1.パッケージのインストール | ||
|
||
### 1-2. インストール URL を開く | ||
|
||
・AppExchange URL | ||
[https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3u00000MRwSJEA1](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3u00000MRwSJEA1) | ||
|
||
### 1-2. ログイン | ||
|
||
ログイン画面が開かれた場合、自身のログイン ID・パスワードを入力する | ||
|
||
<img src="https://i.imgur.com/LPS8aYE.png" alt="ログインイメージ" width="400" /> | ||
|
||
### 1-3. 利用ユーザの選択 | ||
|
||
以下から利用用途に合わせて選び、インストールボタンを押下する。 | ||
※インストール後に利用ユーザを設定することも可能 | ||
|
||
<img src="https://i.imgur.com/gJ6gW64.png" alt="インストールイメージ" width="600" /> | ||
|
||
| ケース | インストール | | ||
| ------------------------------------ | -------------------------------- | | ||
| システム管理者のみが試験導入する場合 | 管理者のみインストール | | ||
| すべてのユーザが利用する場合 | すべてのユーザのインストール | | ||
| 特定のユーザのみが利用する場合 | 特定のプロファイルのインストール | | ||
|
||
### 1-4. インストール完了 | ||
|
||
インストールの完了メッセージが表示された場合、完了ボタンを押下する。 | ||
|
||
<img src="https://i.imgur.com/9p4z4h5.png" alt="インストール完了" width="600" /> | ||
|
||
設定内の「インストール済みパッケージ」に Image Uploader が追加されます。 | ||
|
||
<img src="https://i.imgur.com/XVbR4b4.png" alt="インストール済みパッケージの確認" width="600" /> | ||
|
||
## 2.レコードページへの追加 | ||
|
||
_社内向けで利用する場合、任意のオブジェクトに以下設定を行ってください_ | ||
|
||
### 2-1. 編集ページを開く | ||
|
||
追加したいオブジェクトのレコードを開き、画面右上の「歯車マーク → 編集ページ」の順に押下する。 | ||
|
||
<img src="https://i.imgur.com/zNI7MCa.png" alt="編集ページの設定" width="600" /> | ||
|
||
### 2-2. コンポーネントを配置 | ||
|
||
画面左のコンポーネントから、「カスタム-管理」セクションにある「Image Uploader」をページ内の配置したい箇所にドラッグ&ドロップします。 | ||
(Image Uploader(パーツのため使用不可)は、モバイルアプリで使用されるコンポーネントのパーツのため単体では動作しません) | ||
|
||
<img src="https://i.imgur.com/k17U8kJ.png" alt="コンポーネントの配置" width="600" /> | ||
|
||
### 2-3. 詳細設定 | ||
|
||
画面右側の詳細設定にて、利用したい条件に合わせて設定を変更します。 | ||
コンポーネント設定の詳細は[こちら](https://salesforce.quip.com/wqkJANnbuwgp#YDcACAkKq3W)から確認ください。 | ||
|
||
## 3.動画・音声ファイルの再生設定 | ||
|
||
Image Uploader はファイルの拡張子によって表示の実行動作を変えています。 | ||
以下はコンポーネント内でのファイルの取り扱いの設定であり、動作の実行を保証するものではありません。 | ||
各ファイルの実行はデバイスやブラウザの実装に依存しますのでご注意ください。 | ||
webm や ogg など、対応拡張子を増やしたい場合はコンポーネントの改修が必要になります。 | ||
|
||
| 種別 | コンポーネント上での挙動 | | ||
| ------------ | ------------------------------------------------------------------------ | | ||
| 動画ファイル | 拡張子が avi/mpeg/mp4/mov/wmv のファイルは動画ファイルとして扱われます。 | | ||
| 音声ファイル | 拡張子が mp3/acc/wav/wma のファイルは音声ファイルとして扱われます。 | | ||
|
||
**動画・音声ファイルを再生させるための設定** | ||
|
||
- 設定>セキュリティ>CSP 信頼済みサイト →「新規作成」として、次のように自ドメインからの*media-src*を有効にする | ||
- 信頼済みサイト名: 任意の名前 | ||
- 信頼済みサイト URL: マイドメインを有効にした組織の URL | ||
例: https://XXXXXXXXX.my.salesforce.com | ||
- 有効: チェックを入れる | ||
- コンテキスト: すべて (Salesforce+デジタルエクスペリエンスサイト) もしくは LEX (Salesforce)またはコミュニティ(デジタルエクスペリエンスサイト) | ||
- CSP ディレクティブ | ||
“media-src のサイトを許可”にチェックを入れる | ||
|
||
## 4.PDF ファイルの表示設定 | ||
|
||
**PDF を表示させるための設定** | ||
|
||
- 設定>セキュリティ>ファイルのアップロードおよびダウンロードセキュリティ →.pdf のダウンロード操作を“ブラウザで実行”に変更 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"orgName": "Image Uploader", | ||
"edition": "Developer", | ||
"features": [], | ||
"settings": { | ||
"lightningExperienceSettings": { | ||
"enableS1DesktopEnabled": true | ||
}, | ||
"securitySettings": { | ||
"passwordPolicies": { | ||
"enableSetPasswordInApi": true | ||
} | ||
}, | ||
"mobileSettings": { | ||
"enableS1EncryptedStoragePref2": false | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"plugins": ["@salesforce/eslint-plugin-aura"], | ||
"extends": ["plugin:@salesforce/eslint-plugin-aura/recommended", "prettier"], | ||
"rules": { | ||
"func-names": "off", | ||
"vars-on-top": "off", | ||
"no-unused-expressions": "off" | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
force-app/main/default/aura/RSIUC_NavigateToLWC/RSIUC_NavigateToLWC.cmp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<!-- | ||
* Copyright (c) 2020, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
--> | ||
<aura:component implements="lightning:isUrlAddressable" access="global"> | ||
<aura:attribute type="String" name="recordId"/> | ||
<aura:attribute type="Integer" name="pageSize"/> | ||
<aura:attribute type="String" name="pageType"/> | ||
<aura:attribute type="String" name="linkId"/> | ||
<aura:attribute type="String" name="sortField" default="LastModifiedDate"/> | ||
<aura:attribute type="String" name="order" default="DESC"/> | ||
<aura:attribute type="String" name="keyword" default=""/> | ||
<aura:attribute type="String" name="communityId" default=""/> | ||
<aura:attribute type="String" name="communityBaseUrl" default=""/> | ||
<aura:attribute type="String" name="nameSpace" default=""/> | ||
<aura:attribute type="String" name="acceptedFormatList" default="jpg, jpeg, png, ppt, pptx, xls, xlsx, doc, docx, pdf"/> | ||
<aura:attribute type="Integer" name="offset"/> | ||
<aura:attribute type="Integer" name="totalImages"/> | ||
<aura:attribute type="Integer" name="initialSlide"/> | ||
<aura:attribute type="String[]" name="contentIds" default="[]"/> | ||
<aura:handler name="init" value="{!this}" action="{!c.init}"/> | ||
<aura:handler name="change" value="{!v.pageReference}" action="{!c.reInit}" /> | ||
<div class="slds-card"> | ||
<aura:if isTrue="{!v.pageType == 'linkimage'}"> | ||
<c:rsiuc_LinkImageMobile | ||
nameSpace="{!v.nameSpace}" | ||
recordId="{!v.recordId}" | ||
pageSize="{!v.pageSize}" | ||
acceptedFormatList="{!v.acceptedFormatList}" | ||
/> | ||
</aura:if> | ||
<aura:if isTrue="{!v.pageType == 'carousel'}"> | ||
<c:rsiuc_ImageCarouselMobile | ||
nameSpace="{!v.nameSpace}" | ||
recordId="{!v.recordId}" | ||
totalImages="{!v.totalImages}" | ||
offset="{!v.offset}" | ||
pageSize="{!v.pageSize}" | ||
initialSlide="{!v.initialSlide}" | ||
sortField="{!v.sortField}" | ||
order="{!v.order}" | ||
keyword="{!v.keyword}" | ||
communityId="{!v.communityId}" | ||
communityBaseUrl="{!v.communityBaseUrl}" | ||
acceptedFormatList="{!v.acceptedFormatList}" | ||
/> | ||
</aura:if> | ||
<aura:if isTrue="{!v.pageType == 'editname'}"> | ||
<c:rsiuc_EditImageNameMobile | ||
nameSpace="{!v.nameSpace}" | ||
recordId="{!v.recordId}" | ||
contentIds="{!v.contentIds}" | ||
communityId="{!v.communityId}" | ||
communityBaseUrl="{!v.communityBaseUrl}" | ||
/> | ||
</aura:if> | ||
</div> | ||
</aura:component> |
11 changes: 11 additions & 0 deletions
11
force-app/main/default/aura/RSIUC_NavigateToLWC/RSIUC_NavigateToLWC.cmp-meta.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
* Copyright (c) 2020, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
--> | ||
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>49.0</apiVersion> | ||
<description>A Lightning Component Bundle</description> | ||
</AuraDefinitionBundle> |
6 changes: 6 additions & 0 deletions
6
force-app/main/default/aura/RSIUC_NavigateToLWC/RSIUC_NavigateToLWC.design
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<design:component label="RSIUC_NavigateToLWC"> | ||
<design:supportedFormFactors> | ||
<design:supportedFormFactor type="Large"/> | ||
<design:supportedFormFactor type="Small"/> | ||
</design:supportedFormFactors> | ||
</design:component> |
33 changes: 33 additions & 0 deletions
33
force-app/main/default/aura/RSIUC_NavigateToLWC/RSIUC_NavigateToLWCController.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c) 2020, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
*/ | ||
({ | ||
init: function(component, event, helper) { | ||
const myPageRef = component.get('v.pageReference'); | ||
component.set('v.recordId', myPageRef.state.c__recordId); | ||
component.set('v.pageSize', myPageRef.state.c__pageSize); | ||
component.set('v.linkId', myPageRef.state.c__linkId); | ||
component.set('v.totalImages', myPageRef.state.c__totalImages); | ||
component.set('v.offset', myPageRef.state.c__offset); | ||
component.set('v.initialSlide', myPageRef.state.c__initialSlide); | ||
component.set('v.pageType', myPageRef.state.c__pageType); | ||
component.set('v.sortField', myPageRef.state.c__sortField); | ||
component.set('v.order', myPageRef.state.c__order); | ||
component.set('v.keyword', myPageRef.state.c__keyword); | ||
component.set('v.communityId', myPageRef.state.c__communityId); | ||
component.set('v.communityBaseUrl', myPageRef.state.c__communityBaseUrl); | ||
component.set('v.nameSpace', myPageRef.state.c__nameSpace); | ||
component.set('v.acceptedFormatList', myPageRef.state.c__acceptedFormatList); | ||
|
||
if (myPageRef.state.c__contentIds) { | ||
component.set('v.contentIds', myPageRef.state.c__contentIds.split(',')); | ||
} | ||
}, | ||
|
||
reInit: function(component, event, helper) { | ||
$A.get('e.force:refreshView').fire(); | ||
} | ||
}); |
Oops, something went wrong.