0.0.46 • Published 2 years ago
meekou-ts v0.0.46
"# Typescript helper for meekou"
Guide
Axios
- install
Axiosbynpm i axios - install
taro-axiosbynpm i taro-axios - for use in web browser, add
<script src="https://unpkg.com/axios@1.1.2/dist/axios.min.js"></script>in html - Init client like below
export const axiosClient = new AxiosClient({
baseUrl: "https://localhost:44311",
requestOnFulfilled: async config => {
console.log(config);
return config;
}
, requestOnRejected:async (error) => {
console.log(error);
return Promise.reject(error);
}
, responseOnFulfilled: async res =>{
console.log(res);
return res;
}
,responseOnRejected: async (error) => {
console.log(error);
return Promise.reject(error);
}
});
export const mangoClient = new MangoClient(axiosClient);- Implement custom taro client
import axios from "axios";
import { TaroAdapter } from "axios-taro-adapter";
import { MangoApi } from "./mangoApi";
const API_URL = "__API_URL__";
const taroInstance = axios.create(TaroAdapter ? {
baseURL: API_URL,
timeout: 10000,
adapter: TaroAdapter
}: {
baseURL: API_URL,
timeout: 10000,
});
const axiosInstance = axios.create({
baseURL: API_URL,
timeout: 10000,
});
export const taroClient = new MangoApi(taroInstance);
export const axiosClient = new MangoApi(axiosInstance);- For using in ScriptLab, import library like below:
axios
meekou-ts@0.0.36ExcelService
Copy and Paste visiable cells
async function run() {
await Excel.run(async (context) => {
let target = context.workbook.getSelectedRange();
await context.sync();
let meekouExcel = new Meekou.MeekouExcel(context);
await meekouExcel.pasteVisiableFromClipboard(target);
await context.sync();
});
}0.0.40
2 years ago
0.0.41
2 years ago
0.0.42
2 years ago
0.0.43
2 years ago
0.0.44
2 years ago
0.0.45
2 years ago
0.0.46
2 years ago
0.0.38
2 years ago
0.0.39
2 years ago
0.0.37
3 years ago
0.0.31
3 years ago
0.0.35
3 years ago
0.0.36
3 years ago
0.0.30
3 years ago
0.0.29
4 years ago
0.0.28
4 years ago
0.0.27
4 years ago
0.0.26
4 years ago
0.0.25
4 years ago
0.0.24
4 years ago
0.0.23
4 years ago
0.0.22
4 years ago
0.0.21
4 years ago
0.0.20
4 years ago
0.0.19
4 years ago
0.0.18
4 years ago
0.0.15
4 years ago
0.0.14
4 years ago
0.0.13
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago