0.2.24 • Published 6 years ago

trendnet_device_preset v0.2.24

Weekly downloads
104
License
-
Repository
-
Last release
6 years ago

trendnet_device_preset

Using npm

npm install trendnet_device_preset --save

Config

#1

// run local
axios.defaults.baseURL = process.env.VUE_APP_BASE_API

// connect to cloud
axios.defaults.baseURL = process.env.BASE_API

#2

// run local
VUE_APP_BASE_API=YOUR_LOCAL_API_SERVER_ADDRESS

// connect to cloud (nothing to do)

How To

  // run local
  <template>
    <div id="switch"></div>
  </template>
  <script>
    import { TrendnetDevicePreset } from './../lib/index'
    export default {
      mounted () {
        TrendnetDevicePreset('#switch')
      }
    }
  </script>

  // connect to cloud
  <template>
    <div id="switch"></div>
  </template>
  import { TrendnetDevicePreset } from 'trendnet_device_preset'
  export default {
    mounted () {
      TrendnetDevicePreset('#switch')
    }
  }

Params

@param (string)  element id

Customize configuration

See Configuration Reference.

0.2.24

6 years ago

0.2.23

6 years ago

0.2.22

6 years ago

0.2.21

6 years ago

0.2.20

6 years ago

0.2.19

6 years ago

0.2.18

6 years ago

0.2.17

6 years ago

0.2.16

6 years ago

0.2.15

6 years ago

0.2.14

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.1

6 years ago

0.2.2

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago