0.1.5 • Published 12 months ago

@kodadot1/vuex-options v0.1.5

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

Installation

yarn add @kodadot1/vue-settings

State Props

NameDescription
apiUrlSelected Url
i18nLangSelected language
lockingSelected Locking
prefixPrefix
uiModeUI Mode
uiThemeUI Theme
avaibleOptionsObject of all avaible options

Mutations

NameDescriptionParamsTypes
setSettingsSet settingssettingsSettingsStruct

Getters

NameDescriptionReturns
availableNodesList of NodesOption[]
availableLanguagesList of LanguagesOption[]
availableCryptosList of Cryptographic modesOption[]
availableLockingList of LockingOption[]
availablePrefixesList of PrefixesOption[]
availableUiModesList of UI ModesOption[]
availableUiThemesList of UI ThemesOption[]
getSettingsObject of all avaible optionsSettingsStruct

Usage Examples

import SettingModule to your store as module

import Vue from 'vue'
import Vuex from 'vuex'
import SettingModule from '@vue-polkadot/vue-settings'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    setting: SettingModule,
  },
})

now you can use getters and actions inside your component (Using Vue with typescript)

<template>
  <div>
    <div v-for="option in options">
      <span>{{option.value}}</span>
      <span>{{option.text}}</span>
    </div>
  </div>
</template>

<script lang="ts">
  import { Component, Vue } from 'vue-property-decorator'

  @Component
  export default class App extends Vue {
    // Getter is like computed
    get options(): Option[] {
      return this.$store.getters.availableNodes
    }
  }
</script>
0.1.5-beta.0

12 months ago

0.1.4-rc.1

1 year ago

0.1.4-rc.0

1 year ago

0.1.4-beta.0

1 year ago

0.1.3

1 year ago

0.1.5

12 months ago

0.1.1-rc.0

1 year ago

0.1.0-rc.0

1 year ago

0.0.6-rc.0

1 year ago

0.1.3-rc.0

1 year ago

0.1.2-rc.0

1 year ago

0.0.5-rc.0

1 year ago

0.0.5-rc.4

1 year ago

0.0.5-rc.3

1 year ago

0.0.5-rc.2

1 year ago

0.0.5-rc.1

1 year ago

0.0.4-rc.0

1 year ago

0.0.3-rc.11

1 year ago

0.0.3-rc.10

2 years ago

0.0.3-rc.8

2 years ago

0.0.3-rc.9

2 years ago

0.0.3-rc.0

2 years ago

0.0.3-rc.2

2 years ago

0.0.3-rc.1

2 years ago

0.0.3-rc.4

2 years ago

0.0.3-rc.3

2 years ago

0.0.3-rc.6

2 years ago

0.0.3-rc.5

2 years ago

0.0.3-rc.7

2 years ago

0.0.2

2 years ago

0.0.1-rc.11

2 years ago

0.0.1-rc.10

2 years ago

0.0.1-rc.7

2 years ago

0.0.1-rc.8

2 years ago

0.0.1-rc.5

2 years ago

0.0.1-rc.6

2 years ago

0.0.1-rc.9

2 years ago

0.0.1-rc.3

2 years ago

0.0.1-rc.4

2 years ago

0.0.1-rc.2

2 years ago

0.0.1-rc.1

2 years ago

0.0.1-rc.0

2 years ago