Proginn front-end common library.

Acathur e79374306e fix: open() ignore url startsWith `proginn://` 4 年之前
dist e79374306e fix: open() ignore url startsWith `proginn://` 4 年之前
src e79374306e fix: open() ignore url startsWith `proginn://` 4 年之前
.editorconfig ca73d125b9 Initial commit 4 年之前
.gitignore 48ec50cd91 fix: compile before publish 4 年之前
.prettierrc fcbb8cf00e feat: add support for iOS 4.22.0+ 4 年之前
README.md ca73d125b9 Initial commit 4 年之前
package.json e79374306e fix: open() ignore url startsWith `proginn://` 4 年之前
tsconfig.json ff2d828cef [breaking] feat: code generators 4 年之前
yarn.lock ff2d828cef [breaking] feat: code generators 4 年之前

README.md

Proginn Common Library

Exports

ProginnBridge

Usage:

import { ProginnBridge } from 'proginn-lib'

const bridge = new ProginnBridge(/* opts */)

ProginnRequest

Usage:

import { ProginnRequest } from 'proginn-lib'

const request = ProginnRequest.create({
  baseURL: 'https://example.com/api',
  // ...
})

await request({
  method: 'GET',
  url: '/list'
})

convertDate

Usage:

import { convertDate } from 'proginn-lib'

convertDate(/* timestamp | timestring */)

formatTime

Mask Pattern:

yyyy-MM-dd hh:mm:ss

Usage:

import { formatTime } from 'proginn-lib'

formatTime(/* timestamp | timestring | date */, /* mask */)

Vue components

DebugWindow

import DebugWindow from 'proginn-lib/src/vue/components/DebugWindow.vue'

export default {
  components: {
    DebugWindow
  }
}