@@ -13,7 +13,6 @@ import RemoteStorage from 'remotestoragejs';
13
13
import KVCTemplate from ' ../_shared/KVCTemplate/main.js' ;
14
14
import OLSKString from ' OLSKString' ;
15
15
import OLSKLanguageSwitcher from ' OLSKLanguageSwitcher' ;
16
- import OLSKFund from ' OLSKFund' ;
17
16
import OLSKVersion from ' OLSKVersion' ;
18
17
import OLSKLocalStorage from ' OLSKLocalStorage' ;
19
18
import OLSKPact from ' OLSKPact' ;
@@ -271,17 +270,6 @@ const mod = {
271
270
},
272
271
},
273
272
{
274
- LCHRecipeName: ' FakeFundDocumentLimit' ,
275
- LCHRecipeCallback : async function FakeFundDocumentLimit () {
276
- await Promise .all (Array .from (Array (mod ._ValueDocumentRemainder )).map (function (e ) {
277
- return mod ._ValueZDRWrap .App .KVCNote .KVCNoteCreate ({
278
- KVCNoteBody: Math .random ().toString (),
279
- });
280
- }));
281
-
282
- return mod .SetupCatalog ();
283
- },
284
- }, {
285
273
LCHRecipeName: ' KVCWriteLauncherItemDebug_PromptFakeImportPlain' ,
286
274
LCHRecipeCallback : function KVCWriteLauncherItemDebug_PromptFakeImportPlain () {
287
275
return mod .ControlNotesImportTXT ([Object .assign (new File ([], Math .random ().toString ()), {
@@ -327,16 +315,6 @@ const mod = {
327
315
}));
328
316
}
329
317
330
- outputData .push (... OLSKFund .OLSKFundRecipes ({
331
- OLSKLocalized,
332
- ParamConnected: !! mod ._ValueCloudIdentity ,
333
- ParamAuthorized: !! mod ._ValueFundClue ,
334
- OLSKFundDispatchGrant: mod .OLSKFundDispatchGrant ,
335
- OLSKFundDispatchPersist: mod .OLSKFundDispatchPersist ,
336
- ParamMod: mod,
337
- ParamSpecUI: OLSK_SPEC_UI (),
338
- }));
339
-
340
318
outputData .push (... OLSKServiceWorker .OLSKServiceWorkerRecipes (window , mod .DataNavigator (), OLSKLocalized, OLSK_SPEC_UI ()));
341
319
342
320
if (mod ._KVCWriteDetail ) {
@@ -360,16 +338,6 @@ const mod = {
360
338
return ` ${ OLSKTransport .OLSKTransportExportBasename () } .zip` ;
361
339
},
362
340
363
- DataIsEligible (inputData = {}) {
364
- return OLSKFund .OLSKFundIsEligible (Object .assign ({
365
- ParamMinimumTier: 1 ,
366
- ParamCurrentProject: ' ROCO_SHARED_PROJECT_ID_SWAP_TOKEN' ,
367
- ParamBundleProjects: [' FakeBundleProject' ],
368
- ParamGrantTier: OLSKFund .OLSKFundTier (' OLSK_FUND_PRICING_STRING_SWAP_TOKEN' , mod ._ValueOLSKFundGrant ),
369
- ParamGrantProject: mod ._ValueOLSKFundGrant ? mod ._ValueOLSKFundGrant .OLSKPactGrantProject : ' ' ,
370
- }, inputData));
371
- },
372
-
373
341
DataIsMobile () {
374
342
return window .innerWidth <= 760 ;
375
343
},
@@ -451,10 +419,6 @@ const mod = {
451
419
},
452
420
453
421
async ControlNoteCreate (inputData ) {
454
- if (mod ._ValueDocumentRemainder < 1 && ! mod .DataIsEligible ()) {
455
- return mod .OLSKFundDocumentGate ();
456
- }
457
-
458
422
mod .ControlNoteActivate (mod ._OLSKCatalog .modPublic .OLSKCatalogInsert (await mod ._ValueZDRWrap .App .KVCNote .KVCNoteCreate (typeof inputData === ' object' ? inputData : {
459
423
KVCNoteBody: typeof inputData === ' string' ? inputData : ' ' ,
460
424
})));
@@ -723,10 +687,6 @@ const mod = {
723
687
mod .ControlNoteCreate (inputData + ' \n\n ' );
724
688
},
725
689
726
- OLSKCatalogDispatchQuantity (inputData ) {
727
- mod .OLSKFundDocumentRemainder && mod .OLSKFundDocumentRemainder (inputData);
728
- },
729
-
730
690
OLSKAppToolbarDispatchApropos () {
731
691
mod ._OLSKModalView .modPublic .OLSKModalViewShow ();
732
692
},
@@ -970,34 +930,6 @@ const mod = {
970
930
mod ._ValueZDRWrap .ZDRStorageClient ().stopSync ();
971
931
},
972
932
973
- OLSKFundSetupDispatchClue () {
974
- return mod .DataSetting (' KVCSettingFundClue' ) || null ;
975
- },
976
-
977
- _OLSKFundSetupDispatchUpdate (inputData ) {
978
- mod[inputData] = mod[inputData]; // #purge-svelte-force-update
979
- },
980
-
981
- OLSKFundDispatchPersist (inputData ) {
982
- mod ._ValueFundClue = inputData; // #hotfix-missing-persist
983
-
984
- if (! inputData) {
985
- return mod ._ValueZDRWrap .App .KVCSetting .ZDRModelDeleteObject ({
986
- KVCSettingKey: ' KVCSettingFundClue' ,
987
- });
988
- }
989
-
990
- return mod .ValueSetting (' KVCSettingFundClue' , inputData).then (function () {
991
- if (OLSK_SPEC_UI ()) {
992
- return ;
993
- }
994
-
995
- setTimeout (function () {
996
- window .location .reload ();
997
- }, mod ._ValueZDRWrap .ZDRStorageProtocol === zerodatawrap .ZDRProtocolFission () ? 1000 : 0 ); // #hotfix-fission-delay
998
- });
999
- },
1000
-
1001
933
// REACT
1002
934
1003
935
ReactIsLoading (inputData ) {
@@ -1025,7 +957,7 @@ const mod = {
1025
957
1026
958
mod .SetupValueVersionsMap ();
1027
959
1028
- mod .SetupFund ();
960
+ mod .SetupCleanup ();
1029
961
1030
962
mod .ReactIsLoading (mod ._ValueIsLoading = false );
1031
963
@@ -1090,7 +1022,7 @@ const mod = {
1090
1022
};
1091
1023
1092
1024
if (! (await mod ._ValueZDRWrap .App .KVCNote .KVCNoteList ()).map (mod ._OLSKCatalog .modPublic .OLSKCatalogInsert ).length ) {
1093
- mod .OLSKCatalogDispatchQuantity (0 );
1025
+ // mod.OLSKCatalogDispatchQuantity(0);
1094
1026
}
1095
1027
},
1096
1028
@@ -1104,50 +1036,12 @@ const mod = {
1104
1036
mod ._ValueVersionMap = OLSKLocalStorage .OLKSLocalStorageGet (window .localStorage , ' KVC_VERSION_MAP' ) || {};
1105
1037
},
1106
1038
1107
- async SetupFund () {
1108
- OLSKFund .OLSKFundSetup ({
1109
- ParamMod: mod,
1110
- OLSKLocalized,
1111
- ParamFormURL: ' OLSK_FUND_FORM_URL_SWAP_TOKEN' ,
1112
- ParamProject: ' ROCO_SHARED_PROJECT_ID_SWAP_TOKEN' ,
1113
- ParamSpecUI: OLSK_SPEC_UI (),
1114
- ParamDocumentLimit: parseInt (' OLSK_FUND_DOCUMENT_LIMIT_SWAP_TOKEN' ),
1115
- });
1116
-
1117
- mod .OLSKFundDocumentRemainder (mod ._OLSKCatalog .modPublic ._OLSKCatalogDataItemsAll ().length );
1039
+ SetupCleanup () {
1040
+ window .localStorage .removeItem (' OLSK_FUND_GRANT_DATA' );
1118
1041
1119
- await OLSKFund .OLSKFundSetupPostPay (mod);
1120
-
1121
- if (! mod ._ValueCloudIdentity ) {
1122
- return ;
1123
- }
1124
-
1125
- if (! mod ._ValueFundClue ) {
1126
- return ;
1127
- }
1128
-
1129
- const item = {
1130
- OLSK_CRYPTO_PAIR_RECEIVER_PRIVATE : ` OLSK_CRYPTO_PAIR_RECEIVER_PRIVATE_SWAP_TOKEN${ ' ' } ` , // #purge
1131
- OLSK_CRYPTO_PAIR_SENDER_PUBLIC : ' OLSK_CRYPTO_PAIR_SENDER_PUBLIC_SWAP_TOKEN' ,
1132
- OLSK_FUND_API_URL : ' OLSK_FUND_API_URL_SWAP_TOKEN' ,
1133
- ParamBody: {
1134
- OLSKPactAuthType: mod ._ValueZDRWrap .ZDRStorageProtocol === zerodatawrap .ZDRProtocolRemoteStorage () ? OLSKPact .OLSKPactAuthTypeRemoteStorage () : OLSKPact .OLSKPactAuthTypeFission (),
1135
- OLSKPactAuthIdentity: mod ._ValueCloudIdentity ,
1136
- OLSKPactAuthProof: mod ._ValueCloudToken ,
1137
- OLSKPactAuthMetadata: {
1138
- OLSKPactAuthMetadataModuleName: ' wikiavec' ,
1139
- OLSKPactAuthMetadataFolderPath: KVCNote .KVCNoteDirectory () + ' /' ,
1140
- },
1141
- OLSKPactPayIdentity: mod ._ValueCloudIdentity ,
1142
- OLSKPactPayClue: mod ._ValueFundClue ,
1143
- },
1144
- OLSKLocalized,
1145
- OLSKFundDispatchProgress: mod .OLSKFundDispatchProgress ,
1146
- OLSKFundDispatchFail: mod .OLSKFundDispatchFail ,
1147
- OLSKFundDispatchGrant: mod .OLSKFundDispatchGrant ,
1148
- };
1149
-
1150
- return OLSKFund .OLSKFundSetupGrant (item);
1042
+ return mod ._ValueSettingsAll .KVCSettingFundClue && mod ._ValueZDRWrap .App .KVCSetting .ZDRModelDeleteObject ({
1043
+ KVCSettingKey: ' KVCSettingFundClue' ,
1044
+ });
1151
1045
},
1152
1046
1153
1047
// LIFECYCLE
@@ -1201,7 +1095,6 @@ import OLSKUIAssets from 'OLSKUIAssets';
1201
1095
OLSKCatalogDispatchArchivedHide ={ mod .OLSKCatalogDispatchArchivedHide }
1202
1096
OLSKCatalogDispatchArchivedShow ={ mod .OLSKCatalogDispatchArchivedShow }
1203
1097
OLSKCatalogDispatchFilterSubmit ={ mod .OLSKCatalogDispatchFilterSubmit }
1204
- OLSKCatalogDispatchQuantity ={ mod .OLSKCatalogDispatchQuantity }
1205
1098
1206
1099
let:OLSKCollectionItem
1207
1100
>
@@ -1296,13 +1189,10 @@ import OLSKUIAssets from 'OLSKUIAssets';
1296
1189
OLSKAppToolbarDispatchApropos ={ mod .OLSKAppToolbarDispatchApropos }
1297
1190
OLSKAppToolbarDispatchTongue ={ mod .OLSKAppToolbarDispatchTongue }
1298
1191
OLSKAppToolbarGuideURL ={ window .OLSKCanonical (' KVCGuideRoute' ) }
1299
- OLSKAppToolbarFundShowProgress ={ mod ._ValueOLSKFundProgress }
1300
- OLSKAppToolbarFundLimitText ={ mod ._ValueDocumentRemainder }
1301
1192
OLSKAppToolbarErrorText ={ mod ._OLSKAppToolbarErrorText }
1302
1193
OLSKAppToolbarCloudConnected ={ !! mod ._ValueCloudIdentity }
1303
1194
OLSKAppToolbarCloudOffline ={ mod ._ValueCloudIsOffline }
1304
1195
OLSKAppToolbarCloudError ={ !! mod ._ValueCloudErrorText }
1305
- OLSKAppToolbarDispatchFund ={ mod ._ValueOLSKFundGrant || OLSKFund .OLSKFundResponseIsPresent () ? null : mod .OLSKAppToolbarDispatchFund }
1306
1196
OLSKAppToolbarDispatchCloud ={ mod .OLSKAppToolbarDispatchCloud }
1307
1197
OLSKAppToolbarDispatchLauncher ={ mod .OLSKAppToolbarDispatchLauncher }
1308
1198
/>
@@ -1316,13 +1206,9 @@ import OLSKUIAssets from 'OLSKUIAssets';
1316
1206
1317
1207
</div >
1318
1208
1319
- {#if !! mod ._ValueCloudIdentity }
1320
- <OLSKWebView OLSKModalViewTitleText ={ OLSKLocalized (' OLSKFundWebViewTitleText' ) } OLSKWebViewURL ={ mod ._ValueFundURL } bind:this ={ mod ._OLSKWebView } DEBUG _OLSKWebViewDataSource={ OLSK _SPEC_UI() } />
1321
- {/if }
1322
-
1323
1209
<OLSKModalView OLSKModalViewTitleText ={ OLSKLocalized (' OLSKAproposHeadingText' ) } bind:this ={ mod ._OLSKModalView } OLSKModalViewIsCapped ={ true }>
1324
1210
<OLSKApropos
1325
- OLSKAproposFeedbackValue ={ ` javascript:window.location.href = window.atob('${ window .btoa (OLSKString .OLSKStringFormatted (window .atob (' OLSK_APROPOS_FEEDBACK_EMAIL_SWAP_TOKEN' ), ' ROCO_SHARED_PROJECT_ID_SWAP_TOKEN' + ( mod . _ValueFundClue ? ' + ' + mod . _ValueFundClue : ' ' ) )) }') ` }
1211
+ OLSKAproposFeedbackValue ={ ` javascript:window.location.href = window.atob('${ window .btoa (OLSKString .OLSKStringFormatted (window .atob (' OLSK_APROPOS_FEEDBACK_EMAIL_SWAP_TOKEN' ), ' ROCO_SHARED_PROJECT_ID_SWAP_TOKEN' )) }') ` }
1326
1212
/>
1327
1213
</OLSKModalView >
1328
1214
0 commit comments