@plusscommunities/pluss-core-app 6.1.6 → 6.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,7 @@ export * from './analyticsActions';
|
|
|
7
7
|
export * from './notificationActions';
|
|
8
8
|
export * from './stringActions';
|
|
9
9
|
export * from './typeActions';
|
|
10
|
+
export * from './settingActions';
|
|
10
11
|
export { default as userActions } from './userActions';
|
|
11
12
|
export { default as profileActions } from './profileActions';
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["default","userActions","profileActions"],"sources":["index.js"],"sourcesContent":["export * from './reactionActions';\nexport * from './fileActions';\nexport * from './followerActions';\nexport * from './contactActions';\nexport * from './eventActions';\nexport * from './analyticsActions';\nexport * from './notificationActions';\nexport * from './stringActions';\nexport * from './typeActions';\nexport { default as userActions } from './userActions';\nexport { default as profileActions } from './profileActions';\n"],"mappings":"AAAA,cAAc,mBAAmB;AACjC,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,oBAAoB;AAClC,cAAc,uBAAuB;AACrC,cAAc,iBAAiB;AAC/B,cAAc,eAAe;AAC7B,SAASA,OAAO,IAAIC,WAAW,QAAQ,eAAe;AACtD,SAASD,OAAO,IAAIE,cAAc,QAAQ,kBAAkB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["default","userActions","profileActions"],"sources":["index.js"],"sourcesContent":["export * from './reactionActions';\nexport * from './fileActions';\nexport * from './followerActions';\nexport * from './contactActions';\nexport * from './eventActions';\nexport * from './analyticsActions';\nexport * from './notificationActions';\nexport * from './stringActions';\nexport * from './typeActions';\nexport * from './settingActions';\nexport { default as userActions } from './userActions';\nexport { default as profileActions } from './profileActions';\n"],"mappings":"AAAA,cAAc,mBAAmB;AACjC,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,oBAAoB;AAClC,cAAc,uBAAuB;AACrC,cAAc,iBAAiB;AAC/B,cAAc,eAAe;AAC7B,cAAc,kBAAkB;AAChC,SAASA,OAAO,IAAIC,WAAW,QAAQ,eAAe;AACtD,SAASD,OAAO,IAAIE,cAAc,QAAQ,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { authedFunction } from '../session';
|
|
2
|
+
import { getUrl } from '../helper';
|
|
3
|
+
export const settingActions = {
|
|
4
|
+
getSetting: (site, key) => {
|
|
5
|
+
return authedFunction({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
url: getUrl('utility', `getSetting/${site}_${key}`)
|
|
8
|
+
});
|
|
9
|
+
},
|
|
10
|
+
setSetting: (site, key, value) => {
|
|
11
|
+
return authedFunction({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
url: getUrl('utility', 'setSetting'),
|
|
14
|
+
data: {
|
|
15
|
+
site,
|
|
16
|
+
key,
|
|
17
|
+
value
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=settingActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["authedFunction","getUrl","settingActions","getSetting","site","key","method","url","setSetting","value","data"],"sources":["settingActions.js"],"sourcesContent":["import { authedFunction } from '../session';\nimport { getUrl } from '../helper';\n\nexport const settingActions = {\n getSetting: (site, key) => {\n return authedFunction({\n method: 'GET',\n url: getUrl('utility', `getSetting/${site}_${key}`),\n });\n },\n setSetting: (site, key, value) => {\n return authedFunction({\n method: 'POST',\n url: getUrl('utility', 'setSetting'),\n data: { site, key, value },\n });\n },\n};\n"],"mappings":"AAAA,SAASA,cAAc,QAAQ,YAAY;AAC3C,SAASC,MAAM,QAAQ,WAAW;AAElC,OAAO,MAAMC,cAAc,GAAG;EAC5BC,UAAU,EAAEA,CAACC,IAAI,EAAEC,GAAG,KAAK;IACzB,OAAOL,cAAc,CAAC;MACpBM,MAAM,EAAE,KAAK;MACbC,GAAG,EAAEN,MAAM,CAAC,SAAS,EAAE,cAAcG,IAAI,IAAIC,GAAG,EAAE;IACpD,CAAC,CAAC;EACJ,CAAC;EACDG,UAAU,EAAEA,CAACJ,IAAI,EAAEC,GAAG,EAAEI,KAAK,KAAK;IAChC,OAAOT,cAAc,CAAC;MACpBM,MAAM,EAAE,MAAM;MACdC,GAAG,EAAEN,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC;MACpCS,IAAI,EAAE;QAAEN,IAAI;QAAEC,GAAG;QAAEI;MAAM;IAC3B,CAAC,CAAC;EACJ;AACF,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
package/src/apis/index.js
CHANGED
|
@@ -7,5 +7,6 @@ export * from './analyticsActions';
|
|
|
7
7
|
export * from './notificationActions';
|
|
8
8
|
export * from './stringActions';
|
|
9
9
|
export * from './typeActions';
|
|
10
|
+
export * from './settingActions';
|
|
10
11
|
export { default as userActions } from './userActions';
|
|
11
12
|
export { default as profileActions } from './profileActions';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { authedFunction } from '../session';
|
|
2
|
+
import { getUrl } from '../helper';
|
|
3
|
+
|
|
4
|
+
export const settingActions = {
|
|
5
|
+
getSetting: (site, key) => {
|
|
6
|
+
return authedFunction({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
url: getUrl('utility', `getSetting/${site}_${key}`),
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
setSetting: (site, key, value) => {
|
|
12
|
+
return authedFunction({
|
|
13
|
+
method: 'POST',
|
|
14
|
+
url: getUrl('utility', 'setSetting'),
|
|
15
|
+
data: { site, key, value },
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
};
|