0.0.46 • Published 10 months 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
10 months ago
0.0.41
10 months ago
0.0.42
10 months ago
0.0.43
10 months ago
0.0.44
10 months ago
0.0.45
10 months ago
0.0.46
10 months ago
0.0.38
10 months ago
0.0.39
10 months ago
0.0.37
1 year ago
0.0.31
1 year ago
0.0.35
1 year ago
0.0.36
1 year ago
0.0.30
2 years ago
0.0.29
2 years ago
0.0.28
2 years ago
0.0.27
2 years ago
0.0.26
2 years ago
0.0.25
2 years ago
0.0.24
2 years ago
0.0.23
2 years ago
0.0.22
2 years ago
0.0.21
2 years ago
0.0.20
2 years ago
0.0.19
2 years ago
0.0.18
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago