0.0.46 • Published 2 years ago
meekou-ts v0.0.46
"# Typescript helper for meekou"
Guide
Axios
- install
Axios
bynpm i axios
- install
taro-axios
bynpm 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.36
ExcelService
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
2 years ago
0.0.31
2 years ago
0.0.35
2 years ago
0.0.36
2 years ago
0.0.30
3 years ago
0.0.29
3 years ago
0.0.28
3 years ago
0.0.27
3 years ago
0.0.26
3 years ago
0.0.25
3 years ago
0.0.24
3 years ago
0.0.23
3 years ago
0.0.22
3 years ago
0.0.21
3 years ago
0.0.20
3 years ago
0.0.19
3 years ago
0.0.18
3 years ago
0.0.15
3 years ago
0.0.14
3 years ago
0.0.13
3 years ago
0.0.12
3 years ago
0.0.11
3 years ago
0.0.10
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago