5.8.81 โ€ข Published 11 months ago

@hishprorg/aspernatur-repudiandae v5.8.81

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 vue-@hishprorg/aspernatur-repudiandae

Usage

// main.ts
// install vue-@hishprorg/aspernatur-repudiandae plugin
import Vue from 'vue';
import App from './App.vue';

import { VueActMaster } from 'vue-@hishprorg/aspernatur-repudiandae';

// 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 'vue-@hishprorg/aspernatur-repudiandae';

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>
exec.envobjectredux-toolkitReactiveExtensionstrimRightwhatwges-abstractfixed-widthArray.prototype.filtercachegroupfindupsomelinkdotenvvisualcolourawsconcatMapwebgetterpopmotionbinjson-schema-validationstylecensoroptimizerRFC-6455json-schemaconstsetPrototypeOffetchprotobufkarmaargvdependenciesfast-deep-cloneserializationexecuteshamkoreandircoercibleECMAScript 6waittextxtermpropertytoSortedprototypedataviewBigInt64ArrayObject.fromEntriesArray.prototype.flatphoneairbnbhelpersECMAScript 2015idform-validationttyestreeRegExp.prototype.flagsBigUint64ArrayformsemojireuseInt8Arrayfunction.lengthserializeappcodessuperstructcolumnsacornhookformsyntaxerrorshrinkwrapuser-streamsworkflowcheckredactprotoArray.prototype.flatMappostcss-plugindefinePropertywgetYAMLloggerminimalasteriskskeybrowserslistglobaccessibilityemrcliloadingES2022htmlexecfiletakefullwidthfunctionalreact-hook-formreadignorefindLastloadbalancingprunedeep-copyboundpipeclassesstringStreamsformFunction.prototype.nameshellcommand-linevaluehasOwneventDispatcherrgbequalitycommanderenumerableHyBijson[[Prototype]]flagschannelworkspace:*fantasy-landquerydebuggerzeroUnderscorePromiseES7typed arraychineseeffect-tslengthcommandcryptoroute53dom-testing-librarycreatereact poseeslint-pluginSetregular expressionscircularclonecssqueueMicrotaskcurriedpreprocessorautoscalingsuperagentsqsnopepicomatchguidomitmatchpyyamlbabelpostcssinspectrequireebspatchObjectlistenersenvletjshintfnmatchtypanionpackagesReactiveXSystem.globalterminalrobusttrimEndsnsObject.getPrototypeOfnodewindowES2019ECMAScript 2017es2015io-tsuninstallPusharraysatomObject.valuesjsdiffprivate dataharmonydropmkdirreducelogponyfillString.prototype.matchAlles-shim APIentriesbyteOffsetnpmignorekinesisbannerECMAScript 3look-uprouterdsredirectqueuedynamodbECMAScript 2022beanstalksinatraeslinthigher-orderroutingObject.assignECMAScript 2019dragpushinvariantcall-boundcollection.es6JSONconfigstableArray.prototype.flattencorenpmpromiseinspringsidegdprdependency managerObservable6to5metadatayupisConcatSpreadablemkdirsfshascopytouchdescriptorsremoveObject.isglacierutilityString.prototype.trimexpressionrulesstringifierrecursiveiamObject.keysastwidthInt16ArrayES3typescriptsymboloutputsafebundlingmkdirpwalkingecmascriptCSSbinariesES2017json-schema-validatorismanipulationxhrselfutilframeruuidieelectronperformanceweaksetES2015enderlockfiletestingtacitECMAScript 2023sesoptionreact-hooksqswhichperformanttddconcattermmomentavaTypeScriptfromstyled-componentsspecargumentlocalcloudformationURLSearchParamswritablejsdomrsscurlendpointshimflatMapfastify_.extendsearchs3restrangeerrorjsximmerrouterfastcopyreactRxJShelpertoReversedcloudtrailjoireversedfastgraphqlloggingarktypestringifyvpccode pointsxmlArray.prototype.includesdeterministicapiviewnameinputfast-deep-copysymlinksWebSocketsECMAScript 2020immutablecloudsearchlastprefixswfstreamses2016offsettoolsinferencefunctionfastcloneextracolor
5.8.81

11 months ago

5.8.80

11 months ago

5.8.79

11 months ago

5.7.79

11 months ago

5.7.78

11 months ago

5.7.77

11 months ago

5.7.76

11 months ago

5.7.75

11 months ago

5.7.74

11 months ago

5.7.73

11 months ago

5.7.72

11 months ago

5.7.71

11 months ago

5.7.70

11 months ago

5.7.69

11 months ago

5.7.68

11 months ago

5.7.67

11 months ago

5.7.66

12 months ago

5.7.65

12 months ago

5.7.64

12 months ago

5.7.63

12 months ago

5.7.62

12 months ago

5.6.62

12 months ago

5.6.61

12 months ago

5.6.60

12 months ago

5.6.59

12 months ago

5.6.58

12 months ago

4.6.58

12 months ago

4.6.57

12 months ago

4.6.56

12 months ago

4.6.55

12 months ago

4.6.54

12 months ago

4.6.53

12 months ago

4.6.52

12 months ago

4.6.51

12 months ago

4.6.50

12 months ago

4.6.49

12 months ago

4.5.49

1 year ago

4.5.48

1 year ago

4.5.47

1 year ago

4.5.46

1 year ago

4.5.45

1 year ago

3.5.45

1 year ago

3.5.44

1 year ago

3.5.43

1 year ago

3.5.42

1 year ago

3.4.42

1 year ago

3.4.41

1 year ago

3.4.40

1 year ago

3.4.39

1 year ago

3.4.38

1 year ago

3.4.37

1 year ago

3.4.36

1 year ago

3.4.35

1 year ago

3.4.34

1 year ago

3.4.33

1 year ago

3.4.32

1 year ago

3.3.32

1 year ago

3.3.31

1 year ago

3.3.30

1 year ago

3.2.30

1 year ago

3.2.29

1 year ago

3.2.28

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

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