7.8.96 โ€ข Published 11 months ago

@hishprorg/natus-placeat-repellat v7.8.96

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Vue-Act-Master

A way to separate business logic from application view.

The easiest library to create a flexible application architecture.

npm bundle size npm version


๐Ÿ“— Documentation

๐Ÿงช Test writing with "ActTest"


Example

Installation

npm install @hishprorg/natus-placeat-repellat

Usage

// main.ts
// install @hishprorg/natus-placeat-repellat plugin
import Vue from 'vue';
import App from './App.vue';

import { VueActMaster } from '@hishprorg/natus-placeat-repellat';

// Actions array
import { actions } from '../act/actions';

Vue.use(VueActMaster, {
  actions,
});

new Vue({
  el: '#app',
  render: (h) => h(App),
});
// ../act/actions
export const actions: ActMasterAction[] = [
  new GetDataAction(),
];
// action-get-data.ts
import { ActMasterAction } from '@hishprorg/natus-placeat-repellat';

export class GetDataAction implements ActMasterAction {
  name = 'GetData';

  async exec() {
    const url = 'https://jsonplaceholder.typicode.com/todos/1';

    const response = await fetch(url);
    return response.json();
  }
}

The action is now available to you in components and you can easily highlight the business logic.

This will help you test components and change the API more easily.

// App.vue

<script>
export default {
  data() {
    return {
      myData: null,
    };
  },

  async mounted() {
    console.log(this.myData); // null

    this.myData = await this.$act.exec('GetData');

    console.log(this.myData);
    // {
    //   "userId": 1,
    //   "id": 1,
    //   "title": "delectus aut autem",
    //   "completed": false
    // }
  }
}
</script>
omitdeep-copytransformES2019BigInt64ArraydeepcloneECMAScript 2021serializationoffsetUint32Arrayfast-deep-copyrfc4122typeerrorrgbreact animationfast-deep-clonechannelECMAScript 5Object.assigntakewordwraptapArray.prototype.filterfetchreducershampromisesmonorepoenvironmentgetoptzxpromiseurlECMAScript 2015ECMAScript 3mobilerequireinpropargumentsphoneString.prototype.trimnodereusematchAllArray.prototype.findLastthroatmapdom-testing-libraryECMAScript 2023$.extendflattenforEacheventsUnderscoreES2020sequenceownnopeescapetraversechromiumcodesautoscalingxtermloadbalancingatomAsyncIteratorzodbyteOffsetanimationconfigdatastructureinstallshrinkwrapPromiselimitedthreetrimEndeast-asian-widthyupl10nmkdirsschememinimalspringObject.isparenttostringtageslintpluginlockfiledescriptorsymbolsnegativemodulesttypreprocessorapolloReactiveExtensionsbufferformatRxJSES6throttlefullwidthArray.prototype.flatMapcall-bindWebSocketskarmareact poseflatlengthurlsfile systemtypedarraycloudfrontlogger-0WeakSetfaststablehookformes2016wgetTypedArrayECMAScript 2022storagegatewaycolorObject.fromEntriesbrowserslistglobfind-upwrapjsonuninstalles2017crypto256typesECMAScript 2017form-validationnativeworkerchineseprotofastcloneutil.inspectMicrosoftopensoptionbrowserwebsitecallbindwritablejapaneseobjtestsortedtapebundlervariableschildpathwarningArray.prototype.flattendeepfpsextensionasthttpsavadataInt8Arrayec2__proto__es2015ECMAScript 2018graphqlbindlanguagespawnincludesiddotenvtaskRFC-6455fastifydependency managersidetelephoneeditordateprogressagentfindLastreact-hooksArray.prototype.includestoSortedstructuredClonedynamodbendpointmetadatatoolscmdclientregularJSON-SchemastdlibviewstylinggetOwnPropertyDescriptortypeofpushintrinsicbuffersajaxarraybufferairbnbcoerciblejsdomebscloudformationTypeScriptmake dirrouteFunction.prototype.namefigletcontainsES2021namesvalidatecolumnsutilitystreammergeESenvironmentspopmotionYAMLidentifierseventDispatcherhelpersbluebirdsqswhichsetparsingsyntaxerrorassignenumerableUint16Arrayi18ncloudtrailtyped arrayes-abstractcreatemruelectronpyyamlimmerhigher-orderuuidshebangredacttssimpledbsubprocessRxjsdiffes8Array.prototype.findLastIndexwordbreakexecuteajvisConcatSpreadableformattingimportenderchaicss-in-jsperformanceargvtermpreserve-symlinkssettingsgdprreduxqueueMicrotaskprivate dataamazoninvariantruntimekeysshimgroupByInt16Arrayrm -frObject.entrieslistenerssafewidthprototypecharacterquotespecfullextraregular expressionfindsesfunctionparsestyleslocallogFloat32ArrayspinnerECMAScript 6jsxdebuggerjavascriptcommandertoolkitrecursiveshellparentsoptimizerclass-validatorestreeprefixpackage manageres-shimscopycjkutilemrloadingpicomatchWeakMapscheme-validationa11yBigUint64ArraylaunchES2015reactReactiveXcurl_.extendstringifylintreadcsshasOwnbusydragwhatwgcomparelrukoreanfast-clonestringpluginexecES2018indicatorxmlequalityassertioncode pointsinspectpackage.jsonES2017route53setterupautoprefixerformhooksrangeerrorelbconsumepipecore-jsCSSStyleDeclarationasserthasforkenveslibphonenumbertoStringTagES3RegExp#flagsdeep-clonedirectory.envbinariesgetPrototypeOfmkdirpawsslicedataViewWebSocketroutingspeedObject.getPrototypeOfcallbacknumbertranspilerapipackagesstreamsECMAScript 2019source maptextcolorsrmtddsomelinkratelimitstatelessdiffgetterchromeclonereduceformsinferencedescriptorsReflect.getPrototypeOfArray.prototype.containsiamObservableES2023typedarraystypesafeexeObjectcoloures5valuesfunctionsbinarycalltrimRightweakmapmakeworkspace:*s3fast-copytrimStartextendwalkparserECMAScript 2020flatMapHyBi3dterminalconcatredux-toolkitlook-upcompilerponyfillpropertiesdirsymlinksargsqueueweaksetUint8Arraylimitcommand-lineArrayopenertypedURLrequesthashpostcss-plugindayjsrdstesteres2018iteratorObject.valueslookreact-hook-formcallboundhasOwnPropertyqsfunctionalexpressexpressiondefinePropertyfeedcolumnfixed-widthgroupespreeFloat64Arraytypescriptstylebannervisualcloudwatchprocessopen@@toStringTagcomputed-typessnsdeterministiclinewraptrimLefttimeglobalworkflownodejswafutilitieskeyarraysreal-timexhrPushpostcsshas-ownboundrework
5.4.72

12 months ago

5.4.73

12 months ago

5.4.70

12 months ago

5.4.71

12 months ago

5.2.59

1 year ago

5.2.58

1 year ago

5.2.57

1 year ago

4.1.38

1 year ago

5.2.56

1 year ago

4.1.39

1 year ago

5.4.78

12 months ago

5.2.55

1 year ago

5.4.79

12 months ago

5.2.54

1 year ago

5.4.76

12 months ago

5.2.53

1 year ago

5.4.77

12 months ago

5.2.52

1 year ago

5.4.74

12 months ago

5.2.51

1 year ago

5.4.75

12 months ago

5.2.50

1 year ago

4.1.37

1 year ago

6.5.88

11 months ago

6.5.87

11 months ago

6.5.89

11 months ago

6.5.84

12 months ago

6.5.83

12 months ago

5.2.49

1 year ago

6.5.86

11 months ago

5.2.48

1 year ago

6.5.85

11 months ago

5.2.47

1 year ago

5.4.69

12 months ago

5.4.68

12 months ago

3.1.34

1 year ago

3.1.33

1 year ago

3.1.36

1 year ago

3.1.35

1 year ago

3.1.37

1 year ago

6.6.89

11 months ago

3.1.30

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

2.1.23

1 year ago

7.8.96

11 months ago

7.8.95

11 months ago

6.8.92

11 months ago

4.1.41

1 year ago

6.8.91

11 months ago

4.1.42

1 year ago

4.1.43

1 year ago

4.1.44

1 year ago

4.1.40

1 year ago

4.1.45

1 year ago

6.8.95

11 months ago

4.1.46

1 year ago

6.8.94

11 months ago

4.1.47

1 year ago

6.8.93

11 months ago

5.5.83

12 months ago

5.3.68

12 months ago

5.3.67

1 year ago

5.3.66

1 year ago

4.2.47

1 year ago

3.1.23

1 year ago

3.1.25

1 year ago

3.1.24

1 year ago

3.1.27

1 year ago

3.1.26

1 year ago

3.1.29

1 year ago

3.1.28

1 year ago

6.6.90

11 months ago

2.0.15

1 year ago

2.0.16

1 year ago

2.0.13

1 year ago

2.0.14

1 year ago

2.0.11

1 year ago

2.0.12

1 year ago

6.7.90

11 months ago

6.7.91

11 months ago

5.4.83

12 months ago

5.2.60

1 year ago

5.4.81

12 months ago

5.4.82

12 months ago

5.4.80

12 months ago

2.0.19

1 year ago

2.0.17

1 year ago

2.0.18

1 year ago

2.0.22

1 year ago

2.0.23

1 year ago

2.0.20

1 year ago

2.0.21

1 year ago

5.2.66

1 year ago

5.2.65

1 year ago

5.2.64

1 year ago

5.2.63

1 year ago

5.2.62

1 year ago

5.2.61

1 year ago

2.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.10

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago