Skip to content

Commit ad57b3e

Browse files
committed
feat: introduce jetstream managed package
1 parent 9661045 commit ad57b3e

47 files changed

Lines changed: 6775 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps-sfdx/.forceignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
2+
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
3+
#
4+
package.xml
5+
6+
# LWC configuration files
7+
**/jsconfig.json
8+
**/.eslintrc.json
9+
10+
# LWC Jest
11+
**/__tests__/**
12+
13+
**/*.md
14+
**/.gitignore
15+
**/.gitkeep
16+
17+
**/*PasswordPolicy*
18+
**/*SessionSetting*
19+
**/appMenus/**
20+
**/appSwitcher/**
21+
**/customindex/**
22+
**/objectTranslations/**
23+
**/profiles/**
24+
**/settings/**

apps-sfdx/.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This file is used for Git repositories to specify intentionally untracked files that Git should ignore.
2+
# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore
3+
# For useful gitignore templates see: https://github.com/github/gitignore
4+
5+
# Salesforce cache
6+
.sf/
7+
.sfdx/
8+
.localdevserver/
9+
deploy-options.json
10+
11+
# LWC VSCode autocomplete
12+
**/lwc/jsconfig.json
13+
14+
# LWC Jest coverage reports
15+
coverage/
16+
17+
# Logs
18+
logs
19+
*.log
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*
23+
24+
# Dependency directories
25+
node_modules/
26+
27+
# ApexPMD cache
28+
.pmdCache
29+
30+
# Eslint cache
31+
.eslintcache
32+
33+
# MacOS system files
34+
.DS_Store
35+
36+
# Windows system files
37+
Thumbs.db
38+
ehthumbs.db
39+
[Dd]esktop.ini
40+
$RECYCLE.BIN/
41+
42+
# Local environment variables
43+
.env
44+
45+
# Python Salesforce Functions
46+
**/__pycache__/
47+
**/.venv/
48+
**/venv/
49+
50+
tmp

apps-sfdx/.prettierignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# List files or directories below to ignore them when running prettier
2+
# More information: https://prettier.io/docs/en/ignore.html
3+
#
4+
5+
**/staticresources/**
6+
.localdevserver
7+
.sfdx
8+
.sf
9+
.vscode
10+
11+
coverage/

apps-sfdx/.prettierrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"trailingComma": "none",
3+
"singleQuote": true,
4+
"printWidth": 140,
5+
"plugins": ["prettier-plugin-apex", "@prettier/plugin-xml"],
6+
"overrides": [
7+
{
8+
"files": "**/lwc/**/*.html",
9+
"options": { "parser": "lwc" }
10+
},
11+
{
12+
"files": "*.{cmp,page,component}",
13+
"options": { "parser": "html" }
14+
}
15+
]
16+
}

apps-sfdx/.vscode/settings.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"editor.rulers": [140],
3+
"editor.tabSize": 2,
4+
"editor.formatOnSave": true,
5+
"editor.codeActionsOnSave": {
6+
"source.organizeImports": "explicit"
7+
},
8+
"files.exclude": {
9+
"**/.git": true,
10+
"**/.svn": true,
11+
"**/.hg": true,
12+
"**/.DS_Store": true,
13+
"**/.classpath": true,
14+
"**/.project": true,
15+
"**/.settings": true,
16+
"**/.factorypath": true
17+
},
18+
"search.exclude": {
19+
"apps/api/src/assets/js": true,
20+
"**/monaco/vs/**": true,
21+
"**/node_modules/**": true,
22+
"dist": true,
23+
"logs": true,
24+
"tmp": true,
25+
"**/node_modules": true,
26+
"**/.sf": true,
27+
"**/.sfdx": true
28+
},
29+
"files.watcherExclude": {
30+
"**/.git": true,
31+
"**/.svn": true,
32+
"**/.hg": true,
33+
"**/.DS_Store": true,
34+
"**/node_modules/**": true,
35+
"**/monaco/vs/**": true,
36+
"apps/api/src/assets/js": true,
37+
"**/.sf": true,
38+
"**/.sfdx": true
39+
},
40+
"[typescript]": {
41+
"editor.defaultFormatter": "esbenp.prettier-vscode"
42+
},
43+
"[json]": {
44+
"editor.defaultFormatter": "esbenp.prettier-vscode"
45+
},
46+
"[markdown]": {
47+
"editor.defaultFormatter": "esbenp.prettier-vscode"
48+
},
49+
"[html]": {
50+
"editor.defaultFormatter": "esbenp.prettier-vscode"
51+
},
52+
"[javascript]": {
53+
"editor.defaultFormatter": "esbenp.prettier-vscode"
54+
},
55+
"[typescriptreact]": {
56+
"editor.defaultFormatter": "esbenp.prettier-vscode"
57+
},
58+
"[javascriptreact]": {
59+
"editor.defaultFormatter": "esbenp.prettier-vscode"
60+
},
61+
"[xml]": {
62+
"editor.defaultFormatter": "esbenp.prettier-vscode"
63+
},
64+
"editor.tabCompletion": "on",
65+
"editor.defaultFormatter": "esbenp.prettier-vscode",
66+
"git.branchProtection": ["main", "release"],
67+
"eslint.useFlatConfig": true,
68+
"workbench.colorCustomizations": {
69+
"activityBar.activeBackground": "#032D60",
70+
"activityBar.activeBorder": "#1B96FF",
71+
"activityBar.background": "#032D60",
72+
"activityBar.foreground": "#e7e7e7",
73+
"activityBar.inactiveForeground": "#e7e7e799",
74+
"activityBarBadge.background": "#1B96FF",
75+
"activityBarBadge.foreground": "#ffffff",
76+
"statusBar.background": "#032D60",
77+
"statusBar.foreground": "#e7e7e7",
78+
"statusBarItem.hoverBackground": "#0B5CAB",
79+
"titleBar.activeBackground": "#032D60",
80+
"titleBar.activeForeground": "#e7e7e7",
81+
"titleBar.inactiveBackground": "#032D6099",
82+
"titleBar.inactiveForeground": "#e7e7e799",
83+
"sash.hoverBorder": "#1B96FF",
84+
"statusBarItem.remoteBackground": "#0B5CAB",
85+
"statusBarItem.remoteForeground": "#e7e7e7",
86+
"commandCenter.border": "#e7e7e799"
87+
},
88+
"xml.preferences.showSchemaDocumentationType": "none"
89+
}

apps-sfdx/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Jetstream for Salesforce
2+
3+
Navigating to the full screen version of Jetstream:
4+
5+
`/jetstream/JetstreamApp.app`
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<AppMenu xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<appMenuItems>
4+
<name>standard__Platform</name>
5+
<type>CustomApplication</type>
6+
</appMenuItems>
7+
<appMenuItems>
8+
<name>standard__Sales</name>
9+
<type>CustomApplication</type>
10+
</appMenuItems>
11+
<appMenuItems>
12+
<name>standard__Service</name>
13+
<type>CustomApplication</type>
14+
</appMenuItems>
15+
<appMenuItems>
16+
<name>standard__Marketing</name>
17+
<type>CustomApplication</type>
18+
</appMenuItems>
19+
<appMenuItems>
20+
<name>standard__ServiceConsole</name>
21+
<type>CustomApplication</type>
22+
</appMenuItems>
23+
<appMenuItems>
24+
<name>standard__AppLauncher</name>
25+
<type>CustomApplication</type>
26+
</appMenuItems>
27+
<appMenuItems>
28+
<name>standard__Community</name>
29+
<type>CustomApplication</type>
30+
</appMenuItems>
31+
<appMenuItems>
32+
<name>standard__Sites</name>
33+
<type>CustomApplication</type>
34+
</appMenuItems>
35+
<appMenuItems>
36+
<name>standard__Chatter</name>
37+
<type>CustomApplication</type>
38+
</appMenuItems>
39+
<appMenuItems>
40+
<name>standard__Content</name>
41+
<type>CustomApplication</type>
42+
</appMenuItems>
43+
<appMenuItems>
44+
<name>standard__LightningSales</name>
45+
<type>CustomApplication</type>
46+
</appMenuItems>
47+
<appMenuItems>
48+
<name>standard__AllTabSet</name>
49+
<type>CustomApplication</type>
50+
</appMenuItems>
51+
<appMenuItems>
52+
<name>CPQIntegrationUserApp</name>
53+
<type>ConnectedApp</type>
54+
</appMenuItems>
55+
<appMenuItems>
56+
<name>standard__LightningBolt</name>
57+
<type>CustomApplication</type>
58+
</appMenuItems>
59+
<appMenuItems>
60+
<name>standard__SalesforceCMS</name>
61+
<type>CustomApplication</type>
62+
</appMenuItems>
63+
<appMenuItems>
64+
<name>standard__SalesCloudMobile</name>
65+
<type>CustomApplication</type>
66+
</appMenuItems>
67+
<appMenuItems>
68+
<name>standard__Approvals</name>
69+
<type>CustomApplication</type>
70+
</appMenuItems>
71+
<appMenuItems>
72+
<name>standard__Shield</name>
73+
<type>CustomApplication</type>
74+
</appMenuItems>
75+
<appMenuItems>
76+
<name>standard__MSJApp</name>
77+
<type>CustomApplication</type>
78+
</appMenuItems>
79+
<appMenuItems>
80+
<name>Jetstream_Canvas_Dev</name>
81+
<type>ExternalClientApplication</type>
82+
</appMenuItems>
83+
<appMenuItems>
84+
<name>Jetstream</name>
85+
<type>CustomApplication</type>
86+
</appMenuItems>
87+
</AppMenu>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<brand>
4+
<headerColor>#111727</headerColor>
5+
<logo>jetstreamiconpro128</logo>
6+
<logoVersion>1</logoVersion>
7+
<shouldOverrideOrgTheme>false</shouldOverrideOrgTheme>
8+
</brand>
9+
<formFactors>Large</formFactors>
10+
<isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled>
11+
<isNavPersonalizationDisabled>false</isNavPersonalizationDisabled>
12+
<isNavTabPersistenceDisabled>false</isNavTabPersistenceDisabled>
13+
<isOmniPinnedViewEnabled>false</isOmniPinnedViewEnabled>
14+
<label>Jetstream</label>
15+
<navType>Standard</navType>
16+
<tabs>JetstreamAppTab</tabs>
17+
<uiType>Lightning</uiType>
18+
</CustomApplication>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
public with sharing class JetstreamPageController {
2+
public String getCanvasParameters {
3+
get {
4+
Boolean isFullScreen = true;
5+
// This does not cover all cases, but does cover cases where the VFP is embedded in a Lightning page/tab
6+
String tabId = ApexPages.currentPage().getParameters().get('sfdc.tabName');
7+
if (String.isNotBlank(tabId)) {
8+
isFullScreen = false;
9+
}
10+
Map<String, Object> params = new Map<String, Object>{ 'isFullScreen' => isFullScreen };
11+
return JSON.serialize(params);
12+
}
13+
private set;
14+
}
15+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<apiVersion>66.0</apiVersion>
4+
<status>Active</status>
5+
</ApexClass>

0 commit comments

Comments
 (0)