数智产销APP第一版。
This commit is contained in:
parent
14d9997160
commit
27c163736d
3
.env.development
Normal file
3
.env.development
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# 开发环境
|
||||||
|
# 请求接口地址
|
||||||
|
VITE_REQUEST_BASE_URL = https://36.112.48.190
|
3
.env.production
Normal file
3
.env.production
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# 生产环境
|
||||||
|
# 请求接口地址
|
||||||
|
VITE_REQUEST_BASE_URL = https://36.112.48.190
|
23
.hbuilderx/launch.json
Normal file
23
.hbuilderx/launch.json
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
// launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
|
||||||
|
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
|
||||||
|
"version" : "0.0",
|
||||||
|
"configurations" : [
|
||||||
|
{
|
||||||
|
"app-plus" : {
|
||||||
|
"launchtype" : "local"
|
||||||
|
},
|
||||||
|
"default" : {
|
||||||
|
"launchtype" : "local"
|
||||||
|
},
|
||||||
|
"mp-weixin" : {
|
||||||
|
"launchtype" : "local"
|
||||||
|
},
|
||||||
|
"type" : "uniCloud"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"playground" : "standard",
|
||||||
|
"type" : "uni-app:app-android"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
13
.vite/deps/_metadata.json
Normal file
13
.vite/deps/_metadata.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"hash": "5610b5a1",
|
||||||
|
"browserHash": "3deef0d9",
|
||||||
|
"optimized": {
|
||||||
|
"base-64": {
|
||||||
|
"src": "../../node_modules/base-64/base64.js",
|
||||||
|
"file": "base-64.js",
|
||||||
|
"fileHash": "768aae23",
|
||||||
|
"needsInterop": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chunks": {}
|
||||||
|
}
|
117
.vite/deps/base-64.js
Normal file
117
.vite/deps/base-64.js
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __commonJS = (cb, mod) => function __require() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
|
||||||
|
// ../../../../Documents/HBuilderProjects/B404219-tianranqi/node_modules/base-64/base64.js
|
||||||
|
var require_base64 = __commonJS({
|
||||||
|
"../../../../Documents/HBuilderProjects/B404219-tianranqi/node_modules/base-64/base64.js"(exports, module) {
|
||||||
|
(function(root) {
|
||||||
|
var freeExports = typeof exports == "object" && exports;
|
||||||
|
var freeModule = typeof module == "object" && module && module.exports == freeExports && module;
|
||||||
|
var freeGlobal = typeof global == "object" && global;
|
||||||
|
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
|
||||||
|
root = freeGlobal;
|
||||||
|
}
|
||||||
|
var InvalidCharacterError = function(message) {
|
||||||
|
this.message = message;
|
||||||
|
};
|
||||||
|
InvalidCharacterError.prototype = new Error();
|
||||||
|
InvalidCharacterError.prototype.name = "InvalidCharacterError";
|
||||||
|
var error = function(message) {
|
||||||
|
throw new InvalidCharacterError(message);
|
||||||
|
};
|
||||||
|
var TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
|
var REGEX_SPACE_CHARACTERS = /[\t\n\f\r ]/g;
|
||||||
|
var decode = function(input) {
|
||||||
|
input = String(input).replace(REGEX_SPACE_CHARACTERS, "");
|
||||||
|
var length = input.length;
|
||||||
|
if (length % 4 == 0) {
|
||||||
|
input = input.replace(/==?$/, "");
|
||||||
|
length = input.length;
|
||||||
|
}
|
||||||
|
if (length % 4 == 1 || // http://whatwg.org/C#alphanumeric-ascii-characters
|
||||||
|
/[^+a-zA-Z0-9/]/.test(input)) {
|
||||||
|
error(
|
||||||
|
"Invalid character: the string to be decoded is not correctly encoded."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
var bitCounter = 0;
|
||||||
|
var bitStorage;
|
||||||
|
var buffer;
|
||||||
|
var output = "";
|
||||||
|
var position = -1;
|
||||||
|
while (++position < length) {
|
||||||
|
buffer = TABLE.indexOf(input.charAt(position));
|
||||||
|
bitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer;
|
||||||
|
if (bitCounter++ % 4) {
|
||||||
|
output += String.fromCharCode(
|
||||||
|
255 & bitStorage >> (-2 * bitCounter & 6)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return output;
|
||||||
|
};
|
||||||
|
var encode = function(input) {
|
||||||
|
input = String(input);
|
||||||
|
if (/[^\0-\xFF]/.test(input)) {
|
||||||
|
error(
|
||||||
|
"The string to be encoded contains characters outside of the Latin1 range."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
var padding = input.length % 3;
|
||||||
|
var output = "";
|
||||||
|
var position = -1;
|
||||||
|
var a;
|
||||||
|
var b;
|
||||||
|
var c;
|
||||||
|
var buffer;
|
||||||
|
var length = input.length - padding;
|
||||||
|
while (++position < length) {
|
||||||
|
a = input.charCodeAt(position) << 16;
|
||||||
|
b = input.charCodeAt(++position) << 8;
|
||||||
|
c = input.charCodeAt(++position);
|
||||||
|
buffer = a + b + c;
|
||||||
|
output += TABLE.charAt(buffer >> 18 & 63) + TABLE.charAt(buffer >> 12 & 63) + TABLE.charAt(buffer >> 6 & 63) + TABLE.charAt(buffer & 63);
|
||||||
|
}
|
||||||
|
if (padding == 2) {
|
||||||
|
a = input.charCodeAt(position) << 8;
|
||||||
|
b = input.charCodeAt(++position);
|
||||||
|
buffer = a + b;
|
||||||
|
output += TABLE.charAt(buffer >> 10) + TABLE.charAt(buffer >> 4 & 63) + TABLE.charAt(buffer << 2 & 63) + "=";
|
||||||
|
} else if (padding == 1) {
|
||||||
|
buffer = input.charCodeAt(position);
|
||||||
|
output += TABLE.charAt(buffer >> 2) + TABLE.charAt(buffer << 4 & 63) + "==";
|
||||||
|
}
|
||||||
|
return output;
|
||||||
|
};
|
||||||
|
var base64 = {
|
||||||
|
"encode": encode,
|
||||||
|
"decode": decode,
|
||||||
|
"version": "1.0.0"
|
||||||
|
};
|
||||||
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
||||||
|
define(function() {
|
||||||
|
return base64;
|
||||||
|
});
|
||||||
|
} else if (freeExports && !freeExports.nodeType) {
|
||||||
|
if (freeModule) {
|
||||||
|
freeModule.exports = base64;
|
||||||
|
} else {
|
||||||
|
for (var key in base64) {
|
||||||
|
base64.hasOwnProperty(key) && (freeExports[key] = base64[key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
root.base64 = base64;
|
||||||
|
}
|
||||||
|
})(exports);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_base64();
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
base-64/base64.js:
|
||||||
|
(*! https://mths.be/base64 v1.0.0 by @mathias | MIT license *)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=base-64.js.map
|
7
.vite/deps/base-64.js.map
Normal file
7
.vite/deps/base-64.js.map
Normal file
File diff suppressed because one or more lines are too long
3
.vite/deps/package.json
Normal file
3
.vite/deps/package.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
80
App.vue
Normal file
80
App.vue
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
useUpdateApp
|
||||||
|
} from '@/store/update.js';
|
||||||
|
import {
|
||||||
|
cxcJurisdictionApi
|
||||||
|
} from '@/network/api.js';
|
||||||
|
import {
|
||||||
|
onLaunch,
|
||||||
|
onShow
|
||||||
|
} from "@dcloudio/uni-app";
|
||||||
|
import {
|
||||||
|
getLocation,
|
||||||
|
getWeather,
|
||||||
|
beforeJump
|
||||||
|
} from './utils';
|
||||||
|
import {
|
||||||
|
useStore
|
||||||
|
} from '@/store';
|
||||||
|
onLaunch(() => {
|
||||||
|
uni.onTabBarMidButtonTap(() => {
|
||||||
|
beforeJump('/pages/task/index', () => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/task/index?id=0'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
// 检查更新
|
||||||
|
useUpdateApp().checkAppUpdate()
|
||||||
|
// 定位
|
||||||
|
getLocation()
|
||||||
|
})
|
||||||
|
onShow(() => {
|
||||||
|
cxcJurisdictionApi({
|
||||||
|
id: "1827997127165677570"
|
||||||
|
}).then((res) => {
|
||||||
|
// 1为灰化
|
||||||
|
if (res.success) {
|
||||||
|
const store = useStore()
|
||||||
|
uni.setStorageSync('isgray', res.result.value)
|
||||||
|
store.setIsgray(res.result.value)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
/*每个页面公共css */
|
||||||
|
|
||||||
|
.gray {
|
||||||
|
filter: grayscale(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.f-row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.f-col {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jca {
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jce {
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jcb {
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aic {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
</style>
|
36
component/customNav.vue
Normal file
36
component/customNav.vue
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<template>
|
||||||
|
<view class="">
|
||||||
|
<view class="nav ">
|
||||||
|
<slot></slot>
|
||||||
|
</view>
|
||||||
|
<view class="place">
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
const res = wx.getSystemInfoSync();
|
||||||
|
const statusHeight = res.statusBarHeight; //状态栏高度
|
||||||
|
const cusnavbarheight = (statusHeight + 44) + "px";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.nav {
|
||||||
|
width: calc(100% - 60rpx);
|
||||||
|
padding: 0 30rpx;
|
||||||
|
height: v-bind(cusnavbarheight);
|
||||||
|
background: linear-gradient(270deg, #256FBC 0%, #044D87 100%);
|
||||||
|
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
.place {
|
||||||
|
height: v-bind(cusnavbarheight);
|
||||||
|
}
|
||||||
|
</style>
|
143
component/dataCom.vue
Normal file
143
component/dataCom.vue
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
<template>
|
||||||
|
<view class="">
|
||||||
|
<view class="info">
|
||||||
|
<view class="item_box">
|
||||||
|
<view class="item">
|
||||||
|
<view class="title_box f-row aic jcb">
|
||||||
|
<view class="title">
|
||||||
|
{{title}}
|
||||||
|
</view>
|
||||||
|
<view class="f-row aic more" v-if="list.length>6" @click="open=!open">
|
||||||
|
<text>{{!open?'展开':'收起'}}</text>
|
||||||
|
<uni-icons type="down" color="#999999" v-if="!open"></uni-icons>
|
||||||
|
<uni-icons type="up" color="#999999" v-else></uni-icons>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view :class="['data_wrapper',{'close':list.length>6&&open}]">
|
||||||
|
<view class="data_box f-row aic ">
|
||||||
|
<view class="data f-col aic" v-for="item,i in list">
|
||||||
|
<view class="">
|
||||||
|
{{item?.dailyVolume}}
|
||||||
|
</view>
|
||||||
|
<text>{{item.gas}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
computed,
|
||||||
|
watch,
|
||||||
|
nextTick
|
||||||
|
} from 'vue';
|
||||||
|
const props = defineProps({
|
||||||
|
title: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
list: {
|
||||||
|
type: Array,
|
||||||
|
default: function() {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
const open = ref(false)
|
||||||
|
const moreHeight = ref(null)
|
||||||
|
|
||||||
|
watch(() => props.list, () => {
|
||||||
|
nextTick(() => {
|
||||||
|
uni.createSelectorQuery().select('.data_box').boundingClientRect(data => {
|
||||||
|
moreHeight.value = (data?.height || 0) + 'px'
|
||||||
|
}).exec()
|
||||||
|
})
|
||||||
|
|
||||||
|
}, {
|
||||||
|
immediate: true
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
page {
|
||||||
|
background-color: #F8F8F8;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
.data_wrapper {
|
||||||
|
height: 288rpx;
|
||||||
|
transition: all .3s;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.close {
|
||||||
|
height: v-bind(moreHeight);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
.item_box {
|
||||||
|
|
||||||
|
.item {
|
||||||
|
width: 690rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 2rpx 4rpx 0rpx rgba(0, 0, 0, 0.5);
|
||||||
|
border-radius: 16rpx;
|
||||||
|
padding: 30rpx 0;
|
||||||
|
margin-top: 24rpx;
|
||||||
|
|
||||||
|
.title_box {
|
||||||
|
padding: 0 30rpx;
|
||||||
|
margin-bottom: -20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
background-image: url('../../static/index/line.png');
|
||||||
|
background-size: 44rpx 13rpx;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: left bottom;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.more {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
|
||||||
|
text {
|
||||||
|
margin-right: 6rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.data_box {
|
||||||
|
|
||||||
|
flex-wrap: wrap;
|
||||||
|
.data {
|
||||||
|
width: 33.33%;
|
||||||
|
margin-top: 60rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
|
||||||
|
view {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-bottom: 8rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
text {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
207
component/extendCom.vue
Normal file
207
component/extendCom.vue
Normal file
@ -0,0 +1,207 @@
|
|||||||
|
<template>
|
||||||
|
<view class="content">
|
||||||
|
<view class="todo f-col aic">
|
||||||
|
<view class="f-col aic">
|
||||||
|
<view class="title_box f-row aic jcb" @click="tolist('')">
|
||||||
|
<view class="title f-row aic">
|
||||||
|
<image :src="`/static/my/${img}.png`" mode=""></image>
|
||||||
|
{{title}}
|
||||||
|
</view>
|
||||||
|
<view class="num">
|
||||||
|
{{total}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="list" v-if="list.length">
|
||||||
|
<view :class="['box',{'close':list.length>5&&open}]">
|
||||||
|
<view class="item_box">
|
||||||
|
<view @click="tolist(item.title)" class="item f-row aic" v-for="item,i in list" :key="i">
|
||||||
|
<view class="">
|
||||||
|
{{item.title}}
|
||||||
|
</view>
|
||||||
|
<text>{{item.num}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="more" v-show="list.length>5" @click="open = !open">
|
||||||
|
{{!open?'显示更多':'收起'}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
onMounted,
|
||||||
|
nextTick,
|
||||||
|
computed,
|
||||||
|
watch,
|
||||||
|
getCurrentInstance
|
||||||
|
} from 'vue';
|
||||||
|
import {
|
||||||
|
beforeJump
|
||||||
|
} from '@/utils/index.js';
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
title: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
img: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
list: {
|
||||||
|
type: Array,
|
||||||
|
default: function() {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// selfArrquery: {
|
||||||
|
// type: Array,
|
||||||
|
// default: function() {
|
||||||
|
// return []
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
|
||||||
|
total: {
|
||||||
|
type: Number,
|
||||||
|
default: 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const open = ref(false)
|
||||||
|
const moreHeight = ref(null)
|
||||||
|
const CurrentInstance = getCurrentInstance()
|
||||||
|
watch(() => props.list, () => {
|
||||||
|
nextTick(() => {
|
||||||
|
uni.createSelectorQuery().in(CurrentInstance.proxy).select('.item_box')
|
||||||
|
.boundingClientRect(data => {
|
||||||
|
moreHeight.value = data?.height + 'px'
|
||||||
|
console.log('moreHeight', moreHeight.value);
|
||||||
|
}).exec()
|
||||||
|
})
|
||||||
|
|
||||||
|
}, {
|
||||||
|
immediate: true
|
||||||
|
})
|
||||||
|
const tolist = (title) => {
|
||||||
|
let id = null
|
||||||
|
beforeJump('/pages/task/index', () => {
|
||||||
|
|
||||||
|
if (props.title == '待办事项') {
|
||||||
|
id = 0
|
||||||
|
}
|
||||||
|
if (props.title == '已办事项') {
|
||||||
|
id = 2
|
||||||
|
}
|
||||||
|
if (props.title == '本人发起') {
|
||||||
|
return uni.navigateTo({
|
||||||
|
url: `/pages/task/self?title=${title}`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/task/index?id=${id}&title=${title}`
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
page {
|
||||||
|
background-color: #F8F8F8;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.content {
|
||||||
|
padding-top: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.todo {
|
||||||
|
.title_box {
|
||||||
|
width: 630rpx;
|
||||||
|
height: 108rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(0, 0, 0, 0.16);
|
||||||
|
border-radius: 16rpx;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
image {
|
||||||
|
width: 48rpx;
|
||||||
|
height: 48rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.num {
|
||||||
|
width: 54rpx;
|
||||||
|
height: 54rpx;
|
||||||
|
background: url('../../static/my/num.png') no-repeat;
|
||||||
|
background-size: 54rpx 54rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 54rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.list {
|
||||||
|
width: 570rpx;
|
||||||
|
padding: 20rpx 30rpx 30rpx 30rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(0, 0, 0, 0.16);
|
||||||
|
border-radius: 0rpx 0rpx 16rpx 16rpx;
|
||||||
|
|
||||||
|
.box {
|
||||||
|
|
||||||
|
max-height: 120rpx;
|
||||||
|
transition: all .3s;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.item_box {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
font-size: 28rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
width: 50%;
|
||||||
|
|
||||||
|
view {
|
||||||
|
color: #666666;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
-o-text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
text {
|
||||||
|
color: #ED361D;
|
||||||
|
margin: 0 10rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.close {
|
||||||
|
// height: 300rpx;
|
||||||
|
max-height: v-bind(moreHeight);
|
||||||
|
}
|
||||||
|
|
||||||
|
.more {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #008DFF;
|
||||||
|
text-decoration: underline;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
279
component/leaveApplication.vue
Normal file
279
component/leaveApplication.vue
Normal file
@ -0,0 +1,279 @@
|
|||||||
|
<template>
|
||||||
|
<view class="">
|
||||||
|
<view class="f-col aic">
|
||||||
|
<view class="info_box">
|
||||||
|
<view class="title">
|
||||||
|
申请信息
|
||||||
|
</view>
|
||||||
|
<view class="info f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
请假职工:
|
||||||
|
</view>
|
||||||
|
<text>{{info.qjname}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="info f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
请假类型:
|
||||||
|
</view>
|
||||||
|
<text>{{info.qjlx}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="info f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
假期开始日期:
|
||||||
|
</view>
|
||||||
|
<text>{{info.starttime}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="info f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
假期结束日期:
|
||||||
|
</view>
|
||||||
|
<text>{{info.endtime}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="info f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
请假天数:
|
||||||
|
</view>
|
||||||
|
<text>{{info.qjdays}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="info f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
审批人:
|
||||||
|
</view>
|
||||||
|
<text>{{info.leadername}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="info f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
事由:
|
||||||
|
</view>
|
||||||
|
<text>{{info.sy}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="info f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
联系方式:
|
||||||
|
</view>
|
||||||
|
<text>{{info.lxdh}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="info f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
休假地点:
|
||||||
|
</view>
|
||||||
|
<text>{{info.xjdd}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="f-col aic">
|
||||||
|
<view class="progress">
|
||||||
|
<view class="title">
|
||||||
|
审批流程
|
||||||
|
</view>
|
||||||
|
<view class="progress_box">
|
||||||
|
<view class="box" v-for="(item,index) in step" :key="index">
|
||||||
|
<view class="topic f-row aic">
|
||||||
|
<view class="">
|
||||||
|
{{item.name}}
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
:class="['status',{'complete':item.deleteReason=='已完成'},{'refuse':item.deleteReason=='已拒绝'}]">
|
||||||
|
{{item.deleteReason}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="name_time">
|
||||||
|
{{item.assigneeName}} | {{item.endTime}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
qjQueryByIdApi,
|
||||||
|
extActFlowDataApi,
|
||||||
|
processHistoryListApi
|
||||||
|
} from '@/network/api.js';
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
onBeforeMount,
|
||||||
|
watch,
|
||||||
|
onMounted
|
||||||
|
} from 'vue'
|
||||||
|
const props = defineProps({
|
||||||
|
dataId: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
const info = ref({})
|
||||||
|
// 申请信息
|
||||||
|
const qjQueryById = (id) => {
|
||||||
|
qjQueryByIdApi({
|
||||||
|
id: props.dataId
|
||||||
|
}).then((res) => {
|
||||||
|
console.log('申请信息', res);
|
||||||
|
if (res.success) {
|
||||||
|
info.value = res.result
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const extActFlowData = (dataId) => {
|
||||||
|
extActFlowDataApi({
|
||||||
|
flowCode: "dev_cxc_qxj_zg_001",
|
||||||
|
dataId: props.dataId
|
||||||
|
}).then((res) => {
|
||||||
|
console.log('流程审核', res);
|
||||||
|
if (res.success) {
|
||||||
|
processHistoryList(res.result.processInstanceId)
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const step = ref([])
|
||||||
|
/**审批步骤*/
|
||||||
|
const processHistoryList = (processInstanceId) => {
|
||||||
|
console.log('000', processInstanceId);
|
||||||
|
processHistoryListApi({
|
||||||
|
processInstanceId
|
||||||
|
}).then((res) => {
|
||||||
|
console.log('0088800', res);
|
||||||
|
if (res.success) {
|
||||||
|
step.value = res.result.records
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// watch(() => props.dataId, (nval, oval) => {
|
||||||
|
// if (nval) {
|
||||||
|
// qjQueryById()
|
||||||
|
// extActFlowData()
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
onMounted(()=>{
|
||||||
|
qjQueryById()
|
||||||
|
extActFlowData()
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.info_box {
|
||||||
|
padding: 40rpx 30rpx 16rpx 30rpx;
|
||||||
|
width: 630rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 2rpx 4rpx 0rpx rgba(0, 0, 0, 0.5);
|
||||||
|
border-radius: 16rpx;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
background-image: url(../../static/index/line.png);
|
||||||
|
background-size: 44rpx 12rpx;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: left bottom;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
font-size: 28rpx;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
|
|
||||||
|
view {
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
|
||||||
|
text {
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress {
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 2rpx 4rpx 0rpx rgba(0, 0, 0, 0.5);
|
||||||
|
border-radius: 16rpx;
|
||||||
|
width: 630rpx;
|
||||||
|
padding: 40rpx 30rpx 16rpx 30rpx;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
|
||||||
|
.status {
|
||||||
|
padding: 4rpx 8rpx;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 20rpx;
|
||||||
|
margin-left: 8rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.complete {
|
||||||
|
background-color: #7AC756;
|
||||||
|
}
|
||||||
|
|
||||||
|
.refuse {
|
||||||
|
background-color: #FE4600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
background-image: url(../../static/index/line.png);
|
||||||
|
background-size: 44rpx 12rpx;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: left bottom;
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// .box:not(:first-child) {
|
||||||
|
// padding-top: 60rpx;
|
||||||
|
// }
|
||||||
|
.box:not(:last-child) {
|
||||||
|
position: relative;
|
||||||
|
padding-bottom: 60rpx;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
content: ' ';
|
||||||
|
width: 1px;
|
||||||
|
height: 100%;
|
||||||
|
background: #efefef;
|
||||||
|
left: -42rpx;
|
||||||
|
top: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.box {
|
||||||
|
margin-left: 50rpx;
|
||||||
|
|
||||||
|
|
||||||
|
.topic {
|
||||||
|
position: relative;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
content: ' ';
|
||||||
|
width: 18rpx;
|
||||||
|
height: 18rpx;
|
||||||
|
background: #01508B;
|
||||||
|
border-radius: 14rpx;
|
||||||
|
left: -50rpx;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.name_time {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #888888;
|
||||||
|
margin-top: 12rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
62
component/processCom.vue
Normal file
62
component/processCom.vue
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
<template>
|
||||||
|
<view class="f-col aic">
|
||||||
|
<view class="info_box">
|
||||||
|
<view class="title">
|
||||||
|
申请信息
|
||||||
|
</view>
|
||||||
|
<view class="" v-for="item,i in info" :key="i">
|
||||||
|
<view class="info f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
{{item.title}}:
|
||||||
|
</view>
|
||||||
|
<rich-text :nodes="item.data" v-if="item.title=='事项内容'"></rich-text>
|
||||||
|
<text v-else>{{item.data}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
const props = defineProps({
|
||||||
|
info: {
|
||||||
|
type: Array,
|
||||||
|
default: () => []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.info_box {
|
||||||
|
padding: 40rpx 30rpx 16rpx 30rpx;
|
||||||
|
width: 630rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 2rpx 4rpx 0rpx rgba(0, 0, 0, 0.5);
|
||||||
|
border-radius: 16rpx;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
background-image: url(../../static/index/line.png);
|
||||||
|
background-size: 44rpx 12rpx;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: left bottom;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
font-size: 28rpx;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
|
|
||||||
|
view {
|
||||||
|
color: #666666;
|
||||||
|
}
|
||||||
|
|
||||||
|
text {
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
54
component/safeCom.vue
Normal file
54
component/safeCom.vue
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<template>
|
||||||
|
<view class="list f-row aic jcb">
|
||||||
|
<view class="item" v-for="item,i in 20" :key="i" @click="jump('/pages/safe/detail')">
|
||||||
|
<view class="">
|
||||||
|
<image src="" mode=""></image>
|
||||||
|
</view>
|
||||||
|
<view class="text">
|
||||||
|
五月天“突然好想你”线上演唱会精彩回放
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
beforeJump
|
||||||
|
} from '@/utils/index.js';
|
||||||
|
const jump = (url) => {
|
||||||
|
beforeJump(url, () => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.list {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.item {
|
||||||
|
width: 340rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 2rpx 4rpx 0rpx rgba(0, 0, 0, 0.5);
|
||||||
|
border-radius: 16rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 40rpx;
|
||||||
|
|
||||||
|
.text {
|
||||||
|
padding: 16rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 340rpx;
|
||||||
|
height: 200rpx;
|
||||||
|
border-radius: 16rpx 16rpx 0 0;
|
||||||
|
background-color: #efefef;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
331
component/supervise.vue
Normal file
331
component/supervise.vue
Normal file
@ -0,0 +1,331 @@
|
|||||||
|
<template>
|
||||||
|
<view class="">
|
||||||
|
<view class="tab f-row aic">
|
||||||
|
<view :class="{'active':currentTab==item.id}" v-for="item,i in tabArr" :key="i" @click="changeTab(item.id)">
|
||||||
|
{{item.title}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<processCom :info="info"></processCom>
|
||||||
|
<view class="f-col aic">
|
||||||
|
<view class="progress">
|
||||||
|
<view class="title">
|
||||||
|
审批流程
|
||||||
|
</view>
|
||||||
|
<view class="progress_box">
|
||||||
|
<view class="box" v-for="(item,index) in step" :key="index">
|
||||||
|
<view class="topic f-row aic">
|
||||||
|
<view class="">
|
||||||
|
{{item.name}}
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
:class="['status',{'complete':item.deleteReason=='已完成'},{'refuse':item.deleteReason=='已拒绝'}]">
|
||||||
|
{{item.deleteReason}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="name_time">
|
||||||
|
{{item.assigneeName}} | {{item.endTime}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
dbSxxqQueryByIdApi,
|
||||||
|
dbJbxxQueryByIdApi,
|
||||||
|
extActFlowDataApi,
|
||||||
|
processHistoryListApi
|
||||||
|
} from '@/network/api.js';
|
||||||
|
import processCom from './processCom.vue';
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
onBeforeMount,
|
||||||
|
watch,
|
||||||
|
onMounted
|
||||||
|
} from 'vue';
|
||||||
|
const props = defineProps({
|
||||||
|
dataId: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
const tabArr = [{
|
||||||
|
title: '基本信息',
|
||||||
|
id: 1
|
||||||
|
}, {
|
||||||
|
title: '事项详情',
|
||||||
|
id: 2
|
||||||
|
}, {
|
||||||
|
title: '添加下级',
|
||||||
|
id: 3
|
||||||
|
}, {
|
||||||
|
title: '节点顺序',
|
||||||
|
id: 4
|
||||||
|
}, {
|
||||||
|
title: '运行计划',
|
||||||
|
id: 5
|
||||||
|
}]
|
||||||
|
const currentTab = ref(1)
|
||||||
|
const changeTab = (id) => {
|
||||||
|
currentTab.value = id
|
||||||
|
dbSxxqQueryById()
|
||||||
|
|
||||||
|
}
|
||||||
|
const info = ref([])
|
||||||
|
/**事项详情*/
|
||||||
|
const dbSxxqQueryById = () => {
|
||||||
|
dbSxxqQueryByIdApi({
|
||||||
|
id: props.dataId
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
|
||||||
|
if(currentTab.value==1){
|
||||||
|
|
||||||
|
dbJbxxQueryById(res.result.jbxxid)
|
||||||
|
}
|
||||||
|
if(currentTab.value==2){
|
||||||
|
let d = res.result
|
||||||
|
info.value = [{
|
||||||
|
title: '承办部门',
|
||||||
|
data: d.zbdw
|
||||||
|
}, {
|
||||||
|
title: '协办部门',
|
||||||
|
data: d.xbdw
|
||||||
|
}, {
|
||||||
|
title: '部门领导',
|
||||||
|
data: d.fgld
|
||||||
|
}, {
|
||||||
|
title: '办理人员',
|
||||||
|
data: d.dbry
|
||||||
|
}, {
|
||||||
|
title: '要求反馈时间',
|
||||||
|
data: d.yqfksj
|
||||||
|
}, {
|
||||||
|
title: '节点名称',
|
||||||
|
data: ''
|
||||||
|
}, {
|
||||||
|
title: '预计完成时间',
|
||||||
|
data: ''
|
||||||
|
}, {
|
||||||
|
title: '实际反馈时间',
|
||||||
|
data: d.sjfksj
|
||||||
|
}, {
|
||||||
|
title: '自评价',
|
||||||
|
data: d.zpj
|
||||||
|
}, {
|
||||||
|
title: '发起时间',
|
||||||
|
data: d.fqsj
|
||||||
|
}, {
|
||||||
|
title: '序号',
|
||||||
|
data: ''
|
||||||
|
}, {
|
||||||
|
title: '概述',
|
||||||
|
data: ''
|
||||||
|
}, {
|
||||||
|
title: '时间进度',
|
||||||
|
data: ''
|
||||||
|
}, {
|
||||||
|
title: '事项内容',
|
||||||
|
data: d.sxnr
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
/**基本信息*/
|
||||||
|
const dbJbxxQueryById = (id) => {
|
||||||
|
dbJbxxQueryByIdApi({
|
||||||
|
id
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
let d = res.result
|
||||||
|
info.value = [{
|
||||||
|
title: '督办分类',
|
||||||
|
data: d.fl
|
||||||
|
}, {
|
||||||
|
title: '协办部门',
|
||||||
|
data: d.xbbm
|
||||||
|
}, {
|
||||||
|
title: '督办部门',
|
||||||
|
data: d.cbbm
|
||||||
|
}, {
|
||||||
|
title: '督办人员',
|
||||||
|
data: d.dbry
|
||||||
|
}, {
|
||||||
|
title: '督办部门负责人',
|
||||||
|
data: d.zrr
|
||||||
|
}, {
|
||||||
|
title: '是否涉密',
|
||||||
|
data: d.sfsm
|
||||||
|
}, {
|
||||||
|
title: '计划完成时间',
|
||||||
|
data: d.jhwcsj
|
||||||
|
}, {
|
||||||
|
title: '实际完成时间',
|
||||||
|
data: d.wcsj
|
||||||
|
}, {
|
||||||
|
title: '完成状态',
|
||||||
|
data: d.wczt
|
||||||
|
}, {
|
||||||
|
title: '备注',
|
||||||
|
data: d.bz
|
||||||
|
}, {
|
||||||
|
title: '督办事项',
|
||||||
|
data: d.dbsx
|
||||||
|
}, {
|
||||||
|
title: '时间进度',
|
||||||
|
data: d.sjjd
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const extActFlowData = (dataId) => {
|
||||||
|
extActFlowDataApi({
|
||||||
|
flowCode: "dev_db_sxxq_001",
|
||||||
|
dataId: props.dataId
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
processHistoryList(res.result.processInstanceId)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const step = ref([])
|
||||||
|
/**审批步骤*/
|
||||||
|
const processHistoryList = (processInstanceId) => {
|
||||||
|
console.log('000', processInstanceId);
|
||||||
|
processHistoryListApi({
|
||||||
|
processInstanceId
|
||||||
|
}).then((res) => {
|
||||||
|
console.log('0088800', res);
|
||||||
|
if (res.success) {
|
||||||
|
step.value = res.result.records
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
onMounted(() => {
|
||||||
|
dbSxxqQueryById()
|
||||||
|
extActFlowData()
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.tab {
|
||||||
|
background-color: #fff;
|
||||||
|
overflow-x: auto;
|
||||||
|
|
||||||
|
view {
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
position: relative;
|
||||||
|
color: #1890ff;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: ' ';
|
||||||
|
position: absolute;
|
||||||
|
width: 100rpx;
|
||||||
|
height: 6rpx;
|
||||||
|
border-radius: 3rpx;
|
||||||
|
background-color: #1890ff;
|
||||||
|
bottom: 0;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.progress {
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 2rpx 4rpx 0rpx rgba(0, 0, 0, 0.5);
|
||||||
|
border-radius: 16rpx;
|
||||||
|
width: 630rpx;
|
||||||
|
padding: 40rpx 30rpx 16rpx 30rpx;
|
||||||
|
margin-top: 30rpx;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
|
||||||
|
.status {
|
||||||
|
padding: 4rpx 8rpx;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 20rpx;
|
||||||
|
margin-left: 8rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.complete {
|
||||||
|
background-color: #7AC756;
|
||||||
|
}
|
||||||
|
|
||||||
|
.refuse {
|
||||||
|
background-color: #FE4600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
background-image: url(../../static/index/line.png);
|
||||||
|
background-size: 44rpx 12rpx;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: left bottom;
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// .box:not(:first-child) {
|
||||||
|
// padding-top: 60rpx;
|
||||||
|
// }
|
||||||
|
.box:not(:last-child) {
|
||||||
|
position: relative;
|
||||||
|
padding-bottom: 60rpx;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
content: ' ';
|
||||||
|
width: 1px;
|
||||||
|
height: 100%;
|
||||||
|
background: #efefef;
|
||||||
|
left: -42rpx;
|
||||||
|
top: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.box {
|
||||||
|
margin-left: 50rpx;
|
||||||
|
|
||||||
|
|
||||||
|
.topic {
|
||||||
|
position: relative;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
content: ' ';
|
||||||
|
width: 18rpx;
|
||||||
|
height: 18rpx;
|
||||||
|
background: #01508B;
|
||||||
|
border-radius: 14rpx;
|
||||||
|
left: -50rpx;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.name_time {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #888888;
|
||||||
|
margin-top: 12rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
122
component/tasklistCom.vue
Normal file
122
component/tasklistCom.vue
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
<template>
|
||||||
|
<view class="list_box">
|
||||||
|
<view class="list" v-for="item,i in taskArr" :key="i" @click="tojump(`/pages/task/handle?info=${JSON.stringify(item)}&type=${currentIndex}`)">
|
||||||
|
<view class="title f-row aic jcb">
|
||||||
|
<view class="">
|
||||||
|
<view class="">
|
||||||
|
{{item.processApplyUserName}}的{{item.processDefinitionName}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<text>{{item.durationStr}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="info">
|
||||||
|
<view class="">
|
||||||
|
申请理由:{{item.bpmBizTitle}}
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
当前环节:{{item.taskName}}
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
流程名称:{{item.processDefinitionName}}
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
发起人:{{item.processApplyUserName}}
|
||||||
|
</view>
|
||||||
|
<view class="">
|
||||||
|
开始时间:{{item.taskBeginTime}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="btn f-row aic jcb" v-show="currentIndex!=2">
|
||||||
|
<view class="entrust" @click.stop="tojump(`/pages/userlist/index?isradio=1&id=${item.id}`)">
|
||||||
|
委托
|
||||||
|
</view>
|
||||||
|
<view class="handle" @click="tojump(`/pages/task/handle?info=${JSON.stringify(item)}&type=${currentIndex}`)">
|
||||||
|
办理
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
const props = defineProps({
|
||||||
|
taskArr: {
|
||||||
|
type: Array,
|
||||||
|
default: () => []
|
||||||
|
},
|
||||||
|
currentIndex: {
|
||||||
|
type: Number,
|
||||||
|
default: 0
|
||||||
|
},
|
||||||
|
})
|
||||||
|
const emit = defineEmits(['jump'])
|
||||||
|
const tojump = (url) => {
|
||||||
|
emit('jump', url)
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.list_box {
|
||||||
|
// padding: 200rpx 30rpx 0 30rpx;
|
||||||
|
padding: 0 30rpx 0 30rpx;
|
||||||
|
margin-top: 24rpx;
|
||||||
|
|
||||||
|
.list {
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 2rpx 4rpx 0rpx rgba(0, 0, 0, 0.5);
|
||||||
|
border-radius: 16rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
border-bottom: 1px solid #efefef;
|
||||||
|
padding-bottom: 24rpx;
|
||||||
|
margin-bottom: 8rpx;
|
||||||
|
|
||||||
|
view {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
text {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #666666;
|
||||||
|
|
||||||
|
view {
|
||||||
|
padding-top: 16rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
margin-top: 30rpx;
|
||||||
|
|
||||||
|
view {
|
||||||
|
width: 300rpx;
|
||||||
|
height: 64rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 64rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entrust {
|
||||||
|
background: #FFFFFF;
|
||||||
|
border: 2rpx solid #01508B;
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: #01508B;
|
||||||
|
}
|
||||||
|
|
||||||
|
.handle {
|
||||||
|
background: #01508B;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
51
components/kidoki-date-picker/kidoki-date-picker.vue
Normal file
51
components/kidoki-date-picker/kidoki-date-picker.vue
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<template>
|
||||||
|
<view class="date-picker-container">
|
||||||
|
<picker mode=multiSelector @change="bindPickerChange" :value="index" :range="range">
|
||||||
|
<slot />
|
||||||
|
</picker>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { ref } from 'vue'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
|
|
||||||
|
// 定义生成 range 的值的方法
|
||||||
|
const getRange = () => {
|
||||||
|
const dateArr = [[], []]
|
||||||
|
for (var i = 2000; i <= 2099; i++) { dateArr[0].push(`${i}年`) }
|
||||||
|
for (var i = 1; i <= 12; i++) { dateArr[1].push(`${i}月`) }
|
||||||
|
return { dateArr }
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'date-picker',
|
||||||
|
setup(props) {
|
||||||
|
// range: 长度表示多少列,数组的每项表示每列的数据
|
||||||
|
const { dateArr } = getRange()
|
||||||
|
const range = ref(dateArr)
|
||||||
|
|
||||||
|
// index: 索引数组, 每一项的值表示选择了对应项中的第几个。
|
||||||
|
// date 获取时间
|
||||||
|
// 【[year, month]】 year、month 为选中的年月,例如选中2022年3月就是 year = 22、month = 2
|
||||||
|
const date = dayjs(props.date).format("YYYY-MM")
|
||||||
|
const year = Number(date.slice(2, 4))
|
||||||
|
const month = Number(date.slice(5, 7))
|
||||||
|
const index = ref([year, month - 1])
|
||||||
|
console.log(index.value)
|
||||||
|
|
||||||
|
// bindPickerChange: index 改变时触发该事件
|
||||||
|
const bindPickerChange = (e) => {
|
||||||
|
index.value = e.detail.value
|
||||||
|
console.log(`用户选中20${index.value[0]}年${index.value[1] + 1}月`)
|
||||||
|
}
|
||||||
|
|
||||||
|
return { index, range, bindPickerChange }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.date-picker-container {
|
||||||
|
}
|
||||||
|
</style>
|
20
index.html
Normal file
20
index.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<script>
|
||||||
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
||||||
|
CSS.supports('top: constant(a)'))
|
||||||
|
document.write(
|
||||||
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||||
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||||
|
</script>
|
||||||
|
<title></title>
|
||||||
|
<!--preload-links-->
|
||||||
|
<!--app-context-->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"><!--app-html--></div>
|
||||||
|
<script type="module" src="/main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
37
main.js
Normal file
37
main.js
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
import App from './App';
|
||||||
|
import {
|
||||||
|
toast
|
||||||
|
} from './utils/index.js';
|
||||||
|
import {
|
||||||
|
createPinia
|
||||||
|
} from "pinia";
|
||||||
|
import leaveApplication from '@/component/leaveApplication.vue';
|
||||||
|
import supervise from '@/component/supervise.vue'
|
||||||
|
const pinia = createPinia();
|
||||||
|
|
||||||
|
// #ifndef VUE3
|
||||||
|
import Vue from 'vue'
|
||||||
|
import './uni.promisify.adaptor'
|
||||||
|
Vue.config.productionTip = false
|
||||||
|
App.mpType = 'app'
|
||||||
|
const app = new Vue({
|
||||||
|
...App
|
||||||
|
})
|
||||||
|
app.$mount()
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
// #ifdef VUE3
|
||||||
|
import {
|
||||||
|
createSSRApp
|
||||||
|
} from 'vue'
|
||||||
|
export function createApp() {
|
||||||
|
const app = createSSRApp(App)
|
||||||
|
app.use(pinia)
|
||||||
|
app.component('leaveApplication',leaveApplication)
|
||||||
|
app.component('supervise',supervise)
|
||||||
|
app.config.globalProperties.$toast = toast
|
||||||
|
return {
|
||||||
|
app
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// #endif
|
115
manifest.json
Normal file
115
manifest.json
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
{
|
||||||
|
"name" : "数智产销",
|
||||||
|
"appid" : "__UNI__F0AFD30",
|
||||||
|
"description" : "",
|
||||||
|
"versionName" : "1.0.6",
|
||||||
|
"versionCode" : 106,
|
||||||
|
"transformPx" : false,
|
||||||
|
/* 5+App特有相关 */
|
||||||
|
"app-plus" : {
|
||||||
|
"usingComponents" : true,
|
||||||
|
"nvueStyleCompiler" : "uni-app",
|
||||||
|
"compilerVersion" : 3,
|
||||||
|
"splashscreen" : {
|
||||||
|
"alwaysShowBeforeRender" : true,
|
||||||
|
"waiting" : true,
|
||||||
|
"autoclose" : true,
|
||||||
|
"delay" : 0
|
||||||
|
},
|
||||||
|
/* 模块配置 */
|
||||||
|
"modules" : {
|
||||||
|
"Geolocation" : {}
|
||||||
|
},
|
||||||
|
/* 应用发布信息 */
|
||||||
|
"distribute" : {
|
||||||
|
/* android打包配置 */
|
||||||
|
"android" : {
|
||||||
|
"permissions" : [
|
||||||
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||||
|
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||||
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
/* ios打包配置 */
|
||||||
|
"ios" : {
|
||||||
|
"dSYMs" : false
|
||||||
|
},
|
||||||
|
/* SDK配置 */
|
||||||
|
"sdkConfigs" : {
|
||||||
|
"ad" : {},
|
||||||
|
"geolocation" : {
|
||||||
|
"system" : {
|
||||||
|
"__platform__" : [ "android" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"icons" : {
|
||||||
|
"android" : {
|
||||||
|
"hdpi" : "unpackage/res/icons/72x72.png",
|
||||||
|
"xhdpi" : "unpackage/res/icons/96x96.png",
|
||||||
|
"xxhdpi" : "unpackage/res/icons/144x144.png",
|
||||||
|
"xxxhdpi" : "unpackage/res/icons/192x192.png"
|
||||||
|
},
|
||||||
|
"ios" : {
|
||||||
|
"appstore" : "unpackage/res/icons/1024x1024.png",
|
||||||
|
"ipad" : {
|
||||||
|
"app" : "unpackage/res/icons/76x76.png",
|
||||||
|
"app@2x" : "unpackage/res/icons/152x152.png",
|
||||||
|
"notification" : "unpackage/res/icons/20x20.png",
|
||||||
|
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||||
|
"proapp@2x" : "unpackage/res/icons/167x167.png",
|
||||||
|
"settings" : "unpackage/res/icons/29x29.png",
|
||||||
|
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||||
|
"spotlight" : "unpackage/res/icons/40x40.png",
|
||||||
|
"spotlight@2x" : "unpackage/res/icons/80x80.png"
|
||||||
|
},
|
||||||
|
"iphone" : {
|
||||||
|
"app@2x" : "unpackage/res/icons/120x120.png",
|
||||||
|
"app@3x" : "unpackage/res/icons/180x180.png",
|
||||||
|
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||||
|
"notification@3x" : "unpackage/res/icons/60x60.png",
|
||||||
|
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||||
|
"settings@3x" : "unpackage/res/icons/87x87.png",
|
||||||
|
"spotlight@2x" : "unpackage/res/icons/80x80.png",
|
||||||
|
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/* 快应用特有相关 */
|
||||||
|
"quickapp" : {},
|
||||||
|
/* 小程序特有相关 */
|
||||||
|
"mp-weixin" : {
|
||||||
|
"appid" : "",
|
||||||
|
"setting" : {
|
||||||
|
"urlCheck" : false
|
||||||
|
},
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"mp-alipay" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"mp-baidu" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"mp-toutiao" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"uniStatistics" : {
|
||||||
|
"enable" : false
|
||||||
|
},
|
||||||
|
"vueVersion" : "3"
|
||||||
|
}
|
294
network/api.js
Normal file
294
network/api.js
Normal file
@ -0,0 +1,294 @@
|
|||||||
|
import {
|
||||||
|
https
|
||||||
|
} from './http.js';
|
||||||
|
export function loginApi(config) { // 登录
|
||||||
|
return https({
|
||||||
|
url: '/sys/sinopecLogin',
|
||||||
|
method: 'post',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function queryRoleApi(config) { // 获取角色职位
|
||||||
|
return https({
|
||||||
|
url: '/appConnet/app/queryRoleByRoleIds',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function getUserPermissionApi(config) { // 获取权限
|
||||||
|
return https({
|
||||||
|
url: '/sys/permission/getUserPermissionByToken',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function taskListApi(config) { // 我的任务列表
|
||||||
|
return https({
|
||||||
|
url: '/act/task/list',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function taskGroupListApi(config) { // 我的组任务列表
|
||||||
|
return https({
|
||||||
|
url: '/act/task/taskGroupList',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function taskHistoryListApi(config) { // 我的历史任务列表
|
||||||
|
return https({
|
||||||
|
url: '/act/task/taskHistoryList',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function myApplyProcessListApi(config) { // 本人发起列表
|
||||||
|
return https({
|
||||||
|
url: '/act/task/myApplyProcessList',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function taskEntrustApi(config) { // 任务委托操作
|
||||||
|
return https({
|
||||||
|
url: '/act/task/taskEntrust',
|
||||||
|
method: 'put',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function getProcessNodeInfoApi(config) { // 办理任务节点信息获取
|
||||||
|
return https({
|
||||||
|
url: '/process/extActProcessNode/getProcessNodeInfo',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function getHisProcessNodeInfoApi(config) { // 历史任务详情
|
||||||
|
return https({
|
||||||
|
url: '/process/extActProcessNode/getHisProcessNodeInfo',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function queryMyDeptTreeListApi(config) { // 部门
|
||||||
|
return https({
|
||||||
|
url: '/sys/sysDepart/queryTreeList',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function userListApi(config) { // 所有人员列表
|
||||||
|
return https({
|
||||||
|
// url: '/appConnet/app/userList',
|
||||||
|
url: '/sys/user/userList',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function queryUserByDepIdApi(config) { // 根据部门id查询该部门下的人员列表
|
||||||
|
return https({
|
||||||
|
url: '/sys/user/queryUserByDepId',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function indexChartScdtDataApi(config) { // 首页
|
||||||
|
return https({
|
||||||
|
url: '/scdt.cxcscdtjldrb/cxcScdtJldRb/indexChartScdtData',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function bpmlistApi(config) { // 公文
|
||||||
|
return https({
|
||||||
|
url: '/appConnet/app/bpmlist',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function gonggaolistApi(config) { // 公告
|
||||||
|
return https({
|
||||||
|
url: '/cxctz/cxcTz/list',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function zhibanQueryApi(config) { // 值班按月查看
|
||||||
|
return https({
|
||||||
|
url: '/zhgl_zbgl/zhglZbglZbb/list',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function zhibanApi(config) { // 首页值班
|
||||||
|
return https({
|
||||||
|
url: '/zhgl_zbgl/zhglZbglZbb/homepageList',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function faguiApi(config) { // 法规
|
||||||
|
return https({
|
||||||
|
url: '/cxcoaflgf/cxcOaFlgf/zslist',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function cjzhiduApi(config) { // 上级制度
|
||||||
|
return https({
|
||||||
|
url: '/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function zhiduApi(config) { // 厂级制度
|
||||||
|
return https({
|
||||||
|
url: '/cxczd/cxcZdgl/list',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function huiyilistApi(config) { // 会议
|
||||||
|
return https({
|
||||||
|
url: '/appConnet/app/list',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function huiyiDetailApi(config) { // 会议详情
|
||||||
|
return https({
|
||||||
|
url: '/zhgl_hygl/zhglHyglHyyc/listbymainid',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function userProfileApi(config) { // 用户信息
|
||||||
|
return https({
|
||||||
|
url: '/sys/user/userList',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function userEditApi(config) { // 用户编辑
|
||||||
|
return https({
|
||||||
|
url: '/sys/user/edit',
|
||||||
|
method: 'PUT',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function qjAddApi(config) { // 请假
|
||||||
|
return https({
|
||||||
|
url: '/cxcqxjzg/cxcQxjZg/add',
|
||||||
|
method: 'post',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function qjQueryByIdApi(config) { // 请假流程
|
||||||
|
return https({
|
||||||
|
url: '/cxcqxjzg/cxcQxjZg/queryById',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function extActFlowDataApi(config) { // 获取审批流程所需参数
|
||||||
|
return https({
|
||||||
|
url: '/process/extActFlowData/getProcessInfo',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function processHistoryListApi(config) { // 审批流程
|
||||||
|
return https({
|
||||||
|
url: '/act/task/processHistoryList',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function startMutilProcessApi(config) { // 发起流程
|
||||||
|
return https({
|
||||||
|
url: '/process/extActProcess/startMutilProcess',
|
||||||
|
method: 'post',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function processCompleteApi(config) { // 流程办理
|
||||||
|
return https({
|
||||||
|
url: '/act/task/processComplete',
|
||||||
|
method: 'post',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getDictItemsApi(config) { // 字典标签专用
|
||||||
|
return https({
|
||||||
|
url: '/sys/dict/getDictItems/qjlx',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getProcessTaskTransInfoApi(config) { //
|
||||||
|
return https({
|
||||||
|
url: '/act/task/getProcessTaskTransInfo',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export function upDateAppApi(config) { // 更新
|
||||||
|
return https({
|
||||||
|
url: '/sys/common/upDateApp',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export function cxcDapingApi(config) { // 首页图片
|
||||||
|
return https({
|
||||||
|
url: '/CxcDaping/cxcDaping/list',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export function dbSxxqQueryByIdApi(config) { // 督办事项详情
|
||||||
|
return https({
|
||||||
|
url: '/cxcdbxt/dbSxxq/queryById',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function dbJbxxQueryByIdApi(config) { // 督办基本信息
|
||||||
|
return https({
|
||||||
|
url: '/cxcdbxt/dbJbxx/queryById',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function claimApi(config) { // 签收
|
||||||
|
return https({
|
||||||
|
url: '/act/task/claim',
|
||||||
|
method: 'put',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function cxcJurisdictionApi(config) { // 是否灰化
|
||||||
|
return https({
|
||||||
|
url: '/CxcJurisdiction/cxcJurisdiction/queryById',
|
||||||
|
method: 'get',
|
||||||
|
data: config
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
112
network/http.js
Normal file
112
network/http.js
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
let baseUrl = import.meta.env.VITE_REQUEST_BASE_URL + '/jeecg-boot'
|
||||||
|
let loading = false
|
||||||
|
export function https(config) {
|
||||||
|
//显示loading
|
||||||
|
// uni.showLoading({
|
||||||
|
// title: '加载中...'
|
||||||
|
// });
|
||||||
|
if (loading) return
|
||||||
|
if (uni.getStorageSync('logintime') && uni.getStorageSync('logintime') + 3600000 <= Date.now()) {
|
||||||
|
loading = true
|
||||||
|
console.log('token超时');
|
||||||
|
uni.removeStorageSync('logintime')
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/login/login'
|
||||||
|
})
|
||||||
|
loading = false
|
||||||
|
// return uni.navigateTo({
|
||||||
|
// url: '/pages/login/login'
|
||||||
|
// })
|
||||||
|
// uni.showModal({
|
||||||
|
// title: '登录',
|
||||||
|
// content: '请点击确认前往登录',
|
||||||
|
// success(res) {
|
||||||
|
|
||||||
|
// if (res.confirm) {
|
||||||
|
// uni.removeStorageSync('logintime')
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: '/pages/login/login'
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
|
// },
|
||||||
|
// complete() {
|
||||||
|
// loading = false
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
config.url = baseUrl + config.url; // 请求地址
|
||||||
|
let token = uni.getStorageSync('token') || '';
|
||||||
|
config.header = {
|
||||||
|
//返回数据类型
|
||||||
|
"content-type": 'application/json;charset=utf-8',
|
||||||
|
//设置用户访问的token信息
|
||||||
|
"X-Access-Token": token
|
||||||
|
}
|
||||||
|
let promise = new Promise(function(resolve, reject) {
|
||||||
|
uni.request(config).then(res => {
|
||||||
|
wx.hideLoading() //隐藏loading
|
||||||
|
if (res[0]) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "数据获取失败",
|
||||||
|
icon: "none",
|
||||||
|
duration: 1500
|
||||||
|
})
|
||||||
|
resolve(false);
|
||||||
|
} else {
|
||||||
|
let data = res.data;
|
||||||
|
resolve(data);
|
||||||
|
if (loading) return
|
||||||
|
if (data.code == 500) {
|
||||||
|
uni.showToast({
|
||||||
|
title: data.message,
|
||||||
|
icon: "none",
|
||||||
|
duration: 1500
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (data.code == 510) {
|
||||||
|
loading = true
|
||||||
|
uni.showToast({
|
||||||
|
title: data.message,
|
||||||
|
icon: "none",
|
||||||
|
duration: 1500
|
||||||
|
});
|
||||||
|
uni.removeStorageSync('token')
|
||||||
|
uni.removeStorageSync('user')
|
||||||
|
uni.removeStorageSync('role')
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/login/login'
|
||||||
|
})
|
||||||
|
uni.removeStorageSync('logintime')
|
||||||
|
loading = false
|
||||||
|
// setTimeout(() => {
|
||||||
|
// uni.showModal({
|
||||||
|
// title: '登录',
|
||||||
|
// content: '请点击确认前往登录',
|
||||||
|
// success(res) {
|
||||||
|
|
||||||
|
// if (res.confirm) {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: '/pages/login/login'
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
|
// },
|
||||||
|
// complete() {
|
||||||
|
// loading = false
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// loading = false
|
||||||
|
// }, 2000)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).catch(error => {
|
||||||
|
uni.hideLoading() //隐藏loading
|
||||||
|
reject(error);
|
||||||
|
// uni.$showMsg('接口错误')
|
||||||
|
})
|
||||||
|
})
|
||||||
|
return promise
|
||||||
|
}
|
17
node_modules/.package-lock.json
generated
vendored
Normal file
17
node_modules/.package-lock.json
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "B404219-tianranqi",
|
||||||
|
"lockfileVersion": 2,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"node_modules/base-64": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/base-64/-/base-64-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg=="
|
||||||
|
},
|
||||||
|
"node_modules/dayjs": {
|
||||||
|
"version": "1.11.12",
|
||||||
|
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.12.tgz",
|
||||||
|
"integrity": "sha512-Rt2g+nTbLlDWZTwwrIXjy9MeiZmSDI375FvZs72ngxx8PDC6YXOeR3q5LAuPzjZQxhiWdRKac7RKV+YyQYfYIg=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
13
node_modules/.vite/deps/_metadata.json
generated
vendored
Normal file
13
node_modules/.vite/deps/_metadata.json
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"hash": "5610b5a1",
|
||||||
|
"browserHash": "3deef0d9",
|
||||||
|
"optimized": {
|
||||||
|
"base-64": {
|
||||||
|
"src": "../../base-64/base64.js",
|
||||||
|
"file": "base-64.js",
|
||||||
|
"fileHash": "69bac4cb",
|
||||||
|
"needsInterop": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chunks": {}
|
||||||
|
}
|
117
node_modules/.vite/deps/base-64.js
generated
vendored
Normal file
117
node_modules/.vite/deps/base-64.js
generated
vendored
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __commonJS = (cb, mod) => function __require() {
|
||||||
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||||
|
};
|
||||||
|
|
||||||
|
// ../../../../Documents/HBuilderProjects/B404219-tianranqi/node_modules/base-64/base64.js
|
||||||
|
var require_base64 = __commonJS({
|
||||||
|
"../../../../Documents/HBuilderProjects/B404219-tianranqi/node_modules/base-64/base64.js"(exports, module) {
|
||||||
|
(function(root) {
|
||||||
|
var freeExports = typeof exports == "object" && exports;
|
||||||
|
var freeModule = typeof module == "object" && module && module.exports == freeExports && module;
|
||||||
|
var freeGlobal = typeof global == "object" && global;
|
||||||
|
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
|
||||||
|
root = freeGlobal;
|
||||||
|
}
|
||||||
|
var InvalidCharacterError = function(message) {
|
||||||
|
this.message = message;
|
||||||
|
};
|
||||||
|
InvalidCharacterError.prototype = new Error();
|
||||||
|
InvalidCharacterError.prototype.name = "InvalidCharacterError";
|
||||||
|
var error = function(message) {
|
||||||
|
throw new InvalidCharacterError(message);
|
||||||
|
};
|
||||||
|
var TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
|
var REGEX_SPACE_CHARACTERS = /[\t\n\f\r ]/g;
|
||||||
|
var decode = function(input) {
|
||||||
|
input = String(input).replace(REGEX_SPACE_CHARACTERS, "");
|
||||||
|
var length = input.length;
|
||||||
|
if (length % 4 == 0) {
|
||||||
|
input = input.replace(/==?$/, "");
|
||||||
|
length = input.length;
|
||||||
|
}
|
||||||
|
if (length % 4 == 1 || // http://whatwg.org/C#alphanumeric-ascii-characters
|
||||||
|
/[^+a-zA-Z0-9/]/.test(input)) {
|
||||||
|
error(
|
||||||
|
"Invalid character: the string to be decoded is not correctly encoded."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
var bitCounter = 0;
|
||||||
|
var bitStorage;
|
||||||
|
var buffer;
|
||||||
|
var output = "";
|
||||||
|
var position = -1;
|
||||||
|
while (++position < length) {
|
||||||
|
buffer = TABLE.indexOf(input.charAt(position));
|
||||||
|
bitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer;
|
||||||
|
if (bitCounter++ % 4) {
|
||||||
|
output += String.fromCharCode(
|
||||||
|
255 & bitStorage >> (-2 * bitCounter & 6)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return output;
|
||||||
|
};
|
||||||
|
var encode = function(input) {
|
||||||
|
input = String(input);
|
||||||
|
if (/[^\0-\xFF]/.test(input)) {
|
||||||
|
error(
|
||||||
|
"The string to be encoded contains characters outside of the Latin1 range."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
var padding = input.length % 3;
|
||||||
|
var output = "";
|
||||||
|
var position = -1;
|
||||||
|
var a;
|
||||||
|
var b;
|
||||||
|
var c;
|
||||||
|
var buffer;
|
||||||
|
var length = input.length - padding;
|
||||||
|
while (++position < length) {
|
||||||
|
a = input.charCodeAt(position) << 16;
|
||||||
|
b = input.charCodeAt(++position) << 8;
|
||||||
|
c = input.charCodeAt(++position);
|
||||||
|
buffer = a + b + c;
|
||||||
|
output += TABLE.charAt(buffer >> 18 & 63) + TABLE.charAt(buffer >> 12 & 63) + TABLE.charAt(buffer >> 6 & 63) + TABLE.charAt(buffer & 63);
|
||||||
|
}
|
||||||
|
if (padding == 2) {
|
||||||
|
a = input.charCodeAt(position) << 8;
|
||||||
|
b = input.charCodeAt(++position);
|
||||||
|
buffer = a + b;
|
||||||
|
output += TABLE.charAt(buffer >> 10) + TABLE.charAt(buffer >> 4 & 63) + TABLE.charAt(buffer << 2 & 63) + "=";
|
||||||
|
} else if (padding == 1) {
|
||||||
|
buffer = input.charCodeAt(position);
|
||||||
|
output += TABLE.charAt(buffer >> 2) + TABLE.charAt(buffer << 4 & 63) + "==";
|
||||||
|
}
|
||||||
|
return output;
|
||||||
|
};
|
||||||
|
var base64 = {
|
||||||
|
"encode": encode,
|
||||||
|
"decode": decode,
|
||||||
|
"version": "1.0.0"
|
||||||
|
};
|
||||||
|
if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
|
||||||
|
define(function() {
|
||||||
|
return base64;
|
||||||
|
});
|
||||||
|
} else if (freeExports && !freeExports.nodeType) {
|
||||||
|
if (freeModule) {
|
||||||
|
freeModule.exports = base64;
|
||||||
|
} else {
|
||||||
|
for (var key in base64) {
|
||||||
|
base64.hasOwnProperty(key) && (freeExports[key] = base64[key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
root.base64 = base64;
|
||||||
|
}
|
||||||
|
})(exports);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_base64();
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
base-64/base64.js:
|
||||||
|
(*! https://mths.be/base64 v1.0.0 by @mathias | MIT license *)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=base-64.js.map
|
7
node_modules/.vite/deps/base-64.js.map
generated
vendored
Normal file
7
node_modules/.vite/deps/base-64.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
node_modules/.vite/deps/package.json
generated
vendored
Normal file
3
node_modules/.vite/deps/package.json
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
20
node_modules/base-64/LICENSE-MIT.txt
generated
vendored
Normal file
20
node_modules/base-64/LICENSE-MIT.txt
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
112
node_modules/base-64/README.md
generated
vendored
Normal file
112
node_modules/base-64/README.md
generated
vendored
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
# base64 [](https://travis-ci.org/mathiasbynens/base64) [](https://coveralls.io/r/mathiasbynens/base64)
|
||||||
|
|
||||||
|
_base64_ is a robust base64 encoder/decoder that is fully compatible with [`atob()` and `btoa()`](https://html.spec.whatwg.org/multipage/webappapis.html#atob), written in JavaScript. The base64-encoding and -decoding algorithms it uses are fully [RFC 4648](https://tools.ietf.org/html/rfc4648#section-4) compliant.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Via [npm](https://www.npmjs.com/):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install base-64
|
||||||
|
```
|
||||||
|
|
||||||
|
In a browser:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="base64.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
|
In [Narwhal](http://narwhaljs.org/), [Node.js](https://nodejs.org/), and [RingoJS](http://ringojs.org/):
|
||||||
|
|
||||||
|
```js
|
||||||
|
var base64 = require('base-64');
|
||||||
|
```
|
||||||
|
|
||||||
|
In [Rhino](http://www.mozilla.org/rhino/):
|
||||||
|
|
||||||
|
```js
|
||||||
|
load('base64.js');
|
||||||
|
```
|
||||||
|
|
||||||
|
Using an AMD loader like [RequireJS](http://requirejs.org/):
|
||||||
|
|
||||||
|
```js
|
||||||
|
require(
|
||||||
|
{
|
||||||
|
'paths': {
|
||||||
|
'base64': 'path/to/base64'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
['base64'],
|
||||||
|
function(base64) {
|
||||||
|
console.log(base64);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
## API
|
||||||
|
|
||||||
|
### `base64.version`
|
||||||
|
|
||||||
|
A string representing the semantic version number.
|
||||||
|
|
||||||
|
### `base64.encode(input)`
|
||||||
|
|
||||||
|
This function takes a byte string (the `input` parameter) and encodes it according to base64. The input data must be in the form of a string containing only characters in the range from U+0000 to U+00FF, each representing a binary byte with values `0x00` to `0xFF`. The `base64.encode()` function is designed to be fully compatible with [`btoa()` as described in the HTML Standard](https://html.spec.whatwg.org/multipage/webappapis.html#dom-windowbase64-btoa).
|
||||||
|
|
||||||
|
```js
|
||||||
|
var encodedData = base64.encode(input);
|
||||||
|
```
|
||||||
|
|
||||||
|
To base64-encode any Unicode string, [encode it as UTF-8 first](https://github.com/mathiasbynens/utf8.js#utf8encodestring):
|
||||||
|
|
||||||
|
```js
|
||||||
|
var base64 = require('base-64');
|
||||||
|
var utf8 = require('utf8');
|
||||||
|
|
||||||
|
var text = 'foo © bar 𝌆 baz';
|
||||||
|
var bytes = utf8.encode(text);
|
||||||
|
var encoded = base64.encode(bytes);
|
||||||
|
console.log(encoded);
|
||||||
|
// → 'Zm9vIMKpIGJhciDwnYyGIGJheg=='
|
||||||
|
```
|
||||||
|
|
||||||
|
### `base64.decode(input)`
|
||||||
|
|
||||||
|
This function takes a base64-encoded string (the `input` parameter) and decodes it. The return value is in the form of a string containing only characters in the range from U+0000 to U+00FF, each representing a binary byte with values `0x00` to `0xFF`. The `base64.decode()` function is designed to be fully compatible with [`atob()` as described in the HTML Standard](https://html.spec.whatwg.org/multipage/webappapis.html#dom-windowbase64-atob).
|
||||||
|
|
||||||
|
```js
|
||||||
|
var decodedData = base64.decode(encodedData);
|
||||||
|
```
|
||||||
|
|
||||||
|
To base64-decode UTF-8-encoded data back into a Unicode string, [UTF-8-decode it](https://github.com/mathiasbynens/utf8.js#utf8decodebytestring) after base64-decoding it:
|
||||||
|
|
||||||
|
```js
|
||||||
|
var encoded = 'Zm9vIMKpIGJhciDwnYyGIGJheg==';
|
||||||
|
var bytes = base64.decode(encoded);
|
||||||
|
var text = utf8.decode(bytes);
|
||||||
|
console.log(text);
|
||||||
|
// → 'foo © bar 𝌆 baz'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
_base64_ is designed to work in at least Node.js v0.10.0, Narwhal 0.3.2, RingoJS 0.8-0.9, PhantomJS 1.9.0, Rhino 1.7RC4, as well as old and modern versions of Chrome, Firefox, Safari, Opera, and Internet Explorer.
|
||||||
|
|
||||||
|
## Unit tests & code coverage
|
||||||
|
|
||||||
|
After cloning this repository, run `npm install` to install the dependencies needed for development and testing. You may want to install Istanbul _globally_ using `npm install istanbul -g`.
|
||||||
|
|
||||||
|
Once that’s done, you can run the unit tests in Node using `npm test` or `node tests/tests.js`. To run the tests in Rhino, Ringo, Narwhal, and web browsers as well, use `grunt test`.
|
||||||
|
|
||||||
|
To generate the code coverage report, use `grunt cover`.
|
||||||
|
|
||||||
|
## Author
|
||||||
|
|
||||||
|
| [](https://twitter.com/mathias "Follow @mathias on Twitter") |
|
||||||
|
|---|
|
||||||
|
| [Mathias Bynens](https://mathiasbynens.be/) |
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
_base64_ is available under the [MIT](https://mths.be/mit) license.
|
164
node_modules/base-64/base64.js
generated
vendored
Normal file
164
node_modules/base-64/base64.js
generated
vendored
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */
|
||||||
|
;(function(root) {
|
||||||
|
|
||||||
|
// Detect free variables `exports`.
|
||||||
|
var freeExports = typeof exports == 'object' && exports;
|
||||||
|
|
||||||
|
// Detect free variable `module`.
|
||||||
|
var freeModule = typeof module == 'object' && module &&
|
||||||
|
module.exports == freeExports && module;
|
||||||
|
|
||||||
|
// Detect free variable `global`, from Node.js or Browserified code, and use
|
||||||
|
// it as `root`.
|
||||||
|
var freeGlobal = typeof global == 'object' && global;
|
||||||
|
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
|
||||||
|
root = freeGlobal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
var InvalidCharacterError = function(message) {
|
||||||
|
this.message = message;
|
||||||
|
};
|
||||||
|
InvalidCharacterError.prototype = new Error;
|
||||||
|
InvalidCharacterError.prototype.name = 'InvalidCharacterError';
|
||||||
|
|
||||||
|
var error = function(message) {
|
||||||
|
// Note: the error messages used throughout this file match those used by
|
||||||
|
// the native `atob`/`btoa` implementation in Chromium.
|
||||||
|
throw new InvalidCharacterError(message);
|
||||||
|
};
|
||||||
|
|
||||||
|
var TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||||||
|
// http://whatwg.org/html/common-microsyntaxes.html#space-character
|
||||||
|
var REGEX_SPACE_CHARACTERS = /[\t\n\f\r ]/g;
|
||||||
|
|
||||||
|
// `decode` is designed to be fully compatible with `atob` as described in the
|
||||||
|
// HTML Standard. http://whatwg.org/html/webappapis.html#dom-windowbase64-atob
|
||||||
|
// The optimized base64-decoding algorithm used is based on @atk’s excellent
|
||||||
|
// implementation. https://gist.github.com/atk/1020396
|
||||||
|
var decode = function(input) {
|
||||||
|
input = String(input)
|
||||||
|
.replace(REGEX_SPACE_CHARACTERS, '');
|
||||||
|
var length = input.length;
|
||||||
|
if (length % 4 == 0) {
|
||||||
|
input = input.replace(/==?$/, '');
|
||||||
|
length = input.length;
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
length % 4 == 1 ||
|
||||||
|
// http://whatwg.org/C#alphanumeric-ascii-characters
|
||||||
|
/[^+a-zA-Z0-9/]/.test(input)
|
||||||
|
) {
|
||||||
|
error(
|
||||||
|
'Invalid character: the string to be decoded is not correctly encoded.'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
var bitCounter = 0;
|
||||||
|
var bitStorage;
|
||||||
|
var buffer;
|
||||||
|
var output = '';
|
||||||
|
var position = -1;
|
||||||
|
while (++position < length) {
|
||||||
|
buffer = TABLE.indexOf(input.charAt(position));
|
||||||
|
bitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer;
|
||||||
|
// Unless this is the first of a group of 4 characters…
|
||||||
|
if (bitCounter++ % 4) {
|
||||||
|
// …convert the first 8 bits to a single ASCII character.
|
||||||
|
output += String.fromCharCode(
|
||||||
|
0xFF & bitStorage >> (-2 * bitCounter & 6)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return output;
|
||||||
|
};
|
||||||
|
|
||||||
|
// `encode` is designed to be fully compatible with `btoa` as described in the
|
||||||
|
// HTML Standard: http://whatwg.org/html/webappapis.html#dom-windowbase64-btoa
|
||||||
|
var encode = function(input) {
|
||||||
|
input = String(input);
|
||||||
|
if (/[^\0-\xFF]/.test(input)) {
|
||||||
|
// Note: no need to special-case astral symbols here, as surrogates are
|
||||||
|
// matched, and the input is supposed to only contain ASCII anyway.
|
||||||
|
error(
|
||||||
|
'The string to be encoded contains characters outside of the ' +
|
||||||
|
'Latin1 range.'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
var padding = input.length % 3;
|
||||||
|
var output = '';
|
||||||
|
var position = -1;
|
||||||
|
var a;
|
||||||
|
var b;
|
||||||
|
var c;
|
||||||
|
var buffer;
|
||||||
|
// Make sure any padding is handled outside of the loop.
|
||||||
|
var length = input.length - padding;
|
||||||
|
|
||||||
|
while (++position < length) {
|
||||||
|
// Read three bytes, i.e. 24 bits.
|
||||||
|
a = input.charCodeAt(position) << 16;
|
||||||
|
b = input.charCodeAt(++position) << 8;
|
||||||
|
c = input.charCodeAt(++position);
|
||||||
|
buffer = a + b + c;
|
||||||
|
// Turn the 24 bits into four chunks of 6 bits each, and append the
|
||||||
|
// matching character for each of them to the output.
|
||||||
|
output += (
|
||||||
|
TABLE.charAt(buffer >> 18 & 0x3F) +
|
||||||
|
TABLE.charAt(buffer >> 12 & 0x3F) +
|
||||||
|
TABLE.charAt(buffer >> 6 & 0x3F) +
|
||||||
|
TABLE.charAt(buffer & 0x3F)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (padding == 2) {
|
||||||
|
a = input.charCodeAt(position) << 8;
|
||||||
|
b = input.charCodeAt(++position);
|
||||||
|
buffer = a + b;
|
||||||
|
output += (
|
||||||
|
TABLE.charAt(buffer >> 10) +
|
||||||
|
TABLE.charAt((buffer >> 4) & 0x3F) +
|
||||||
|
TABLE.charAt((buffer << 2) & 0x3F) +
|
||||||
|
'='
|
||||||
|
);
|
||||||
|
} else if (padding == 1) {
|
||||||
|
buffer = input.charCodeAt(position);
|
||||||
|
output += (
|
||||||
|
TABLE.charAt(buffer >> 2) +
|
||||||
|
TABLE.charAt((buffer << 4) & 0x3F) +
|
||||||
|
'=='
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return output;
|
||||||
|
};
|
||||||
|
|
||||||
|
var base64 = {
|
||||||
|
'encode': encode,
|
||||||
|
'decode': decode,
|
||||||
|
'version': '1.0.0'
|
||||||
|
};
|
||||||
|
|
||||||
|
// Some AMD build optimizers, like r.js, check for specific condition patterns
|
||||||
|
// like the following:
|
||||||
|
if (
|
||||||
|
typeof define == 'function' &&
|
||||||
|
typeof define.amd == 'object' &&
|
||||||
|
define.amd
|
||||||
|
) {
|
||||||
|
define(function() {
|
||||||
|
return base64;
|
||||||
|
});
|
||||||
|
} else if (freeExports && !freeExports.nodeType) {
|
||||||
|
if (freeModule) { // in Node.js or RingoJS v0.8.0+
|
||||||
|
freeModule.exports = base64;
|
||||||
|
} else { // in Narwhal or RingoJS v0.7.0-
|
||||||
|
for (var key in base64) {
|
||||||
|
base64.hasOwnProperty(key) && (freeExports[key] = base64[key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else { // in Rhino or a web browser
|
||||||
|
root.base64 = base64;
|
||||||
|
}
|
||||||
|
|
||||||
|
}(this));
|
43
node_modules/base-64/package.json
generated
vendored
Normal file
43
node_modules/base-64/package.json
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"name": "base-64",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "A robust base64 encoder/decoder that is fully compatible with `atob()` and `btoa()`, written in JavaScript.",
|
||||||
|
"homepage": "https://mths.be/base64",
|
||||||
|
"main": "base64.js",
|
||||||
|
"keywords": [
|
||||||
|
"codec",
|
||||||
|
"decoder",
|
||||||
|
"encoder",
|
||||||
|
"base64",
|
||||||
|
"atob",
|
||||||
|
"btoa"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"author": {
|
||||||
|
"name": "Mathias Bynens",
|
||||||
|
"url": "https://mathiasbynens.be/"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/mathiasbynens/base64.git"
|
||||||
|
},
|
||||||
|
"bugs": "https://github.com/mathiasbynens/base64/issues",
|
||||||
|
"files": [
|
||||||
|
"LICENSE-MIT.txt",
|
||||||
|
"base64.js"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"test": "mocha tests/tests.js",
|
||||||
|
"build": "grunt build"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"coveralls": "^2.11.4",
|
||||||
|
"grunt": "^0.4.5",
|
||||||
|
"grunt-cli": "^1.3.2",
|
||||||
|
"grunt-shell": "^1.1.2",
|
||||||
|
"grunt-template": "^0.2.3",
|
||||||
|
"istanbul": "^0.4.0",
|
||||||
|
"mocha": "^6.2.0",
|
||||||
|
"regenerate": "^1.2.1"
|
||||||
|
}
|
||||||
|
}
|
7
node_modules/dayjs/.editorconfig
generated
vendored
Normal file
7
node_modules/dayjs/.editorconfig
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_size = 2
|
940
node_modules/dayjs/CHANGELOG.md
generated
vendored
Normal file
940
node_modules/dayjs/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,940 @@
|
|||||||
|
## [1.11.12](https://github.com/iamkun/dayjs/compare/v1.11.11...v1.11.12) (2024-07-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add NegativeYear Plugin support ([#2640](https://github.com/iamkun/dayjs/issues/2640)) ([6a42e0d](https://github.com/iamkun/dayjs/commit/6a42e0d7398639238f575d51287daaf4d495a2a3))
|
||||||
|
* add UTC support to negativeYear plugin ([#2692](https://github.com/iamkun/dayjs/issues/2692)) ([f3ef705](https://github.com/iamkun/dayjs/commit/f3ef705613af83333fe132b470896a65e12f31b0))
|
||||||
|
* Fix zero offset issue when use tz with locale ([#2532](https://github.com/iamkun/dayjs/issues/2532)) ([d0e6738](https://github.com/iamkun/dayjs/commit/d0e6738a66e1b65d3706aad2f9168ebb43d4f887))
|
||||||
|
* Improve typing for min/max plugin ([#2573](https://github.com/iamkun/dayjs/issues/2573)) ([4fbe94a](https://github.com/iamkun/dayjs/commit/4fbe94aaba8c815a42cf4d23dabac918ec50e68c))
|
||||||
|
* timezone plugin currect parse UTC tz ([#2693](https://github.com/iamkun/dayjs/issues/2693)) ([b575c81](https://github.com/iamkun/dayjs/commit/b575c81a8c9c85c7a0baf6f608a12f9d3ba95bd1))
|
||||||
|
|
||||||
|
## [1.11.11](https://github.com/iamkun/dayjs/compare/v1.11.10...v1.11.11) (2024-04-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* day of week type literal ([#2630](https://github.com/iamkun/dayjs/issues/2630)) ([f68d73e](https://github.com/iamkun/dayjs/commit/f68d73efe562fdedd9e288ecb0ce6565e602f507))
|
||||||
|
* improve locale "zh-hk" format and meridiem ([#2419](https://github.com/iamkun/dayjs/issues/2419)) ([a947a51](https://github.com/iamkun/dayjs/commit/a947a5171aad5695eaf593bc95fe073de0f0894a))
|
||||||
|
* Update 'da' locale to match correct first week of year ([#2592](https://github.com/iamkun/dayjs/issues/2592)) ([44b0936](https://github.com/iamkun/dayjs/commit/44b0936ad709212b63e48672d8b9c225e2c3b830))
|
||||||
|
* update locale Bulgarian monthsShort Jan ([#2538](https://github.com/iamkun/dayjs/issues/2538)) ([f0c9a41](https://github.com/iamkun/dayjs/commit/f0c9a41c6ec91528f3790e442b0c5dff15a4e640))
|
||||||
|
|
||||||
|
## [1.11.10](https://github.com/iamkun/dayjs/compare/v1.11.9...v1.11.10) (2023-09-19)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add Korean Day of Month with ordinal ([#2395](https://github.com/iamkun/dayjs/issues/2395)) ([dd55ee2](https://github.com/iamkun/dayjs/commit/dd55ee2aadd1009242235e47d558bbf028827896))
|
||||||
|
* change back fa locale to the Gregorian calendar equivalent ([#2411](https://github.com/iamkun/dayjs/issues/2411)) ([95e9458](https://github.com/iamkun/dayjs/commit/95e9458b221fe35e59ee4a160a5db247313a68fb))
|
||||||
|
* duration plugin - MILLISECONDS_A_MONTH const calculation ([#2362](https://github.com/iamkun/dayjs/issues/2362)) ([f0a0b54](https://github.com/iamkun/dayjs/commit/f0a0b546b074b3b511c2319a1ce83d412894b91f))
|
||||||
|
* duration plugin getter get result 0 instead of undefined ([#2369](https://github.com/iamkun/dayjs/issues/2369)) ([061aa7e](https://github.com/iamkun/dayjs/commit/061aa7ed6c31696974665fc9b11a74d30841ebed))
|
||||||
|
* fix isDayjs check logic ([#2383](https://github.com/iamkun/dayjs/issues/2383)) ([5f3f878](https://github.com/iamkun/dayjs/commit/5f3f8786c796cd432fe6bcb6966a810daea89203))
|
||||||
|
* fix timezone plugin to get correct locale setting ([#2420](https://github.com/iamkun/dayjs/issues/2420)) ([4f45012](https://github.com/iamkun/dayjs/commit/4f4501256fa1bc72128aae1d841bbd782df86aed))
|
||||||
|
* **locale:** add meridiem in `ar` locale ([#2418](https://github.com/iamkun/dayjs/issues/2418)) ([361be5c](https://github.com/iamkun/dayjs/commit/361be5c7c628614ee833d710acbe154a598b904d))
|
||||||
|
* round durations to millisecond precision for ISO string ([#2367](https://github.com/iamkun/dayjs/issues/2367)) ([890a17a](https://github.com/iamkun/dayjs/commit/890a17a8d8ddd43c7c8b806e3afc7b27f3288d27))
|
||||||
|
* sub-second precisions need to be rounded at the seconds field to avoid adding floats ([#2377](https://github.com/iamkun/dayjs/issues/2377)) ([a9d7d03](https://github.com/iamkun/dayjs/commit/a9d7d0398d22ebd4bfc3812ca0134a97606d54d9))
|
||||||
|
* update $x logic to avoid plugin error ([#2429](https://github.com/iamkun/dayjs/issues/2429)) ([2254635](https://github.com/iamkun/dayjs/commit/22546357f30924fcff3b3ffa14fd04be21f97a5e))
|
||||||
|
* Update Slovenian locale for relative time ([#2396](https://github.com/iamkun/dayjs/issues/2396)) ([5470a15](https://github.com/iamkun/dayjs/commit/5470a15e437fac803797363063b24f3ba3bd5299))
|
||||||
|
* update uzbek language translation ([#2327](https://github.com/iamkun/dayjs/issues/2327)) ([0a91056](https://github.com/iamkun/dayjs/commit/0a910564d76dc7c128da8e0d85d8e11ebdb5660b))
|
||||||
|
|
||||||
|
## [1.11.9](https://github.com/iamkun/dayjs/compare/v1.11.8...v1.11.9) (2023-07-01)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add null to min and max plugin return type ([#2355](https://github.com/iamkun/dayjs/issues/2355)) ([62d9042](https://github.com/iamkun/dayjs/commit/62d9042eb84b78d78324694ccbeaad1679d37e68))
|
||||||
|
* check if null passed to objectSupport parser ([#2175](https://github.com/iamkun/dayjs/issues/2175)) ([013968f](https://github.com/iamkun/dayjs/commit/013968f609c32e2269df69b4dd1feb2e8e1e035a))
|
||||||
|
* dayjs.diff improve performance ([#2244](https://github.com/iamkun/dayjs/issues/2244)) ([33c80e1](https://github.com/iamkun/dayjs/commit/33c80e14cf14f70ceb4f54639e266cd70a3c3996))
|
||||||
|
* dayjs(null) throws error, not return dayjs object as invalid date ([#2334](https://github.com/iamkun/dayjs/issues/2334)) ([c79e2f5](https://github.com/iamkun/dayjs/commit/c79e2f5d03eef5660b1f13385b69c0c9668d2f98))
|
||||||
|
* objectSupport plugin causes an error when null is passed to dayjs function (closes [#2277](https://github.com/iamkun/dayjs/issues/2277)) ([#2342](https://github.com/iamkun/dayjs/issues/2342)) ([89bf31c](https://github.com/iamkun/dayjs/commit/89bf31ce0a36dcfc892029dc019d85d3654cf5fb))
|
||||||
|
* Optimize format method ([#2313](https://github.com/iamkun/dayjs/issues/2313)) ([1fe1b1d](https://github.com/iamkun/dayjs/commit/1fe1b1d9a214d3b8c9f267b432801424a493f1c4))
|
||||||
|
* update Duration plugin add/subtract take into account days in month ([#2337](https://github.com/iamkun/dayjs/issues/2337)) ([3b1060f](https://github.com/iamkun/dayjs/commit/3b1060f92183ab3a3c49289c2d87fbdd34c1eacc))
|
||||||
|
* update MinMax plugin 1. ignore the 'null' in args 2. return the only one arg ([#2330](https://github.com/iamkun/dayjs/issues/2330)) ([3c2c6ee](https://github.com/iamkun/dayjs/commit/3c2c6ee4db00bbb43a7a3bb0b56bc0d0f03daddc))
|
||||||
|
|
||||||
|
## [1.11.8](https://github.com/iamkun/dayjs/compare/v1.11.7...v1.11.8) (2023-06-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* .format add padding to 'YYYY' ([#2231](https://github.com/iamkun/dayjs/issues/2231)) ([00c223b](https://github.com/iamkun/dayjs/commit/00c223b7e92970d07557133994fcb225a6d4c960))
|
||||||
|
* Added .valueOf method to Duration class ([#2226](https://github.com/iamkun/dayjs/issues/2226)) ([9b4fcfd](https://github.com/iamkun/dayjs/commit/9b4fcfde35b39693894be1821b6c7222fac98657))
|
||||||
|
* timezone type mark `date` parameter as optional ([#2222](https://github.com/iamkun/dayjs/issues/2222)) ([b87aa0e](https://github.com/iamkun/dayjs/commit/b87aa0ed9a748c478a66ef48230cd1d6350d7b8a))
|
||||||
|
* type file first parameter date is optional in isSame(), isBefore(), isAfter() ([#2272](https://github.com/iamkun/dayjs/issues/2272)) ([4d56f3e](https://github.com/iamkun/dayjs/commit/4d56f3eb2b3770879d60f824590bf1b32f237d47))
|
||||||
|
|
||||||
|
## [1.11.7](https://github.com/iamkun/dayjs/compare/v1.11.6...v1.11.7) (2022-12-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add locale (zh-tw) meridiem ([#2149](https://github.com/iamkun/dayjs/issues/2149)) ([1e9ba76](https://github.com/iamkun/dayjs/commit/1e9ba761ff4e3f2759106dfe1aa9054d5826451c))
|
||||||
|
* update fa locale ([#2151](https://github.com/iamkun/dayjs/issues/2151)) ([1c26732](https://github.com/iamkun/dayjs/commit/1c267321a1a01b4947e1482bac67d67ebc7c3dfa))
|
||||||
|
|
||||||
|
## [1.11.6](https://github.com/iamkun/dayjs/compare/v1.11.5...v1.11.6) (2022-10-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add BigIntSupport plugin ([#2087](https://github.com/iamkun/dayjs/issues/2087)) ([f6dce48](https://github.com/iamkun/dayjs/commit/f6dce48a9e39677718b087867d9fd901d5078155))
|
||||||
|
* Fix objectSupport collides with Duration plugin - issue [#2027](https://github.com/iamkun/dayjs/issues/2027) ([#2038](https://github.com/iamkun/dayjs/issues/2038)) ([c9370ea](https://github.com/iamkun/dayjs/commit/c9370ea96bf420439ee7eaa4146e8ed643160312))
|
||||||
|
|
||||||
|
## [1.11.5](https://github.com/iamkun/dayjs/compare/v1.11.4...v1.11.5) (2022-08-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* ordinal for nl not working ([#2011](https://github.com/iamkun/dayjs/issues/2011)) ([c93c85e](https://github.com/iamkun/dayjs/commit/c93c85eaa11564a1aae2d823480a417812c01bf4))
|
||||||
|
* wrong ordinal for french locale ([#2010](https://github.com/iamkun/dayjs/issues/2010)) ([dd192a7](https://github.com/iamkun/dayjs/commit/dd192a72fc5d26ce56481e89b0c1ccf5f939be0c))
|
||||||
|
|
||||||
|
## [1.11.4](https://github.com/iamkun/dayjs/compare/v1.11.3...v1.11.4) (2022-07-19)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* correct past property in ku (kurdish) locale ([#1916](https://github.com/iamkun/dayjs/issues/1916)) ([74e82b9](https://github.com/iamkun/dayjs/commit/74e82b9da5ec8b90361fc27ac7c8b63faf354502))
|
||||||
|
* fix French [fr] local ordinal ([#1932](https://github.com/iamkun/dayjs/issues/1932)) ([8f09834](https://github.com/iamkun/dayjs/commit/8f09834a88b8e7f8353c6e7473d4711596890a8c))
|
||||||
|
* fix objectSupport plugin ConfigTypeMap type ([#1441](https://github.com/iamkun/dayjs/issues/1441)) ([#1990](https://github.com/iamkun/dayjs/issues/1990)) ([fd51fe4](https://github.com/iamkun/dayjs/commit/fd51fe4f7fa799d8c598343e71fa59299ec4cf93))
|
||||||
|
* fix type error to add ordianl property in InstanceLocaleDataReturn and GlobalLocaleDataReturn types ([#1931](https://github.com/iamkun/dayjs/issues/1931)) ([526f0ae](https://github.com/iamkun/dayjs/commit/526f0ae549ffbeeb9ef1099ca23964791fc59743))
|
||||||
|
* update locale ar-* meridiem function ([#1954](https://github.com/iamkun/dayjs/issues/1954)) ([3d31611](https://github.com/iamkun/dayjs/commit/3d316117f04362d31f4e8bd349620b8414ce5d0c))
|
||||||
|
* zh-tw / zh-hk locale ordinal error ([#1976](https://github.com/iamkun/dayjs/issues/1976)) ([0a1bd08](https://github.com/iamkun/dayjs/commit/0a1bd08e736be7d4e378aaca280caa6543f8066d))
|
||||||
|
|
||||||
|
## [1.11.3](https://github.com/iamkun/dayjs/compare/v1.11.2...v1.11.3) (2022-06-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* customParseFormat plugin to parse comma as a separator character ([#1913](https://github.com/iamkun/dayjs/issues/1913)) ([41b1405](https://github.com/iamkun/dayjs/commit/41b1405971e099431211ae6c2a100cd797da4427))
|
||||||
|
* update Dutch [nl] locale ordinal ([#1908](https://github.com/iamkun/dayjs/issues/1908)) ([5da98f8](https://github.com/iamkun/dayjs/commit/5da98f8085d2d2847d79e38c795082703a14f24b))
|
||||||
|
|
||||||
|
## [1.11.2](https://github.com/iamkun/dayjs/compare/v1.11.1...v1.11.2) (2022-05-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add OpUnitType (week) to quarterOfYear startOf/endOf types ([#1865](https://github.com/iamkun/dayjs/issues/1865)) ([400bc3e](https://github.com/iamkun/dayjs/commit/400bc3e8915e0c58e7abbfd3a1235364b1abaf3e))
|
||||||
|
* Fix type issue with ManipulateType ([#1864](https://github.com/iamkun/dayjs/issues/1864)) ([d033dfc](https://github.com/iamkun/dayjs/commit/d033dfcfc1d2ced39b2733898e8d85ad5984c9e9))
|
||||||
|
* fix UTC plugin .valueOf not taking DST into account ([#1448](https://github.com/iamkun/dayjs/issues/1448)) ([27d1c50](https://github.com/iamkun/dayjs/commit/27d1c506100ae6624f258c21cc06b24768ced733))
|
||||||
|
|
||||||
|
## [1.11.1](https://github.com/iamkun/dayjs/compare/v1.11.0...v1.11.1) (2022-04-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add Bengali (Bangladesh) [bn-bd] locale ([#1806](https://github.com/iamkun/dayjs/issues/1806)) ([840ed76](https://github.com/iamkun/dayjs/commit/840ed76eedc085afefc4dedd05f31d44196b63b0))
|
||||||
|
* refactor replace deprecated String.prototype.substr() ([#1836](https://github.com/iamkun/dayjs/issues/1836)) ([627fa39](https://github.com/iamkun/dayjs/commit/627fa393e4daf83c92431162dbe18534b23fcbae))
|
||||||
|
* Update German [de] locale, adds the abbreviations for month including a . in the end, as in September -> Sept. ([#1831](https://github.com/iamkun/dayjs/issues/1831)) ([4e2802c](https://github.com/iamkun/dayjs/commit/4e2802cc3bec2941ffb737a15fb531c90951eafe))
|
||||||
|
* update Italian (Switzerland) [it-ch] locale relativeTime ([#1829](https://github.com/iamkun/dayjs/issues/1829)) ([8e6d11d](https://github.com/iamkun/dayjs/commit/8e6d11d053393d97bee1ba411adb2d82de1a58c4))
|
||||||
|
* update Kurdish [ku] locale strings and formatted output contains non-standard kurdish characters ([#1848](https://github.com/iamkun/dayjs/issues/1848)) ([a597d0b](https://github.com/iamkun/dayjs/commit/a597d0b1b8dd28e626f8c59d326622088f7b51e7))
|
||||||
|
* update locale bo [Tibetan]: corrected the orders in formats ([#1823](https://github.com/iamkun/dayjs/issues/1823)) ([e790516](https://github.com/iamkun/dayjs/commit/e79051617af6787358f6c9b5443d987b8b53a9e1))
|
||||||
|
|
||||||
|
# [1.11.0](https://github.com/iamkun/dayjs/compare/v1.10.8...v1.11.0) (2022-03-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add Kirundi (rn) locale ([#1793](https://github.com/iamkun/dayjs/issues/1793)) ([74e5247](https://github.com/iamkun/dayjs/commit/74e5247227a779fffde39bdfcd1ee19911496709))
|
||||||
|
* add missing date shorthand D type definition ([#1752](https://github.com/iamkun/dayjs/issues/1752)) ([b045baf](https://github.com/iamkun/dayjs/commit/b045baf1646a81f7e4f446f355d02d5fb0ef4aa7))
|
||||||
|
* Add relative time to Galician (gl) and fix ordinals ([#1800](https://github.com/iamkun/dayjs/issues/1800)) ([dcbf170](https://github.com/iamkun/dayjs/commit/dcbf1708400624addfbddbc71e0f6a9ac15fa961))
|
||||||
|
* update German locales (de-at, de-ch) ([#1775](https://github.com/iamkun/dayjs/issues/1775)) ([f9055a7](https://github.com/iamkun/dayjs/commit/f9055a77bf3d84c575e5fcf99e21611138ba64d7))
|
||||||
|
* update Icelandic [is] locale relativeTime config ([#1796](https://github.com/iamkun/dayjs/issues/1796)) ([76f9e17](https://github.com/iamkun/dayjs/commit/76f9e1756de7e99c01e471dab30ea074b9ec9629))
|
||||||
|
* Update index.d.ts note ([#1716](https://github.com/iamkun/dayjs/issues/1716)) ([5a108ff](https://github.com/iamkun/dayjs/commit/5a108ff3159c53fd270ea7638f33c35c934d6457))
|
||||||
|
* Update locale German [de] monthsShort ([#1746](https://github.com/iamkun/dayjs/issues/1746)) ([4a7b7d0](https://github.com/iamkun/dayjs/commit/4a7b7d07c885bb9338514c234dbb708e24e9863e))
|
||||||
|
* update meridiem function to Kurdish (ku) locale ([#1725](https://github.com/iamkun/dayjs/issues/1725)) ([efd3904](https://github.com/iamkun/dayjs/commit/efd3904ff8cbf0a4fc064911dda76fc86b669f7b))
|
||||||
|
* update updateLocal plugin typescript types ([#1692](https://github.com/iamkun/dayjs/issues/1692)) ([c7a3f73](https://github.com/iamkun/dayjs/commit/c7a3f73064dbb63b4d365b2ad4c792f075f4d8d8))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Fallback to language only locale + support uppercase locales ([#1524](https://github.com/iamkun/dayjs/issues/1524)) ([9138dc2](https://github.com/iamkun/dayjs/commit/9138dc28206875372da4fb74c64716437cd11b95))
|
||||||
|
|
||||||
|
## [1.10.8](https://github.com/iamkun/dayjs/compare/v1.10.7...v1.10.8) (2022-02-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* set locale pt, pt-br correct weekdays and months ([#1697](https://github.com/iamkun/dayjs/issues/1697)) ([e019301](https://github.com/iamkun/dayjs/commit/e01930171c8235f58a114236f146086428f99569))
|
||||||
|
|
||||||
|
## [1.10.7](https://github.com/iamkun/dayjs/compare/v1.10.6...v1.10.7) (2021-09-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add Spanish (Mexico) [es-mx] locale ([#1614](https://github.com/iamkun/dayjs/issues/1614)) ([3393f2a](https://github.com/iamkun/dayjs/commit/3393f2ad55346d55902683a2e31c6f253d96c8c2))
|
||||||
|
* Add Arabic (Iraq) [ar-iq] locale ([#1627](https://github.com/iamkun/dayjs/issues/1627)) ([b5a1391](https://github.com/iamkun/dayjs/commit/b5a1391011b247d08863d291542db5937b23b427))
|
||||||
|
* add format object type to type file ([#1572](https://github.com/iamkun/dayjs/issues/1572)) ([5a79cc6](https://github.com/iamkun/dayjs/commit/5a79cc6408e825d9e123629eb44fc19c996d7751))
|
||||||
|
* duration plugin when parsing duration from ISO string, set missing components to 0 instead of NaN ([#1611](https://github.com/iamkun/dayjs/issues/1611)) ([252585b](https://github.com/iamkun/dayjs/commit/252585b4b2bd59508150e21bb994908a9d78f9b0))
|
||||||
|
* narrow type for `add` and `subtract` ([#1576](https://github.com/iamkun/dayjs/issues/1576)) ([1686962](https://github.com/iamkun/dayjs/commit/16869621b1a42563064dbf87f80c1ebfd74c1188))
|
||||||
|
* update customParseFormat plugin strict x X parsing ([#1571](https://github.com/iamkun/dayjs/issues/1571)) ([08adda5](https://github.com/iamkun/dayjs/commit/08adda54edbcca38601f57841921d0f87f84e49e))
|
||||||
|
* update Lithuanian [lt] locale spelling for single month ([#1609](https://github.com/iamkun/dayjs/issues/1609)) ([255dc54](https://github.com/iamkun/dayjs/commit/255dc54d9295de135a9037ce6ca13cae4bfd2cfb))
|
||||||
|
* Update Norwegian Bokmål [nb] local yearStart 4 ([#1608](https://github.com/iamkun/dayjs/issues/1608)) ([7a8467c](https://github.com/iamkun/dayjs/commit/7a8467c0b7d59821f7e19d4a6973bcda8e4c19b1))
|
||||||
|
* update plugin advancedFormat `isValid` validation ([#1566](https://github.com/iamkun/dayjs/issues/1566)) ([755fc8b](https://github.com/iamkun/dayjs/commit/755fc8bb1c532eb991459f180eee81367d12016c))
|
||||||
|
* update Sinhalese [si] locale month name ([#1475](https://github.com/iamkun/dayjs/issues/1475)) ([63de2a8](https://github.com/iamkun/dayjs/commit/63de2a8b7dcd7e68c132c85d88572d4c9d296907))
|
||||||
|
* update utcOffset plugin type file ([#1604](https://github.com/iamkun/dayjs/issues/1604)) ([f68e4b1](https://github.com/iamkun/dayjs/commit/f68e4b1a29fc33542f74cde10ec6d9fb045ca37e))
|
||||||
|
|
||||||
|
## [1.10.6](https://github.com/iamkun/dayjs/compare/v1.10.5...v1.10.6) (2021-07-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add invalid date string override ([#1465](https://github.com/iamkun/dayjs/issues/1465)) ([#1470](https://github.com/iamkun/dayjs/issues/1470)) ([06f88f4](https://github.com/iamkun/dayjs/commit/06f88f425828b1ce96b737332d25145a95a4ee9d))
|
||||||
|
* add sv-fi Finland Swedish locale ([#1522](https://github.com/iamkun/dayjs/issues/1522)) ([8e32164](https://github.com/iamkun/dayjs/commit/8e32164855cff724642e24c37a631eb4c4d760c8))
|
||||||
|
* customParseFormat support parsing X x timestamp ([#1567](https://github.com/iamkun/dayjs/issues/1567)) ([eb087f5](https://github.com/iamkun/dayjs/commit/eb087f52861313b8dd8a5c1b77858665ec72859e))
|
||||||
|
* dayjs ConfigTypeMap add null & undefined ([#1560](https://github.com/iamkun/dayjs/issues/1560)) ([b5e40e6](https://github.com/iamkun/dayjs/commit/b5e40e6f16abeaea6a0facfa466d20aefaa8a444))
|
||||||
|
* Fix DayOfYear plugin when using BadMutable plugin ([#1511](https://github.com/iamkun/dayjs/issues/1511)) ([0b0c6a3](https://github.com/iamkun/dayjs/commit/0b0c6a31ec9c0aff991b0e8dd6eed116201274cc))
|
||||||
|
* Implement ordinal in Bulgarian translation (fixes [#1501](https://github.com/iamkun/dayjs/issues/1501)) ([#1502](https://github.com/iamkun/dayjs/issues/1502)) ([b728da5](https://github.com/iamkun/dayjs/commit/b728da5ed9ed08210004ed20ce5fcd52a92de7da))
|
||||||
|
* more strict delimiter in REGEX_PARSE ([#1555](https://github.com/iamkun/dayjs/issues/1555)) ([bfdab5c](https://github.com/iamkun/dayjs/commit/bfdab5c0d45a5736b68e8e1b1354fc021e05f607))
|
||||||
|
* parameter type ([#1549](https://github.com/iamkun/dayjs/issues/1549)) ([f369844](https://github.com/iamkun/dayjs/commit/f369844dd69d253c4c7cbf68150939db3db233be))
|
||||||
|
* update customParseFormat plugin to custom two-digit year parse function ([#1421](https://github.com/iamkun/dayjs/issues/1421)) ([bb5df55](https://github.com/iamkun/dayjs/commit/bb5df55cd3975dc7638b8f4e762afa470b6620f7))
|
||||||
|
* update names of weekdays and months in Bulgarian [bg] to lowercase ([#1438](https://github.com/iamkun/dayjs/issues/1438)) ([b246210](https://github.com/iamkun/dayjs/commit/b24621091fec9cf6704de21e4b323f6f0c4abbf1))
|
||||||
|
* update type file `.diff` ([#1505](https://github.com/iamkun/dayjs/issues/1505)) ([6508494](https://github.com/iamkun/dayjs/commit/6508494a4e62977b4397baaeef293d1bcf3c7235))
|
||||||
|
* update UTC plugin type file for strict parsing ([#1443](https://github.com/iamkun/dayjs/issues/1443)) ([b4f28df](https://github.com/iamkun/dayjs/commit/b4f28df219fe63202dffdbeeaec5677c4d2c9111))
|
||||||
|
|
||||||
|
## [1.10.5](https://github.com/iamkun/dayjs/compare/v1.10.4...v1.10.5) (2021-05-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add meridiem in ar locales ([#1375](https://github.com/iamkun/dayjs/issues/1375)) ([319f616](https://github.com/iamkun/dayjs/commit/319f616e572a03b984013d04d1b3a18ffd5b1190))
|
||||||
|
* Added Zulu support to customParseFormat ([#1359](https://github.com/iamkun/dayjs/issues/1359)) ([1138a3f](https://github.com/iamkun/dayjs/commit/1138a3f0a76592c6d72fb86c4399e133fa41e2ec))
|
||||||
|
* fix Bengali [bn] locale monthsShort error ([a0e6c0c](https://github.com/iamkun/dayjs/commit/a0e6c0cf3e1828020dfa11432c6716990f6ed5e0))
|
||||||
|
* fix missing types for ArraySupport plugin ([#1401](https://github.com/iamkun/dayjs/issues/1401)) ([b1abdc4](https://github.com/iamkun/dayjs/commit/b1abdc40ee6c9d18ff46c311a114e0755677ea6f))
|
||||||
|
* fix Ukrainian [uk] locale ([#1463](https://github.com/iamkun/dayjs/issues/1463)) ([0fdac93](https://github.com/iamkun/dayjs/commit/0fdac93ff2531542301b76952be9b084b2e2dfa0))
|
||||||
|
* hotfix for `Duration` types ([#1357](https://github.com/iamkun/dayjs/issues/1357)) ([855b7b3](https://github.com/iamkun/dayjs/commit/855b7b3d049a3903794f91db3419f167c00dabd2)), closes [#1354](https://github.com/iamkun/dayjs/issues/1354)
|
||||||
|
* timezone plugin DST error ([#1352](https://github.com/iamkun/dayjs/issues/1352)) ([71bed15](https://github.com/iamkun/dayjs/commit/71bed155edf32bff24379930ac684fc783538d8f))
|
||||||
|
* Update duration plugin change string to number ([#1394](https://github.com/iamkun/dayjs/issues/1394)) ([e1546d1](https://github.com/iamkun/dayjs/commit/e1546d1a0cdb97ae92cf11efe61d94707af6a3a3))
|
||||||
|
* update Duration plugin to support no-argument ([#1400](https://github.com/iamkun/dayjs/issues/1400)) ([8d9a5ae](https://github.com/iamkun/dayjs/commit/8d9a5ae0749e1b4e76babd4deeaa3b1d9776c29b))
|
||||||
|
* Update Finnish [fi] locale to set yearStart ([#1378](https://github.com/iamkun/dayjs/issues/1378)) ([f3370bd](https://github.com/iamkun/dayjs/commit/f3370bda4e435118f714c8a7daf5c88cfc4b69ba))
|
||||||
|
* update Russian [ru] locale meridiem and unit tests ([#1403](https://github.com/iamkun/dayjs/issues/1403)) ([f10f39d](https://github.com/iamkun/dayjs/commit/f10f39de7db70244a3c35e4a421090a12972457b))
|
||||||
|
* update Russian [ru] locale yearStart config ([#1372](https://github.com/iamkun/dayjs/issues/1372)) ([5052515](https://github.com/iamkun/dayjs/commit/5052515fe35b2444201ef8ef87220b1876a94d0a))
|
||||||
|
* update Slovenian [sl] locale to set correct ordinal ([#1386](https://github.com/iamkun/dayjs/issues/1386)) ([cb4f746](https://github.com/iamkun/dayjs/commit/cb4f74633b3020d6dbf19548c8cb13613dafca18))
|
||||||
|
* update Spanish [es] locale to change month names to lowercase ([#1414](https://github.com/iamkun/dayjs/issues/1414)) ([9c20e77](https://github.com/iamkun/dayjs/commit/9c20e77caf7b1b5eccf418175203b198d4e29535))
|
||||||
|
* update Swedish [sv] locale to set correct yearStart ([#1385](https://github.com/iamkun/dayjs/issues/1385)) ([66c5935](https://github.com/iamkun/dayjs/commit/66c59354964ef456bcd5f6152819618f44978082))
|
||||||
|
* update UTC plugin to support string argument like +HH:mm ([#1395](https://github.com/iamkun/dayjs/issues/1395)) ([656127c](https://github.com/iamkun/dayjs/commit/656127cc44eda50923a1ac755602863fc32b9e69))
|
||||||
|
|
||||||
|
## [1.10.4](https://github.com/iamkun/dayjs/compare/v1.10.3...v1.10.4) (2021-01-22)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Correct handling negative duration ([#1317](https://github.com/iamkun/dayjs/issues/1317)) ([3f5c085](https://github.com/iamkun/dayjs/commit/3f5c085608182472f20b84766b10949945663e44))
|
||||||
|
* Improve `Duration` types ([#1338](https://github.com/iamkun/dayjs/issues/1338)) ([4aca4b1](https://github.com/iamkun/dayjs/commit/4aca4b1b584a15de1146d929f95c944594032f20))
|
||||||
|
* parse a string for MMM month format with underscore delimiter ([#1349](https://github.com/iamkun/dayjs/issues/1349)) ([82ef9a3](https://github.com/iamkun/dayjs/commit/82ef9a304f06287ac0a14c4da9a7fe6152b5fec9))
|
||||||
|
* Update Bengali [bn] locale ([#1329](https://github.com/iamkun/dayjs/issues/1329)) ([02d96ec](https://github.com/iamkun/dayjs/commit/02d96ec7189f62d6ef8987135919cbb5ceff20a6))
|
||||||
|
* update locale Portuguese [pt] yearStart ([#1345](https://github.com/iamkun/dayjs/issues/1345)) ([5c785d5](https://github.com/iamkun/dayjs/commit/5c785d528cc08811638d7cbfc7fc158d67b32d75))
|
||||||
|
* update Polish [pl] locale yearStart ([#1348](https://github.com/iamkun/dayjs/issues/1348)) ([e93e6b8](https://github.com/iamkun/dayjs/commit/e93e6b8ffa61036b26382f1763e3864d4a7d5df5))
|
||||||
|
* Update Slovenian [sl] relativeTime locale ([#1333](https://github.com/iamkun/dayjs/issues/1333)) ([fe5f1d0](https://github.com/iamkun/dayjs/commit/fe5f1d0afbe57b70339e268047e6c3028ca3d59b))
|
||||||
|
|
||||||
|
## [1.10.3](https://github.com/iamkun/dayjs/compare/v1.10.2...v1.10.3) (2021-01-09)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix customParseFormat plugin strict mode parse meridiem bug ([#1321](https://github.com/iamkun/dayjs/issues/1321)) ([e49eeef](https://github.com/iamkun/dayjs/commit/e49eeefbe8acb36419d36ca2e7ed8bc152f73ac1))
|
||||||
|
* fix weekYear plugin missing locale bug ([#1319](https://github.com/iamkun/dayjs/issues/1319)) ([344bdc0](https://github.com/iamkun/dayjs/commit/344bdc0eed6843edb05723dc7853a41833d88f08)), closes [#1304](https://github.com/iamkun/dayjs/issues/1304)
|
||||||
|
* update advancedFormat plugin to add format options for iso week and weekyear ([#1309](https://github.com/iamkun/dayjs/issues/1309)) ([2c54c64](https://github.com/iamkun/dayjs/commit/2c54c6441871a175ac9b95e41e4cd075dbac10cb))
|
||||||
|
* update devHelper to add dev warning setting locale before loading ([c5cc893](https://github.com/iamkun/dayjs/commit/c5cc89355e1e206ca72433c19c40cb528690b04f))
|
||||||
|
* update German [de] locale yearStart ([1858df8](https://github.com/iamkun/dayjs/commit/1858df8008de56570680723df89b36a8cbc970ef)), closes [#1264](https://github.com/iamkun/dayjs/issues/1264)
|
||||||
|
|
||||||
|
## [1.10.2](https://github.com/iamkun/dayjs/compare/v1.10.1...v1.10.2) (2021-01-05)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix parse regex bug ([#1307](https://github.com/iamkun/dayjs/issues/1307)) ([db2b6a5](https://github.com/iamkun/dayjs/commit/db2b6a5ea8e70f9fda645d113ca33495aa96b616)), closes [#1305](https://github.com/iamkun/dayjs/issues/1305)
|
||||||
|
* remove module entry in package.json to revert 1.10.1 change ([#1314](https://github.com/iamkun/dayjs/issues/1314)) ([824dcb8](https://github.com/iamkun/dayjs/commit/824dcb8dfcccf14f64b6a2741a00fcdfe53dcd98))
|
||||||
|
* update devHelper add warning "passing Year as a Number will be parsed as a Unix timestamp" ([#1315](https://github.com/iamkun/dayjs/issues/1315)) ([b0dda31](https://github.com/iamkun/dayjs/commit/b0dda3139e25441ab4e7c1f4f192dee0ecce6ef8))
|
||||||
|
|
||||||
|
## [1.10.1](https://github.com/iamkun/dayjs/compare/v1.10.0...v1.10.1) (2021-01-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix typescript type error UnitTypeLongPlural ([#1302](https://github.com/iamkun/dayjs/issues/1302)) ([bfaabe4](https://github.com/iamkun/dayjs/commit/bfaabe4f398c11564eca6cda7c8aded22e1b231a)), closes [#1300](https://github.com/iamkun/dayjs/issues/1300)
|
||||||
|
|
||||||
|
# [1.10.0](https://github.com/iamkun/dayjs/compare/v1.9.8...v1.10.0) (2021-01-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add ordinal to localeData plugin ([#1266](https://github.com/iamkun/dayjs/issues/1266)) ([fd229fa](https://github.com/iamkun/dayjs/commit/fd229fa5bd26bcba810e2535eb937ea8d99106c2))
|
||||||
|
* add preParsePostFormat plugin & update Arabic [ar] locale ([#1255](https://github.com/iamkun/dayjs/issues/1255)) ([f2e4790](https://github.com/iamkun/dayjs/commit/f2e479006a9a49bc0917f8620101d40ac645f7f2))
|
||||||
|
* add type support for plural forms of units ([#1289](https://github.com/iamkun/dayjs/issues/1289)) ([de49bb1](https://github.com/iamkun/dayjs/commit/de49bb100badfb92b9a5933cc568841f340a923f))
|
||||||
|
* escape last period to match only milliseconds ([#1239](https://github.com/iamkun/dayjs/issues/1239)) ([#1295](https://github.com/iamkun/dayjs/issues/1295)) ([64037e6](https://github.com/iamkun/dayjs/commit/64037e6a8cf303dcfd2b954f309bd9691f87fffc))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add ES6 Module Support, package.json module point to "esm/index.js" ([#1298](https://github.com/iamkun/dayjs/issues/1298)) ([f63375d](https://github.com/iamkun/dayjs/commit/f63375dea89becbd3bb2bb8ea7289c58c752bfed)), closes [#598](https://github.com/iamkun/dayjs/issues/598) [#313](https://github.com/iamkun/dayjs/issues/313)
|
||||||
|
|
||||||
|
## [1.9.8](https://github.com/iamkun/dayjs/compare/v1.9.7...v1.9.8) (2020-12-27)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix Ukrainian [uk] locale typo ([1605cc0](https://github.com/iamkun/dayjs/commit/1605cc0f6fe0e9c46a92d529bc9cd6e130432337))
|
||||||
|
* update Hebrew [he] locale for double units ([#1287](https://github.com/iamkun/dayjs/issues/1287)) ([1c4b0da](https://github.com/iamkun/dayjs/commit/1c4b0da1468522e59dc9ee646d10dd2b31477d99))
|
||||||
|
* update zh locale meridiem "noon" ([0e7ff3d](https://github.com/iamkun/dayjs/commit/0e7ff3dd29ca3aed85cb76dfcb8298d326e26542))
|
||||||
|
* update zh-cn locale definition of noon ([#1278](https://github.com/iamkun/dayjs/issues/1278)) ([d5930b9](https://github.com/iamkun/dayjs/commit/d5930b96ff884f4176ca3fcb1bc95e8f1ec75c71))
|
||||||
|
|
||||||
|
## [1.9.7](https://github.com/iamkun/dayjs/compare/v1.9.6...v1.9.7) (2020-12-05)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add duration.format to format a Duration ([#1202](https://github.com/iamkun/dayjs/issues/1202)) ([9a859a1](https://github.com/iamkun/dayjs/commit/9a859a147ba223a1eeff0f2bb6f33d97e0ccc6c7))
|
||||||
|
* Add function handling for relativeTime.future and relativeTime.past ([#1197](https://github.com/iamkun/dayjs/issues/1197)) ([ef1979c](https://github.com/iamkun/dayjs/commit/ef1979ce85c61fe2d759ef3c37cb6aaf2358094f))
|
||||||
|
* avoid install installed plugin ([#1214](https://github.com/iamkun/dayjs/issues/1214)) ([a92eb6c](https://github.com/iamkun/dayjs/commit/a92eb6c4dc1437ec920e69484d52984f5921a8ea))
|
||||||
|
* avoid memory leak after installing a plugin too many times ([b8d2e32](https://github.com/iamkun/dayjs/commit/b8d2e32a9eb59661a7ed6200daa070687becaebd))
|
||||||
|
* fix diff bug when UTC plugin enabled ([#1201](https://github.com/iamkun/dayjs/issues/1201)) ([9544ed2](https://github.com/iamkun/dayjs/commit/9544ed2a6c466b8308d26b33a388a6737435a1f4)), closes [#1200](https://github.com/iamkun/dayjs/issues/1200)
|
||||||
|
* fix startOf/endOf bug in timezone plugin ([#1229](https://github.com/iamkun/dayjs/issues/1229)) ([eb5fbc4](https://github.com/iamkun/dayjs/commit/eb5fbc4c7d1b62a8615d2f263b404a9515d8e15c))
|
||||||
|
* fix utc plugin diff edge case ([#1187](https://github.com/iamkun/dayjs/issues/1187)) ([971b3d4](https://github.com/iamkun/dayjs/commit/971b3d40b4c9403165138f1034e2223cd97c3abf))
|
||||||
|
* update customParseFormat plugin to parse 2-digit offset ([#1209](https://github.com/iamkun/dayjs/issues/1209)) ([b56936a](https://github.com/iamkun/dayjs/commit/b56936ab77b8f6289a1b77d49307b495c4bf9f91)), closes [#1205](https://github.com/iamkun/dayjs/issues/1205)
|
||||||
|
* Update timezone plugin type definition ([#1221](https://github.com/iamkun/dayjs/issues/1221)) ([34cfb92](https://github.com/iamkun/dayjs/commit/34cfb920b9653ad44d4b31fe49e533692a3ce01b))
|
||||||
|
|
||||||
|
## [1.9.6](https://github.com/iamkun/dayjs/compare/v1.9.5...v1.9.6) (2020-11-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix customParseFormat plugin parsing date bug ([#1198](https://github.com/iamkun/dayjs/issues/1198)) ([50f05ad](https://github.com/iamkun/dayjs/commit/50f05ad3addf27827c5657ae7519514e40d9faec)), closes [#1194](https://github.com/iamkun/dayjs/issues/1194)
|
||||||
|
* Update lv (Latvian) locale relative time ([#1192](https://github.com/iamkun/dayjs/issues/1192)) ([6d6c684](https://github.com/iamkun/dayjs/commit/6d6c6841b13ba4f7e69de92caf132a3592c5253a))
|
||||||
|
|
||||||
|
## [1.9.5](https://github.com/iamkun/dayjs/compare/v1.9.4...v1.9.5) (2020-11-05)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* customParseFormat plugin supports parsing localizedFormats ([#1110](https://github.com/iamkun/dayjs/issues/1110)) ([402b603](https://github.com/iamkun/dayjs/commit/402b603aa3ee4199786950bc88b3fdc6b527aa35))
|
||||||
|
* fix customParseFormat plugin parse meridiem bug ([#1169](https://github.com/iamkun/dayjs/issues/1169)) ([9e8f8d9](https://github.com/iamkun/dayjs/commit/9e8f8d96c69d557f4d267f42567c25ae9e7ab227)), closes [#1168](https://github.com/iamkun/dayjs/issues/1168)
|
||||||
|
* fix devHelper error in umd bundle in browser ([#1165](https://github.com/iamkun/dayjs/issues/1165)) ([d11b5ee](https://github.com/iamkun/dayjs/commit/d11b5ee7dc11af671355f65ccda00f6ba42cc725))
|
||||||
|
* fix utc plugin diff bug in DST ([#1171](https://github.com/iamkun/dayjs/issues/1171)) ([f8da3fe](https://github.com/iamkun/dayjs/commit/f8da3fe7e50c84c0502bf5be0b364910922dbd79)), closes [#1097](https://github.com/iamkun/dayjs/issues/1097) [#1021](https://github.com/iamkun/dayjs/issues/1021)
|
||||||
|
* isoWeek plugin type ([#1177](https://github.com/iamkun/dayjs/issues/1177)) ([c3d0436](https://github.com/iamkun/dayjs/commit/c3d0436b06f74989e3a2c751a5d170f8072c4aad))
|
||||||
|
* update localeData plugin to support meridiem ([#1174](https://github.com/iamkun/dayjs/issues/1174)) ([fdb09e4](https://github.com/iamkun/dayjs/commit/fdb09e4074cc7e8f6196846f18d3566c1f9e8fcd)), closes [#1172](https://github.com/iamkun/dayjs/issues/1172)
|
||||||
|
* update timezone plugin parse Date instance / timestamp logic & remove useless test ([#1183](https://github.com/iamkun/dayjs/issues/1183)) ([a7f858b](https://github.com/iamkun/dayjs/commit/a7f858bb70ad81f718ba35c479e84b54eace48b2))
|
||||||
|
|
||||||
|
## [1.9.4](https://github.com/iamkun/dayjs/compare/v1.9.3...v1.9.4) (2020-10-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add descriptions to types ([#1148](https://github.com/iamkun/dayjs/issues/1148)) ([9a407a1](https://github.com/iamkun/dayjs/commit/9a407a140b089345a387d1aceab4d0d1635229c7))
|
||||||
|
* add devHelper plugin ([#1163](https://github.com/iamkun/dayjs/issues/1163)) ([de49dc8](https://github.com/iamkun/dayjs/commit/de49dc80c83b85de4170571b64412bd60ada221b))
|
||||||
|
* Fix Hungarian (hu) locale ([#1112](https://github.com/iamkun/dayjs/issues/1112)) ([ab13754](https://github.com/iamkun/dayjs/commit/ab13754f43c5033dacaa0eb2042dc4ab1a7a2754))
|
||||||
|
* fix minMax plugin parsing empty array bug ([#1062](https://github.com/iamkun/dayjs/issues/1062)) ([368108b](https://github.com/iamkun/dayjs/commit/368108bc6d5cb1542f711b8eba722bd4dfaab0cd))
|
||||||
|
* update adding/subtracting Duration from Dayjs object ([#1156](https://github.com/iamkun/dayjs/issues/1156)) ([f861aca](https://github.com/iamkun/dayjs/commit/f861acac3e83e28d3a4a96312c71119fd6b544fc))
|
||||||
|
* update en-NZ locale to use proper ordinal formatting function ([#1143](https://github.com/iamkun/dayjs/issues/1143)) ([fcdbc58](https://github.com/iamkun/dayjs/commit/fcdbc5880710456a29b2bacf250542230bf48b99))
|
||||||
|
* update localeData plugin type ([#1116](https://github.com/iamkun/dayjs/issues/1116)) ([ee5a4ec](https://github.com/iamkun/dayjs/commit/ee5a4ec41edddfb57d103c35182dc635c9264a10))
|
||||||
|
* update timezone plugin to support custom parse format ([#1160](https://github.com/iamkun/dayjs/issues/1160)) ([48cbf31](https://github.com/iamkun/dayjs/commit/48cbf3118ba5427de428777c2e025896db654f2e)), closes [#1159](https://github.com/iamkun/dayjs/issues/1159)
|
||||||
|
* update timezone plugin to support keepLocalTime ([#1161](https://github.com/iamkun/dayjs/issues/1161)) ([1d429e5](https://github.com/iamkun/dayjs/commit/1d429e5fe4467ebddcf81b43cf6f36e5e3be944c)), closes [#1149](https://github.com/iamkun/dayjs/issues/1149)
|
||||||
|
|
||||||
|
## [1.9.3](https://github.com/iamkun/dayjs/compare/v1.9.2...v1.9.3) (2020-10-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix localizedFormat export error ([#1133](https://github.com/iamkun/dayjs/issues/1133)) ([deecd6a](https://github.com/iamkun/dayjs/commit/deecd6ab8a2f4173ee7046f6b568b41fd2677531)), closes [#1132](https://github.com/iamkun/dayjs/issues/1132)
|
||||||
|
|
||||||
|
## [1.9.2](https://github.com/iamkun/dayjs/compare/v1.9.1...v1.9.2) (2020-10-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add arraySupport plugin ([#1129](https://github.com/iamkun/dayjs/issues/1129)) ([be505c2](https://github.com/iamkun/dayjs/commit/be505c2c540261027342cecc55d8919a3d18d893))
|
||||||
|
* export type of duration plugin ([#1094](https://github.com/iamkun/dayjs/issues/1094)) ([2c92e71](https://github.com/iamkun/dayjs/commit/2c92e71bf55d09601120cdf433da7a19cc8abff6))
|
||||||
|
* Fix LocaleData plugin longDateFormat lowercase error ([#1101](https://github.com/iamkun/dayjs/issues/1101)) ([7937ccd](https://github.com/iamkun/dayjs/commit/7937ccdeac47d094a60e65ebb62a6020b81c46f4))
|
||||||
|
* Fix objectSupport plugin bug in UTC ([#1107](https://github.com/iamkun/dayjs/issues/1107)) ([fe90bb6](https://github.com/iamkun/dayjs/commit/fe90bb6944f2ff1969ca975954d303b449dfa95b)), closes [#1105](https://github.com/iamkun/dayjs/issues/1105)
|
||||||
|
* fix Serbian locale grammar (sr, sr-cyrl) ([#1108](https://github.com/iamkun/dayjs/issues/1108)) ([cc87eff](https://github.com/iamkun/dayjs/commit/cc87eff8b75b0d86ce0956516319d402bccae6c0))
|
||||||
|
* Fix typo for "monday" in arabic ([#1067](https://github.com/iamkun/dayjs/issues/1067)) ([2e1e426](https://github.com/iamkun/dayjs/commit/2e1e42650124f30282dc4d710798d576b928f1c7))
|
||||||
|
* support dayjs.add(Duration), dayjs.subtract(Duration) ([#1099](https://github.com/iamkun/dayjs/issues/1099)) ([b1a0294](https://github.com/iamkun/dayjs/commit/b1a02942c5238203aaa04ce9a074c73742324ab7))
|
||||||
|
* update Breton [br] locale relativeTime config ([#1103](https://github.com/iamkun/dayjs/issues/1103)) ([b038bfd](https://github.com/iamkun/dayjs/commit/b038bfdb128889d677c95534d2be29cc30c9e72f))
|
||||||
|
* update Catalan [ca] locale ordinal ([73da380](https://github.com/iamkun/dayjs/commit/73da38024c8b550bdcfbe3ff7e578e742c7aecf2))
|
||||||
|
* update German [de] locale relativeTime config ([#1109](https://github.com/iamkun/dayjs/issues/1109)) ([f6e771b](https://github.com/iamkun/dayjs/commit/f6e771b70f93d19ebb12e6b794aa4628a1796248))
|
||||||
|
* update localeData plugin to add longDateFormat to global localeData ([#1106](https://github.com/iamkun/dayjs/issues/1106)) ([16937d1](https://github.com/iamkun/dayjs/commit/16937d16e053b8c1d4a607622fa2fdbfd9809832))
|
||||||
|
* Update objectSupport plugin to return current date time while parsing empty object ([f56783e](https://github.com/iamkun/dayjs/commit/f56783e14d8cf50916b015e7188b23bb6fbca839))
|
||||||
|
|
||||||
|
## [1.9.1](https://github.com/iamkun/dayjs/compare/v1.9.0...v1.9.1) (2020-09-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix objectSupport plugin to get the correct result (zero-based month) ([#1089](https://github.com/iamkun/dayjs/issues/1089)) ([f95ac15](https://github.com/iamkun/dayjs/commit/f95ac15a4577ae5a3d1ce353872a2cd9fc454bc2))
|
||||||
|
|
||||||
|
# [1.9.0](https://github.com/iamkun/dayjs/compare/v1.8.36...v1.9.0) (2020-09-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add `setDefault` typing to timezone.d.ts ([#1057](https://github.com/iamkun/dayjs/issues/1057)) ([c0f0886](https://github.com/iamkun/dayjs/commit/c0f088620f17260e6e3ebce7697d561b5623f5f3))
|
||||||
|
* fix DST bug in utc plugin ([#1053](https://github.com/iamkun/dayjs/issues/1053)) ([3d73543](https://github.com/iamkun/dayjs/commit/3d7354361f042ced1176d91f9ae9edffe6173425))
|
||||||
|
* Fix optional type for timezone plugin ([#1081](https://github.com/iamkun/dayjs/issues/1081)) ([a6ebcf2](https://github.com/iamkun/dayjs/commit/a6ebcf283a83273562dce5663155e3b3a12ea9a5)), closes [#1079](https://github.com/iamkun/dayjs/issues/1079)
|
||||||
|
* Fix timezone plugin conversion bug ([#1073](https://github.com/iamkun/dayjs/issues/1073)) ([16816a3](https://github.com/iamkun/dayjs/commit/16816a31ff43220aca9d1d179df6b729182abb55))
|
||||||
|
* update duration plugin type file ([#1065](https://github.com/iamkun/dayjs/issues/1065)) ([94af9af](https://github.com/iamkun/dayjs/commit/94af9af27c5bc182cbb24f1845e561dd1d82d776))
|
||||||
|
* update timezone plugin to support getting offset name e.g. EST ([#1069](https://github.com/iamkun/dayjs/issues/1069)) ([cbb755e](https://github.com/iamkun/dayjs/commit/cbb755e5c68d49c5678291f3ce832b32831a056e))
|
||||||
|
* update utc plugin to support keepLocalTime `.utc(true)` ([#1080](https://github.com/iamkun/dayjs/issues/1080)) ([5ce4e0d](https://github.com/iamkun/dayjs/commit/5ce4e0d2f552f3645262537ff7afdc946f5a7e72))
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Correct casing for en-sg locale name ([#1048](https://github.com/iamkun/dayjs/issues/1048)) ([2edaddc](https://github.com/iamkun/dayjs/commit/2edaddc22a7eb914f915531f389766217acd7034))
|
||||||
|
|
||||||
|
## [1.8.36](https://github.com/iamkun/dayjs/compare/v1.8.35...v1.8.36) (2020-09-17)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add Amharic (am) locale ([#1046](https://github.com/iamkun/dayjs/issues/1046)) ([cdc49a1](https://github.com/iamkun/dayjs/commit/cdc49a1911c74b7ea96ed222f42796d53715cfed))
|
||||||
|
* Export Duration type in duration plugin ([#1043](https://github.com/iamkun/dayjs/issues/1043)) ([0f20c3a](https://github.com/iamkun/dayjs/commit/0f20c3ac75d9ac1026a15a7bb343d3a150d9b30f))
|
||||||
|
* Fix duration plugin parsing milliseconds bug ([#1042](https://github.com/iamkun/dayjs/issues/1042)) ([fe2301b](https://github.com/iamkun/dayjs/commit/fe2301b22318886aaa89ed1620e0a118e98c2b8a))
|
||||||
|
* Timezone plugin set default timezone ([#1033](https://github.com/iamkun/dayjs/issues/1033)) ([0c2050a](https://github.com/iamkun/dayjs/commit/0c2050a152da708b01edd6150a5013f642b14576))
|
||||||
|
* Timezone plugin should have the same behavior in latest ICU version ([#1032](https://github.com/iamkun/dayjs/issues/1032)) ([de31592](https://github.com/iamkun/dayjs/commit/de315921575cc50c38464b27d0338e30a54d8e2a))
|
||||||
|
* Update Finnish (fi) locale ([#963](https://github.com/iamkun/dayjs/issues/963)) ([cf8b6a0](https://github.com/iamkun/dayjs/commit/cf8b6a096f24b54cbdb95675ac386d8ac85ea616))
|
||||||
|
* Update Polish (pl) , Hungarian (hr) and Lithuanian (lt) localization ([#1045](https://github.com/iamkun/dayjs/issues/1045)) ([638fd39](https://github.com/iamkun/dayjs/commit/638fd394fc24f4188390faf387da6b156e7c6320))
|
||||||
|
|
||||||
|
## [1.8.35](https://github.com/iamkun/dayjs/compare/v1.8.34...v1.8.35) (2020-09-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix BadMutable plugin bug in .diff ([#1023](https://github.com/iamkun/dayjs/issues/1023)) ([40ab6d9](https://github.com/iamkun/dayjs/commit/40ab6d9a53e8047cfca63c611c25dd045372d021))
|
||||||
|
* fix LocaleData plugin to support instance.weekdays() API ([#1019](https://github.com/iamkun/dayjs/issues/1019)) ([a09d259](https://github.com/iamkun/dayjs/commit/a09d259a407b81d1cb6bb5623fad551c775d8674)), closes [#1017](https://github.com/iamkun/dayjs/issues/1017)
|
||||||
|
* Update Dutch (nl) locale to set correct yearStart ([1533a2c](https://github.com/iamkun/dayjs/commit/1533a2cc1475270032da2d87b19fc3d62327e6e3))
|
||||||
|
|
||||||
|
## [1.8.34](https://github.com/iamkun/dayjs/compare/v1.8.33...v1.8.34) (2020-08-20)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix Timezone plugin to preserve milliseconds while changing timezone ([#1003](https://github.com/iamkun/dayjs/issues/1003)) ([5f446ed](https://github.com/iamkun/dayjs/commit/5f446eda770fa97e895c81a8195b3ba5d082cef0)), closes [#1002](https://github.com/iamkun/dayjs/issues/1002)
|
||||||
|
* support parsing unlimited decimals of millisecond ([#1010](https://github.com/iamkun/dayjs/issues/1010)) ([d1bdd36](https://github.com/iamkun/dayjs/commit/d1bdd36a56e3d1786523a180e3fc18068f609135)), closes [#544](https://github.com/iamkun/dayjs/issues/544)
|
||||||
|
* update Duration plugin to support global locale ([#1008](https://github.com/iamkun/dayjs/issues/1008)) ([1c49c83](https://github.com/iamkun/dayjs/commit/1c49c83e79811eede13db6372b5d65db598aee77)), closes [#1007](https://github.com/iamkun/dayjs/issues/1007)
|
||||||
|
|
||||||
|
## [1.8.33](https://github.com/iamkun/dayjs/compare/v1.8.32...v1.8.33) (2020-08-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add PluralGetSet plugin for plural getters/setters ([#996](https://github.com/iamkun/dayjs/issues/996)) ([f76e3ce](https://github.com/iamkun/dayjs/commit/f76e3ce2fbe5d3e9ed9121086baf55eb0cc4d355))
|
||||||
|
* Add typescript type defs in esm build ([#985](https://github.com/iamkun/dayjs/issues/985)) ([50e3b3c](https://github.com/iamkun/dayjs/commit/50e3b3c6719cb0b4ec6eff394dacd63d5db8f253))
|
||||||
|
* Fix isoWeek Plugin cal bug in UTC mode ([#993](https://github.com/iamkun/dayjs/issues/993)) ([f2e5f32](https://github.com/iamkun/dayjs/commit/f2e5f327aaf12b4572296ec6e107ecc05fcf76e7))
|
||||||
|
* Fix Timezone plugin parsing js date, Day.js object, timestamp bug && update type file ([#994](https://github.com/iamkun/dayjs/issues/994)) ([22f3d49](https://github.com/iamkun/dayjs/commit/22f3d49405da98db6da56d1673eebcd01b57554b)), closes [#992](https://github.com/iamkun/dayjs/issues/992) [#989](https://github.com/iamkun/dayjs/issues/989)
|
||||||
|
* Fix Timezone plugin UTCOffset rounding bug ([#987](https://github.com/iamkun/dayjs/issues/987)) ([b07182b](https://github.com/iamkun/dayjs/commit/b07182bbdf5aef7f6bf1e88fcd38432e2b8ee465)), closes [#986](https://github.com/iamkun/dayjs/issues/986)
|
||||||
|
* Fix UTC plugin bug while comparing an utc instance to a local one ([#995](https://github.com/iamkun/dayjs/issues/995)) ([747c0fb](https://github.com/iamkun/dayjs/commit/747c0fb4eba6353755b5dad3417fd8d5a408c378))
|
||||||
|
* Update pt-br locale weekStart 0 ([#984](https://github.com/iamkun/dayjs/issues/984)) ([0f881c1](https://github.com/iamkun/dayjs/commit/0f881c18efb02b9d0ba7f76cba92bb504226fa95))
|
||||||
|
|
||||||
|
## [1.8.32](https://github.com/iamkun/dayjs/compare/v1.8.31...v1.8.32) (2020-08-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add Experimental Timezone Plugin ([#974](https://github.com/iamkun/dayjs/issues/974)) ([e69caba](https://github.com/iamkun/dayjs/commit/e69caba1b0957241a855aa0ae38db899fa2c3795))
|
||||||
|
* fix parse date string error e.g. '2020/9/30' ([#980](https://github.com/iamkun/dayjs/issues/980)) ([231790d](https://github.com/iamkun/dayjs/commit/231790da62af0494732960c2c50d86ae9bf63ec6)), closes [#979](https://github.com/iamkun/dayjs/issues/979)
|
||||||
|
* update monthDiff function to get more accurate results ([19e8a7f](https://github.com/iamkun/dayjs/commit/19e8a7f2f7582b717f49d446822e39603694433c))
|
||||||
|
* Update UTC plugin to support keepLocalTime ([#973](https://github.com/iamkun/dayjs/issues/973)) ([9f488e5](https://github.com/iamkun/dayjs/commit/9f488e5aca92f0b4c2951459436829d79f86d8d7))
|
||||||
|
|
||||||
|
## [1.8.31](https://github.com/iamkun/dayjs/compare/v1.8.30...v1.8.31) (2020-07-29)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Rollback LocalePresetType to string ([#968](https://github.com/iamkun/dayjs/issues/968)) ([b342bd3](https://github.com/iamkun/dayjs/commit/b342bd3d84987d6c7587a0c4590d614fb0e670d7))
|
||||||
|
* Update Regex to parse 'YYYY' correctly ([#969](https://github.com/iamkun/dayjs/issues/969)) ([70c1239](https://github.com/iamkun/dayjs/commit/70c123990dcc6bd479fa2b5d7f9985127872a826))
|
||||||
|
|
||||||
|
## [1.8.30](https://github.com/iamkun/dayjs/compare/v1.8.29...v1.8.30) (2020-07-22)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add Haitian Creole (ht) and Spanish Puerto Rico (es-pr) locale configs ([#958](https://github.com/iamkun/dayjs/issues/958)) ([b2642e2](https://github.com/iamkun/dayjs/commit/b2642e2d1f87734a34808c66e5176cb18bc0414d))
|
||||||
|
* Fix UTC plugin wrong hour bug while adding month or year ([#957](https://github.com/iamkun/dayjs/issues/957)) ([28ae070](https://github.com/iamkun/dayjs/commit/28ae070024ff26685c88ce4cc8747307e86923c9))
|
||||||
|
* Update French (fr) locale to set correct yearStart ([14ab808](https://github.com/iamkun/dayjs/commit/14ab808a7b7e226f2eb2cbe894916a18ed5d967d)), closes [#956](https://github.com/iamkun/dayjs/issues/956)
|
||||||
|
|
||||||
|
## [1.8.29](https://github.com/iamkun/dayjs/compare/v1.8.28...v1.8.29) (2020-07-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Duration plugin supports parse ISO string with week (W) ([#950](https://github.com/iamkun/dayjs/issues/950)) ([f0fc12a](https://github.com/iamkun/dayjs/commit/f0fc12adadcab53fb0577ad8f5e2f1cf784fd8f5))
|
||||||
|
* LocaleData plugin supports locale order ([#938](https://github.com/iamkun/dayjs/issues/938)) ([62f429d](https://github.com/iamkun/dayjs/commit/62f429db73a0a069b1267231dea172b85f4b90e3)), closes [#936](https://github.com/iamkun/dayjs/issues/936)
|
||||||
|
* Update type definition to support array format ([#945](https://github.com/iamkun/dayjs/issues/945)) ([81d4740](https://github.com/iamkun/dayjs/commit/81d4740511d47e34f891b21afeb0449ef8a28688)), closes [#944](https://github.com/iamkun/dayjs/issues/944)
|
||||||
|
* Update type definition to support strict mode ([#951](https://github.com/iamkun/dayjs/issues/951)) ([8d54f3f](https://github.com/iamkun/dayjs/commit/8d54f3f7d4d161e72c767fa09699e70a2b3d681c))
|
||||||
|
|
||||||
|
## [1.8.28](https://github.com/iamkun/dayjs/compare/v1.8.27...v1.8.28) (2020-05-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix CustomParseFormat plugin month index error ([#918](https://github.com/iamkun/dayjs/issues/918)) ([fa2ec7f](https://github.com/iamkun/dayjs/commit/fa2ec7fcb980dcd2c7498dafe2f9ca2e52d735cf)), closes [#915](https://github.com/iamkun/dayjs/issues/915)
|
||||||
|
* Update Ukrainian (uk) locale monthFormat and monthStandalone ([#899](https://github.com/iamkun/dayjs/issues/899)) ([a08756e](https://github.com/iamkun/dayjs/commit/a08756e80bd1d7126fca28c5ad9e382613fc86c4))
|
||||||
|
|
||||||
|
## [1.8.27](https://github.com/iamkun/dayjs/compare/v1.8.26...v1.8.27) (2020-05-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add Kinyarwanda (rw) locale ([#903](https://github.com/iamkun/dayjs/issues/903)) ([f355235](https://github.com/iamkun/dayjs/commit/f355235a836540d77880959fb1b614c87e9f7b3e))
|
||||||
|
* Add plugin objectSupport ([#887](https://github.com/iamkun/dayjs/issues/887)) ([52dfb13](https://github.com/iamkun/dayjs/commit/52dfb13a6b84f0a753cc5761192b92416f440961))
|
||||||
|
* Add Turkmen (tk) locale ([#893](https://github.com/iamkun/dayjs/issues/893)) ([a9ca8dc](https://github.com/iamkun/dayjs/commit/a9ca8dcbbd0964c5b9abb4e8a2d620c983cf091a))
|
||||||
|
* Fix CustomParseFormat plugin set locale error ([#896](https://github.com/iamkun/dayjs/issues/896)) ([8035c8a](https://github.com/iamkun/dayjs/commit/8035c8a760549b631252252718db3cdc4ab2f68f))
|
||||||
|
* Fix locale month function bug ([#908](https://github.com/iamkun/dayjs/issues/908)) ([bf347c3](https://github.com/iamkun/dayjs/commit/bf347c36e401f50727fb5afcc537497b54b90d6b))
|
||||||
|
* Update CustomParseFormat plugin to support Array formats ([#906](https://github.com/iamkun/dayjs/issues/906)) ([97856c6](https://github.com/iamkun/dayjs/commit/97856c603ef5fbbeb1cf8a42387479e56a77dbe8))
|
||||||
|
|
||||||
|
## [1.8.26](https://github.com/iamkun/dayjs/compare/v1.8.25...v1.8.26) (2020-04-30)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix Duration plugin `.toISOString` format bug ([#889](https://github.com/iamkun/dayjs/issues/889)) ([058d624](https://github.com/iamkun/dayjs/commit/058d624808fd2be024ae846bcb2e03885f39b556)), closes [#888](https://github.com/iamkun/dayjs/issues/888)
|
||||||
|
* Fix WeekOfYear plugin bug while using BadMutable plugin ([#884](https://github.com/iamkun/dayjs/issues/884)) ([2977438](https://github.com/iamkun/dayjs/commit/2977438458542573a4500e21f7ba5d1f8442960e))
|
||||||
|
* Update CustomParseFormat plugin strict mode ([#882](https://github.com/iamkun/dayjs/issues/882)) ([db642ac](https://github.com/iamkun/dayjs/commit/db642ac73e52e00d8c41546b2935c9e691cf66e0))
|
||||||
|
* Update RelativeTime plugin default config ([#883](https://github.com/iamkun/dayjs/issues/883)) ([0606f42](https://github.com/iamkun/dayjs/commit/0606f425aef8ccbfc3da3e43cba368130603b0cc))
|
||||||
|
|
||||||
|
## [1.8.25](https://github.com/iamkun/dayjs/compare/v1.8.24...v1.8.25) (2020-04-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix CustomParseFormat plugin of parsing only YYYY / YYYY-MM bug ([#873](https://github.com/iamkun/dayjs/issues/873)) ([3cea04d](https://github.com/iamkun/dayjs/commit/3cea04d33d54d44bbdd3d026b5c7f67ebf176116)), closes [#849](https://github.com/iamkun/dayjs/issues/849)
|
||||||
|
* Fix Duration plugin get seconds ([#867](https://github.com/iamkun/dayjs/issues/867)) ([62b092d](https://github.com/iamkun/dayjs/commit/62b092d9f9a3db5506ef01f798bdf211f163f53f))
|
||||||
|
* Fix type definition of locale ([9790b85](https://github.com/iamkun/dayjs/commit/9790b853e6113243a7f4a81dd12c6509e406a102))
|
||||||
|
* Fix UTC plugin startOf, endOf bug ([#872](https://github.com/iamkun/dayjs/issues/872)) ([4141084](https://github.com/iamkun/dayjs/commit/4141084ba96d35cadcda3f1e661bf1d0f6c8e4de)), closes [#809](https://github.com/iamkun/dayjs/issues/809) [#808](https://github.com/iamkun/dayjs/issues/808)
|
||||||
|
|
||||||
|
## [1.8.24](https://github.com/iamkun/dayjs/compare/v1.8.23...v1.8.24) (2020-04-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add config option to RelativeTime plugin ([#851](https://github.com/iamkun/dayjs/issues/851)) ([bd24034](https://github.com/iamkun/dayjs/commit/bd24034b95bfc656024b75ef3f3c986708845fed))
|
||||||
|
* add Duration plugin ([#858](https://github.com/iamkun/dayjs/issues/858)) ([d568273](https://github.com/iamkun/dayjs/commit/d568273223199ca0497f238e2cc3a8d3dcf32d0f))
|
||||||
|
* Add en-in, en-tt locales ([#855](https://github.com/iamkun/dayjs/issues/855)) ([c39fb96](https://github.com/iamkun/dayjs/commit/c39fb96e2a9102c14b004c14a6c073af9d266f2f))
|
||||||
|
* add isToday, isTomorrow, isYesterday plugins ([#857](https://github.com/iamkun/dayjs/issues/857)) ([fc08ab6](https://github.com/iamkun/dayjs/commit/fc08ab68f8a28269802deeab9d6b0473b92cdc51))
|
||||||
|
* Add option callback to Calendar plugin ([#839](https://github.com/iamkun/dayjs/issues/839)) ([b25be90](https://github.com/iamkun/dayjs/commit/b25be9094325295310c8fc5e617fb058be8a5f68))
|
||||||
|
* Fix monthsShort for locale fr ([#862](https://github.com/iamkun/dayjs/issues/862)) ([d2de9a0](https://github.com/iamkun/dayjs/commit/d2de9a0b44b830038ed0094f79bfd40726311f2a))
|
||||||
|
* Update Breton locale (br) meridiem config ([#856](https://github.com/iamkun/dayjs/issues/856)) ([a2a6672](https://github.com/iamkun/dayjs/commit/a2a66720abb788a8f1cffbfd0929b35579f29c72))
|
||||||
|
* Update Ukrainian (uk) locale relative time ([#842](https://github.com/iamkun/dayjs/issues/842)) ([578bc1a](https://github.com/iamkun/dayjs/commit/578bc1a23c6e737783bbac3da12c0ed5d1edcf82))
|
||||||
|
|
||||||
|
## [1.8.23](https://github.com/iamkun/dayjs/compare/v1.8.22...v1.8.23) (2020-03-16)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add Chinese (zh) locale ([f9b8945](https://github.com/iamkun/dayjs/commit/f9b89453166d8b53d33b1d7eefd9942022552e6e))
|
||||||
|
* Fix IsoWeek plugin typescript definition ([#828](https://github.com/iamkun/dayjs/issues/828)) ([30aab0c](https://github.com/iamkun/dayjs/commit/30aab0c7bce85dfac0ae208a891def30f88b5cb4))
|
||||||
|
* Update Arabic (ar) locale relative time ([#836](https://github.com/iamkun/dayjs/issues/836)) ([14044c6](https://github.com/iamkun/dayjs/commit/14044c6fda1229e3f0e5473d3f886bd79589b15f))
|
||||||
|
* Update Slovak (sk) locale, Czech (cs) locale ([#833](https://github.com/iamkun/dayjs/issues/833)) ([f0d451f](https://github.com/iamkun/dayjs/commit/f0d451f795e9ebf752cd854d51b25b11de2343a3))
|
||||||
|
* Update Thai (th) locale relativeTime ([#826](https://github.com/iamkun/dayjs/issues/826)) ([63b7c03](https://github.com/iamkun/dayjs/commit/63b7c03a6dbb0507d60776e8bad6cccde3828b88)), closes [#816](https://github.com/iamkun/dayjs/issues/816)
|
||||||
|
|
||||||
|
## [1.8.22](https://github.com/iamkun/dayjs/compare/v1.8.21...v1.8.22) (2020-03-08)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add IsoWeek plugin ([#811](https://github.com/iamkun/dayjs/issues/811)) ([28a2207](https://github.com/iamkun/dayjs/commit/28a2207ef9849afbac15dd29267b2e7a09cd3c16))
|
||||||
|
* Fix unsupported locale fallback to previous one ([#819](https://github.com/iamkun/dayjs/issues/819)) ([4868715](https://github.com/iamkun/dayjs/commit/48687152cf5bee6a4c1b8ceea4bda8b9bab9be10))
|
||||||
|
|
||||||
|
## [1.8.21](https://github.com/iamkun/dayjs/compare/v1.8.20...v1.8.21) (2020-02-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Set + Get accept 'D' as the short version of 'date' ([#795](https://github.com/iamkun/dayjs/issues/795)) ([523c038](https://github.com/iamkun/dayjs/commit/523c03880fa8bbad83214494ad02cd606cdb8b30))
|
||||||
|
* Update DayOfYear plugin type ([#799](https://github.com/iamkun/dayjs/issues/799)) ([5809652](https://github.com/iamkun/dayjs/commit/5809652e40245b7759827d9bf317abdcfa75a330))
|
||||||
|
* Update fi (Finnish) locale relativeTime ([#797](https://github.com/iamkun/dayjs/issues/797)) ([4a470fb](https://github.com/iamkun/dayjs/commit/4a470fbd6fef9e051727d0f26d53cc050b85935d))
|
||||||
|
|
||||||
|
## [1.8.20](https://github.com/iamkun/dayjs/compare/v1.8.19...v1.8.20) (2020-02-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add Bislama Locale (bi) ([#780](https://github.com/iamkun/dayjs/issues/780)) ([9ac6ab4](https://github.com/iamkun/dayjs/commit/9ac6ab481bc883dd4ecc02caab12c8b2fc218a42))
|
||||||
|
* Fix weekOfYear plugin to support yearStart locale for better week number result ([#769](https://github.com/iamkun/dayjs/issues/769)) ([f00db36](https://github.com/iamkun/dayjs/commit/f00db36e70bc7beaca1abadeb30a9b1fbb3261ee))
|
||||||
|
* Update et (Estonian) locale relativeTime ([#790](https://github.com/iamkun/dayjs/issues/790)) ([d8e0f45](https://github.com/iamkun/dayjs/commit/d8e0f45f6cd2d5e5704b9797929227454c92d1a5))
|
||||||
|
* Update LocaleData plugin to support dayjs.localeData().weekdays() API ([287fed6](https://github.com/iamkun/dayjs/commit/287fed6db9eb4fd979b4861aca4dacbd32422533)), closes [#779](https://github.com/iamkun/dayjs/issues/779)
|
||||||
|
* Update LocaleData plugin to support dayjs.months dayjs.weekdays API ([144c2ae](https://github.com/iamkun/dayjs/commit/144c2ae6e15fbf89e3acd7c8cb9e237c5f6e1348)), closes [#779](https://github.com/iamkun/dayjs/issues/779)
|
||||||
|
* Update pl locale fusional config ([d372475](https://github.com/iamkun/dayjs/commit/d3724758bb27d5b17587b995ba14e7e80dcd1151))
|
||||||
|
|
||||||
|
## [1.8.19](https://github.com/iamkun/dayjs/compare/v1.8.18...v1.8.19) (2020-01-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add UpdateLocale plugin to update a locale's properties ([#766](https://github.com/iamkun/dayjs/issues/766)) ([82ce2ba](https://github.com/iamkun/dayjs/commit/82ce2ba8d7e402e40f6d005d400eb5356a0b0633))
|
||||||
|
* Fix CustomParseFormat Plugin 'YYYY-MM' use first day of the month ([ba709ec](https://github.com/iamkun/dayjs/commit/ba709eca86a71ae648bc68bf67d9abdc229198d4)), closes [#761](https://github.com/iamkun/dayjs/issues/761)
|
||||||
|
* Fix CustomParseFormat Plugin to set correct locale ([66ce23f](https://github.com/iamkun/dayjs/commit/66ce23f2e18c5506e8f1a7ef20d3483a4df80087))
|
||||||
|
* Fix WeekOfYear Plugin wrong calender week number bug ([79b86db](https://github.com/iamkun/dayjs/commit/79b86dbbf3cfd3f1e2165b3d479a7061ad1b6925)), closes [#760](https://github.com/iamkun/dayjs/issues/760)
|
||||||
|
* Update RelativeTime plugin to support function to make additional processing ([#767](https://github.com/iamkun/dayjs/issues/767)) ([4bd9250](https://github.com/iamkun/dayjs/commit/4bd9250fbe7131e2fddfb5fa1b3350e8c2262ca9))
|
||||||
|
* Update ru, uk, cs locale to support relativeTime with plural ([3f080f7](https://github.com/iamkun/dayjs/commit/3f080f7d6bfdc4018cbb7c4d0112ff1ead4ef6b8))
|
||||||
|
|
||||||
|
## [1.8.18](https://github.com/iamkun/dayjs/compare/v1.8.17...v1.8.18) (2019-12-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add missing locale type definition ([#716](https://github.com/iamkun/dayjs/issues/716)) ([cde5d0b](https://github.com/iamkun/dayjs/commit/cde5d0b91be7b2f5f3098de4aa0b9a4f0f28ea5c))
|
||||||
|
* Fix .locale() handel unsupported locale ([78ec173](https://github.com/iamkun/dayjs/commit/78ec173fcecc1299516ab7b44f4554d431b4b2fd))
|
||||||
|
* Update Italian locale (it) ([#727](https://github.com/iamkun/dayjs/issues/727)) ([5b53e98](https://github.com/iamkun/dayjs/commit/5b53e98c0a3ba0eb9573a9c77caeb907439be9e7))
|
||||||
|
* Update locale (fa) ([#733](https://github.com/iamkun/dayjs/issues/733)) ([9ad2e47](https://github.com/iamkun/dayjs/commit/9ad2e47e0569b23991bb0d5578f49c792c12df08))
|
||||||
|
* Update locale (zh-cn) ([#706](https://github.com/iamkun/dayjs/issues/706)) ([e31e544](https://github.com/iamkun/dayjs/commit/e31e54414fb90e1f54da13a117748ba37f52645d))
|
||||||
|
* Update locale (zh-cn) meridiem ([#735](https://github.com/iamkun/dayjs/issues/735)) ([15d1b81](https://github.com/iamkun/dayjs/commit/15d1b813e7faf5a1f9d1ea6fc673fd27ac49d8b1))
|
||||||
|
* Update LocaleData plugin to support dayjs().longDateFormat() ([#734](https://github.com/iamkun/dayjs/issues/734)) ([aa0f210](https://github.com/iamkun/dayjs/commit/aa0f210a1e3c4f6aba61c3b96f9eb445b43a33f0)), closes [#680](https://github.com/iamkun/dayjs/issues/680)
|
||||||
|
* Update Mongolian (mn) locale relativeTime ([#753](https://github.com/iamkun/dayjs/issues/753)) ([6d51435](https://github.com/iamkun/dayjs/commit/6d51435092c0c94d8e50256d3f0f058cdd15febe))
|
||||||
|
* Update Swedish locale (sv) fix ordinal error ([#745](https://github.com/iamkun/dayjs/issues/745)) ([49670d5](https://github.com/iamkun/dayjs/commit/49670d5ae31e4e21636cc5a8bfe35fef0f6d9e4a)), closes [#743](https://github.com/iamkun/dayjs/issues/743)
|
||||||
|
|
||||||
|
## [1.8.17](https://github.com/iamkun/dayjs/compare/v1.8.16...v1.8.17) (2019-11-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix set utcOffset in utc mode ([d148115](https://github.com/iamkun/dayjs/commit/d148115dad8f1a5afc0a64e9b8163dfeba4616b6))
|
||||||
|
* Update advancedFormat plugin to support w ww wo week tokens … ([#678](https://github.com/iamkun/dayjs/issues/678)) ([26cfa63](https://github.com/iamkun/dayjs/commit/26cfa63a524b803f7966dac5464f9cbf8f63387e)), closes [#676](https://github.com/iamkun/dayjs/issues/676)
|
||||||
|
* Update ka locale weekdays ([f8ca3d4](https://github.com/iamkun/dayjs/commit/f8ca3d4ba1d3cbe41613d3909c0627935a51a0c4))
|
||||||
|
* Update nb locale ([#679](https://github.com/iamkun/dayjs/issues/679)) ([1063b0e](https://github.com/iamkun/dayjs/commit/1063b0e1b5c19a1354d233cc0f21438e7073233a))
|
||||||
|
* Update Polish locale (pl)([#713](https://github.com/iamkun/dayjs/issues/713)) ([30d2f02](https://github.com/iamkun/dayjs/commit/30d2f026b47188833a4f44fee4bab52467d4a718))
|
||||||
|
* Update Ukrainian locale (uk) ([#710](https://github.com/iamkun/dayjs/issues/710)) ([360161c](https://github.com/iamkun/dayjs/commit/360161cac75f597fdd51d9d1ff138601282a1b4b))
|
||||||
|
* UTC plugin set utcOffset value ([#668](https://github.com/iamkun/dayjs/issues/668)) ([8877883](https://github.com/iamkun/dayjs/commit/88778838e71dd309e79cd1a8094d5bea36ca3390))
|
||||||
|
|
||||||
|
## [1.8.16](https://github.com/iamkun/dayjs/compare/v1.8.15...v1.8.16) (2019-08-27)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix relativeTime Plugin .FromNow() result error in UTC mode ([a385d5c](https://github.com/iamkun/dayjs/commit/a385d5c))
|
||||||
|
* Handle locale in WeekOfYear plugin ([#658](https://github.com/iamkun/dayjs/issues/658)) ([0e45b0a](https://github.com/iamkun/dayjs/commit/0e45b0a))
|
||||||
|
* LocaleData plugin returns all months and weekdays data when pas no argument ([#645](https://github.com/iamkun/dayjs/issues/645)) ([95e70b4](https://github.com/iamkun/dayjs/commit/95e70b4))
|
||||||
|
* Return null in toJSON if not valid ([#633](https://github.com/iamkun/dayjs/issues/633)) ([19affc8](https://github.com/iamkun/dayjs/commit/19affc8))
|
||||||
|
* Update Danish (da) locale ([#626](https://github.com/iamkun/dayjs/issues/626)) ([ac2ec77](https://github.com/iamkun/dayjs/commit/ac2ec77))
|
||||||
|
* Update Korean locale meridiem ([#642](https://github.com/iamkun/dayjs/issues/642)) ([b457146](https://github.com/iamkun/dayjs/commit/b457146))
|
||||||
|
* update Occitan locale Catalan locale ([#630](https://github.com/iamkun/dayjs/issues/630)) ([fef135e](https://github.com/iamkun/dayjs/commit/fef135e))
|
||||||
|
* update pt-br locale ([#628](https://github.com/iamkun/dayjs/issues/628)) ([ccf596d](https://github.com/iamkun/dayjs/commit/ccf596d))
|
||||||
|
* Update weekdaysShort to some locale files ([#643](https://github.com/iamkun/dayjs/issues/643)) ([cc1f15f](https://github.com/iamkun/dayjs/commit/cc1f15f))
|
||||||
|
|
||||||
|
## [1.8.15](https://github.com/iamkun/dayjs/compare/v1.8.14...v1.8.15) (2019-07-08)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix dayjs.locale() returns current global locale ([#602](https://github.com/iamkun/dayjs/issues/602)) ([790cd1a](https://github.com/iamkun/dayjs/commit/790cd1a))
|
||||||
|
* Fix incorrect Thai locale translation of July ([#607](https://github.com/iamkun/dayjs/issues/607)) ([43cbfd3](https://github.com/iamkun/dayjs/commit/43cbfd3))
|
||||||
|
* Lowercase french locale months and weekdays ([#615](https://github.com/iamkun/dayjs/issues/615)) ([e5a257c](https://github.com/iamkun/dayjs/commit/e5a257c))
|
||||||
|
* Type - Export Ls object to query all available locales ([#623](https://github.com/iamkun/dayjs/issues/623)) ([f6bfae0](https://github.com/iamkun/dayjs/commit/f6bfae0))
|
||||||
|
* Update nb (Norsk Bokmål) locale ([#604](https://github.com/iamkun/dayjs/issues/604)) ([907f5c9](https://github.com/iamkun/dayjs/commit/907f5c9))
|
||||||
|
* Update types of `.diff` API ([#617](https://github.com/iamkun/dayjs/issues/617)) ([f0f43d2](https://github.com/iamkun/dayjs/commit/f0f43d2))
|
||||||
|
|
||||||
|
## [1.8.14](https://github.com/iamkun/dayjs/compare/v1.8.13...v1.8.14) (2019-05-07)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fix `.format` API returns UTC offset when value is 0 bug ([b254964](https://github.com/iamkun/dayjs/commit/b254964))
|
||||||
|
* Fix QuarterOfYear plugin bug ([#591](https://github.com/iamkun/dayjs/issues/591)) ([434f774](https://github.com/iamkun/dayjs/commit/434f774))
|
||||||
|
* Fix UTC plugin add day DST bug ([#590](https://github.com/iamkun/dayjs/issues/590)) ([86cd839](https://github.com/iamkun/dayjs/commit/86cd839))
|
||||||
|
|
||||||
|
## [1.8.13](https://github.com/iamkun/dayjs/compare/v1.8.12...v1.8.13) (2019-04-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add missing relativeTime and formats for some locales ([#560](https://github.com/iamkun/dayjs/issues/560)) ([96b917e](https://github.com/iamkun/dayjs/commit/96b917e))
|
||||||
|
* Add weekday (locale aware day of the week) plugin ([#569](https://github.com/iamkun/dayjs/issues/569)) ([9007cc5](https://github.com/iamkun/dayjs/commit/9007cc5)), closes [#559](https://github.com/iamkun/dayjs/issues/559)
|
||||||
|
* Allow customizing "am" / "pm" strings with locale meridiem function ([#580](https://github.com/iamkun/dayjs/issues/580)) ([576e93e](https://github.com/iamkun/dayjs/commit/576e93e)), closes [#578](https://github.com/iamkun/dayjs/issues/578)
|
||||||
|
* Fix `.add` day/week decimal rouding bug ([800f6c9](https://github.com/iamkun/dayjs/commit/800f6c9))
|
||||||
|
* Fix `.diff` type definition error ([#565](https://github.com/iamkun/dayjs/issues/565)) ([c4921ae](https://github.com/iamkun/dayjs/commit/c4921ae)), closes [#561](https://github.com/iamkun/dayjs/issues/561)
|
||||||
|
* Fix CustomParseFormat plugin bug ([#568](https://github.com/iamkun/dayjs/issues/568)) ([1f5a9db](https://github.com/iamkun/dayjs/commit/1f5a9db)), closes [#555](https://github.com/iamkun/dayjs/issues/555)
|
||||||
|
* Fix relativeTime plugin Math.round bug ([40bea40](https://github.com/iamkun/dayjs/commit/40bea40))
|
||||||
|
* skip square brackets in buddhistEra, advancedFormat plugins ([#556](https://github.com/iamkun/dayjs/issues/556)) ([9279718](https://github.com/iamkun/dayjs/commit/9279718)), closes [#554](https://github.com/iamkun/dayjs/issues/554)
|
||||||
|
* Update Indonesian locale([#574](https://github.com/iamkun/dayjs/issues/574)) ([0aa7143](https://github.com/iamkun/dayjs/commit/0aa7143))
|
||||||
|
* Update locale month to support both array and function ([#581](https://github.com/iamkun/dayjs/issues/581)) ([b6599d3](https://github.com/iamkun/dayjs/commit/b6599d3))
|
||||||
|
* Update LocalizedFormat plugin lowercase formats logic ([#557](https://github.com/iamkun/dayjs/issues/557)) ([d409304](https://github.com/iamkun/dayjs/commit/d409304))
|
||||||
|
|
||||||
|
## [1.8.12](https://github.com/iamkun/dayjs/compare/v1.8.11...v1.8.12) (2019-04-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add .get API ([7318797](https://github.com/iamkun/dayjs/commit/7318797))
|
||||||
|
* Add 79 locales ([#541](https://github.com/iamkun/dayjs/issues/541)) ([f75a125](https://github.com/iamkun/dayjs/commit/f75a125))
|
||||||
|
* Add Calendar plugin ([d1b9cf9](https://github.com/iamkun/dayjs/commit/d1b9cf9))
|
||||||
|
* Add isoWeeksInYear plugin ([2db8631](https://github.com/iamkun/dayjs/commit/2db8631))
|
||||||
|
* Add Occitan (oc-lnc) locale file ([#551](https://github.com/iamkun/dayjs/issues/551)) ([c30b715](https://github.com/iamkun/dayjs/commit/c30b715))
|
||||||
|
* Add plugin minMax to sopport .max .min ([2870a23](https://github.com/iamkun/dayjs/commit/2870a23))
|
||||||
|
* Fix set Month Year error in last day of the month ([d058f4a](https://github.com/iamkun/dayjs/commit/d058f4a))
|
||||||
|
* Update ko locale weekdaysShort ([#543](https://github.com/iamkun/dayjs/issues/543)) ([317fd3e](https://github.com/iamkun/dayjs/commit/317fd3e))
|
||||||
|
* Update localizedFormat plugin to support lowercase localizable formats (l, ll, lll, llll) ([#546](https://github.com/iamkun/dayjs/issues/546)) ([f2b5ebf](https://github.com/iamkun/dayjs/commit/f2b5ebf))
|
||||||
|
|
||||||
|
## [1.8.11](https://github.com/iamkun/dayjs/compare/v1.8.10...v1.8.11) (2019-03-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add .add('quarter') .startOf('quarter') through plugin quarterOfYear ([dde39e9](https://github.com/iamkun/dayjs/commit/dde39e9)), closes [#537](https://github.com/iamkun/dayjs/issues/537) [#531](https://github.com/iamkun/dayjs/issues/531)
|
||||||
|
* Add locale support for Azerbaijani language (az) ([#535](https://github.com/iamkun/dayjs/issues/535)) ([eeb20fa](https://github.com/iamkun/dayjs/commit/eeb20fa))
|
||||||
|
* Correct typescript definition `add` ([22a249c](https://github.com/iamkun/dayjs/commit/22a249c)), closes [#531](https://github.com/iamkun/dayjs/issues/531)
|
||||||
|
* Fix CustomParseFormat plugin formatting bug ([#536](https://github.com/iamkun/dayjs/issues/536)) ([8578546](https://github.com/iamkun/dayjs/commit/8578546)), closes [#533](https://github.com/iamkun/dayjs/issues/533)
|
||||||
|
* Update pt locale ([#538](https://github.com/iamkun/dayjs/issues/538)) ([1ac9e1e](https://github.com/iamkun/dayjs/commit/1ac9e1e))
|
||||||
|
|
||||||
|
## [1.8.10](https://github.com/iamkun/dayjs/compare/v1.8.9...v1.8.10) (2019-03-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **locale:** Add nepali (ne) locale ([#524](https://github.com/iamkun/dayjs/issues/524)) ([bdbec01](https://github.com/iamkun/dayjs/commit/bdbec01))
|
||||||
|
* Add WeekYear plugin ([a892608](https://github.com/iamkun/dayjs/commit/a892608))
|
||||||
|
* API .locale() with no argument should return current locale name string ([8d63d88](https://github.com/iamkun/dayjs/commit/8d63d88))
|
||||||
|
* CustomParseFormat correct parse HH:mm:ss with only one digit like 0:12:10 ([600d547](https://github.com/iamkun/dayjs/commit/600d547))
|
||||||
|
* CustomParseFormat plugin parse Do format string ([bf27fda](https://github.com/iamkun/dayjs/commit/bf27fda)), closes [#522](https://github.com/iamkun/dayjs/issues/522)
|
||||||
|
* Expand setters like .year(2000) .hour(12) ([ac532a0](https://github.com/iamkun/dayjs/commit/ac532a0))
|
||||||
|
* Move toObject, toArray API to separate plugin from core ([40a3431](https://github.com/iamkun/dayjs/commit/40a3431))
|
||||||
|
|
||||||
|
## [1.8.9](https://github.com/iamkun/dayjs/compare/v1.8.8...v1.8.9) (2019-03-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Add UTC mode with UTC plugin ([#517](https://github.com/iamkun/dayjs/issues/517)) ([caf335c](https://github.com/iamkun/dayjs/commit/caf335c))
|
||||||
|
|
||||||
|
> For plugin developers: Please note, we have changed the name of some method in `Utils` in order to reduce the file size. ([#517](https://github.com/iamkun/dayjs/issues/517)) ([detail](https://github.com/iamkun/dayjs/pull/517/files#diff-2b4ca49d4bb0a774c4d4c1672d7aa781R46))
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add locale de-AT ([#515](https://github.com/iamkun/dayjs/issues/515)) ([d93f7b6](https://github.com/iamkun/dayjs/commit/d93f7b6))
|
||||||
|
* Add locale zh-hk ([#516](https://github.com/iamkun/dayjs/issues/516)) ([5fc05a6](https://github.com/iamkun/dayjs/commit/5fc05a6))
|
||||||
|
|
||||||
|
## [1.8.8](https://github.com/iamkun/dayjs/compare/v1.8.7...v1.8.8) (2019-02-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Update relativeTime plugin type definition ([de56f2c](https://github.com/iamkun/dayjs/commit/de56f2c))
|
||||||
|
|
||||||
|
## [1.8.7](https://github.com/iamkun/dayjs/compare/v1.8.6...v1.8.7) (2019-02-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add plugin type definitions ([#418](https://github.com/iamkun/dayjs/issues/418)) ([361d437](https://github.com/iamkun/dayjs/commit/361d437))
|
||||||
|
* Add Swahili locale ([#508](https://github.com/iamkun/dayjs/issues/508)) ([b9cee84](https://github.com/iamkun/dayjs/commit/b9cee84))
|
||||||
|
* Parse month string 'MMMM MMM (February, Feb)' in customParseFormat ([#457](https://github.com/iamkun/dayjs/issues/457)) ([f343206](https://github.com/iamkun/dayjs/commit/f343206))
|
||||||
|
* Update declaration file .diff .isBefore .isSame .isAfter ([#496](https://github.com/iamkun/dayjs/issues/496)) ([4523275](https://github.com/iamkun/dayjs/commit/4523275))
|
||||||
|
* Word orders corrections for locale 'fa' ([#491](https://github.com/iamkun/dayjs/issues/491)) ([56050c2](https://github.com/iamkun/dayjs/commit/56050c2))
|
||||||
|
|
||||||
|
## [1.8.6](https://github.com/iamkun/dayjs/compare/v1.8.5...v1.8.6) (2019-02-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add Bahasa Melayu (Malaysia) locale ([#485](https://github.com/iamkun/dayjs/issues/485)) ([cb208b0](https://github.com/iamkun/dayjs/commit/cb208b0))
|
||||||
|
* Copy & export built-in en locale to /locale folder as a separate file ([a7e05e0](https://github.com/iamkun/dayjs/commit/a7e05e0))
|
||||||
|
* Fix bug in customParseFormat plugin while month(MM) is '01' ([9884ca5](https://github.com/iamkun/dayjs/commit/9884ca5)), closes [#494](https://github.com/iamkun/dayjs/issues/494)
|
||||||
|
* Fix startOf week bug while week start is not Sunday ([5eaf77b](https://github.com/iamkun/dayjs/commit/5eaf77b))
|
||||||
|
* Implemented isBetween inclusivity ([#464](https://github.com/iamkun/dayjs/issues/464)) ([af2f4f1](https://github.com/iamkun/dayjs/commit/af2f4f1))
|
||||||
|
* Update Swedish and Finnish locales ([#488](https://github.com/iamkun/dayjs/issues/488)) ([f142082](https://github.com/iamkun/dayjs/commit/f142082))
|
||||||
|
* Fix commonJS require ES Module bug in webpack4 ([23f9f3d](https://github.com/iamkun/dayjs/commit/23f9f3d)), check [#492](https://github.com/iamkun/dayjs/issues/492)
|
||||||
|
|
||||||
|
> Get access to ESM code with `import dayjs from 'dayjs/esm'`
|
||||||
|
|
||||||
|
## [1.8.5](https://github.com/iamkun/dayjs/compare/v1.8.4...v1.8.5) (2019-02-07)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add en-gb locale ([#478](https://github.com/iamkun/dayjs/issues/478)) ([508c3a7](https://github.com/iamkun/dayjs/commit/508c3a7))
|
||||||
|
* **module:** transpile everything except ES6 modules in the 'module' entrypoint ([#477](https://github.com/iamkun/dayjs/issues/477)) ([#480](https://github.com/iamkun/dayjs/issues/480)) ([#482](https://github.com/iamkun/dayjs/issues/482)) ([767017d](https://github.com/iamkun/dayjs/commit/767017d))
|
||||||
|
* update customParseFormat plugin support hh:mm ([54947cc](https://github.com/iamkun/dayjs/commit/54947cc)), closes [#484](https://github.com/iamkun/dayjs/issues/484)
|
||||||
|
* Update module in package.json ([5c5a7a0](https://github.com/iamkun/dayjs/commit/5c5a7a0))
|
||||||
|
|
||||||
|
## [1.8.4](https://github.com/iamkun/dayjs/compare/v1.8.3...v1.8.4) (2019-02-05)
|
||||||
|
|
||||||
|
* Allow set start day of week in locale && Allow set week in weekOfYear plugin ([1295591](https://github.com/iamkun/dayjs/commit/1295591))
|
||||||
|
### Bug Fixes
|
||||||
|
* update all locale files with correct week start ([5b03412](https://github.com/iamkun/dayjs/commit/5b03412))
|
||||||
|
* update es es-do locale adding weekStart && update weekStart test ([66e42ec](https://github.com/iamkun/dayjs/commit/66e42ec))
|
||||||
|
* Revert default export ([b00da1b](https://github.com/iamkun/dayjs/commit/b00da1b))
|
||||||
|
|
||||||
|
## [1.8.3](https://github.com/iamkun/dayjs/compare/v1.8.2...v1.8.3) (2019-02-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix ios safari YYYY-MM-DD HH:mm parse BUG ([e02ae82](https://github.com/iamkun/dayjs/commit/e02ae82)), closes [#254](https://github.com/iamkun/dayjs/issues/254)
|
||||||
|
|
||||||
|
## [1.8.2](https://github.com/iamkun/dayjs/compare/v1.8.1...v1.8.2) (2019-02-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add missing czech language locale ([#461](https://github.com/iamkun/dayjs/issues/461)) ([7e04004](https://github.com/iamkun/dayjs/commit/7e04004))
|
||||||
|
* Add utcOffset api method and fix calculating diff error in DST ([#453](https://github.com/iamkun/dayjs/issues/453)) ([ce2e30e](https://github.com/iamkun/dayjs/commit/ce2e30e))
|
||||||
|
* Fix it locale error ([#458](https://github.com/iamkun/dayjs/issues/458)) ([f6d9a64](https://github.com/iamkun/dayjs/commit/f6d9a64))
|
||||||
|
* Add DayOfYear plugin (#454)
|
||||||
|
* Fix es locale monthsShort error
|
||||||
|
|
||||||
|
## [1.8.1](https://github.com/iamkun/dayjs/compare/v1.8.0...v1.8.1) (2019-02-02)
|
||||||
|
|
||||||
|
* Add LocalizedFormat plugin supplying format like LTS, LT, LLLL
|
||||||
|
|
||||||
|
* <del>update declaration File with default export (#278)</del>
|
||||||
|
> <del>From v1.8.1, in TypeScript Project, just `import from dayjs from 'dayjs'`</del>
|
||||||
|
* add ES2015 module support (#451)
|
||||||
|
|
||||||
|
### Performance Improvements
|
||||||
|
|
||||||
|
* **format:** reuse matches instead of created when replacing ([#441](https://github.com/iamkun/dayjs/issues/441)) ([10b79d8](https://github.com/iamkun/dayjs/commit/10b79d8))
|
||||||
|
|
||||||
|
# [1.8.0](https://github.com/iamkun/dayjs/compare/v1.7.8...v1.8.0) (2019-01-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add CustomParseFormat plugin and QuarterOfYear plugin ([#450](https://github.com/iamkun/dayjs/issues/450)) ([8f6f63c](https://github.com/iamkun/dayjs/commit/8f6f63c))
|
||||||
|
|
||||||
|
## [1.7.8](https://github.com/iamkun/dayjs/compare/v1.7.7...v1.7.8) (2018-12-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
|
||||||
|
* update isSame isBefore isAfter supports units ([fd65464](https://github.com/iamkun/dayjs/commit/fd65464))
|
||||||
|
|
||||||
|
* add greek lithuanian locales
|
||||||
|
|
||||||
|
## [1.7.7](https://github.com/iamkun/dayjs/compare/v1.7.6...v1.7.7) (2018-09-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **DST:** fix daylight saving time DST bug && add test ([#354](https://github.com/iamkun/dayjs/issues/354)) ([6fca6d5](https://github.com/iamkun/dayjs/commit/6fca6d5))
|
||||||
|
|
||||||
|
## [1.7.6](https://github.com/iamkun/dayjs/compare/v1.7.5...v1.7.6) (2018-09-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **add dayjs.unix:** add dayjs.unix to parse timestamp in seconds && locale update ([5711c5e](https://github.com/iamkun/dayjs/commit/5711c5e))
|
||||||
|
|
||||||
|
## [1.7.5](https://github.com/iamkun/dayjs/compare/v1.7.4...v1.7.5) (2018-08-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add isBetween API & update ([b5fc3d1](https://github.com/iamkun/dayjs/commit/b5fc3d1))
|
||||||
|
|
||||||
|
## [1.7.4](https://github.com/iamkun/dayjs/compare/v1.7.3...v1.7.4) (2018-07-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* update set week logic ([60b6325](https://github.com/iamkun/dayjs/commit/60b6325)), closes [#276](https://github.com/iamkun/dayjs/issues/276)
|
||||||
|
|
||||||
|
## [1.7.3](https://github.com/iamkun/dayjs/compare/v1.7.2...v1.7.3) (2018-07-10)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **locale-nl:** set correct weekdays and months ([6d089d7](https://github.com/iamkun/dayjs/commit/6d089d7))
|
||||||
|
|
||||||
|
## [1.7.2](https://github.com/iamkun/dayjs/compare/v1.7.1...v1.7.2) (2018-07-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* DEPRECATED isLeapYear, use IsLeapYear plugin instead ([e2e5116](https://github.com/iamkun/dayjs/commit/e2e5116))
|
||||||
|
|
||||||
|
## [1.7.1](https://github.com/iamkun/dayjs/compare/v1.7.0...v1.7.1) (2018-07-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix week() error near the end of the year ([fa03689](https://github.com/iamkun/dayjs/commit/fa03689))
|
||||||
|
|
||||||
|
# [1.7.0](https://github.com/iamkun/dayjs/compare/v1.6.10...v1.7.0) (2018-07-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Added method `.week()` to retrieve week of the year ([e1c1b1c](https://github.com/iamkun/dayjs/commit/e1c1b1c))
|
||||||
|
* Updated Japanese locae
|
||||||
|
|
||||||
|
## [1.6.10](https://github.com/iamkun/dayjs/compare/v1.6.9...v1.6.10) (2018-06-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add relative locales to russian language ([c7e9898](https://github.com/iamkun/dayjs/commit/c7e9898)), closes [#256](https://github.com/iamkun/dayjs/issues/256)
|
||||||
|
|
||||||
|
## [1.6.9](https://github.com/iamkun/dayjs/compare/v1.6.8...v1.6.9) (2018-06-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add isDayjs => boolean API ([6227c8b](https://github.com/iamkun/dayjs/commit/6227c8b))
|
||||||
|
|
||||||
|
## [1.6.8](https://github.com/iamkun/dayjs/compare/v1.6.7...v1.6.8) (2018-06-14)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix Advanced format bug in zh-cn ([0c07874](https://github.com/iamkun/dayjs/commit/0c07874)), closes [#242](https://github.com/iamkun/dayjs/issues/242)
|
||||||
|
|
||||||
|
## [1.6.7](https://github.com/iamkun/dayjs/compare/v1.6.6...v1.6.7) (2018-06-11)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix id locale ([1ebbeb8](https://github.com/iamkun/dayjs/commit/1ebbeb8)), closes [#234](https://github.com/iamkun/dayjs/issues/234)
|
||||||
|
|
||||||
|
<a name="1.6.6"></a>
|
||||||
|
## [1.6.6](https://github.com/iamkun/dayjs/compare/v1.6.5...v1.6.6) (2018-06-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* format API update and locale file update ([5ca48f0](https://github.com/iamkun/dayjs/commit/5ca48f0)), closes [#228](https://github.com/iamkun/dayjs/issues/228)
|
||||||
|
|
||||||
|
<a name="1.6.5"></a>
|
||||||
|
## [1.6.5](https://github.com/iamkun/dayjs/compare/v1.6.4...v1.6.5) (2018-05-31)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* bugfix, utils update and locale file update ([ebcb6d5](https://github.com/iamkun/dayjs/commit/ebcb6d5)), closes [#214](https://github.com/iamkun/dayjs/issues/214)
|
||||||
|
|
||||||
|
<a name="1.6.4"></a>
|
||||||
|
## [1.6.4](https://github.com/iamkun/dayjs/compare/v1.6.3...v1.6.4) (2018-05-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add RelativeTime plugin and locale file update ([c1fbbca](https://github.com/iamkun/dayjs/commit/c1fbbca)), closes [#198](https://github.com/iamkun/dayjs/issues/198)
|
||||||
|
|
||||||
|
<a name="1.6.3"></a>
|
||||||
|
## [1.6.3](https://github.com/iamkun/dayjs/compare/v1.6.2...v1.6.3) (2018-05-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Changing locales locally is immutable from this release ([2cce729](https://github.com/iamkun/dayjs/commit/2cce729)), closes [#182](https://github.com/iamkun/dayjs/issues/182)
|
||||||
|
* instance locale change should be immutable ([84597c9](https://github.com/iamkun/dayjs/commit/84597c9))
|
||||||
|
* Add more locales
|
||||||
|
* english ordinal fix
|
||||||
|
|
||||||
|
<a name="1.6.2"></a>
|
||||||
|
## [1.6.2](https://github.com/iamkun/dayjs/compare/v1.6.1...v1.6.2) (2018-05-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* change-log update && test new npm release ([aa49cba](https://github.com/iamkun/dayjs/commit/aa49cba)), closes [#163](https://github.com/iamkun/dayjs/issues/163)
|
||||||
|
|
||||||
|
<a name="1.6.1"></a>
|
||||||
|
## [1.6.1](https://github.com/iamkun/dayjs/compare/v1.6.0...v1.6.1) (2018-05-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Add German, Brazilian Portuguese locales
|
||||||
|
* add() & parse() bug fix & add locale de, pt-br ([bf1331e](https://github.com/iamkun/dayjs/commit/bf1331e))
|
||||||
|
|
||||||
|
<a name="1.6.0"></a>
|
||||||
|
# [1.6.0](https://github.com/iamkun/dayjs/compare/v1.5.24...v1.6.0) (2018-05-15)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Locale && Plugin ([2342c55](https://github.com/iamkun/dayjs/commit/2342c55)), closes [#141](https://github.com/iamkun/dayjs/issues/141)
|
21
node_modules/dayjs/LICENSE
generated
vendored
Normal file
21
node_modules/dayjs/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018-present, iamkun
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
164
node_modules/dayjs/README.md
generated
vendored
Normal file
164
node_modules/dayjs/README.md
generated
vendored
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
English | [简体中文](./docs/zh-cn/README.zh-CN.md) | [日本語](./docs/ja/README-ja.md) | [Português Brasileiro](./docs/pt-br/README-pt-br.md) | [한국어](./docs/ko/README-ko.md) | [Español (España)](./docs/es-es/README-es-es.md) | [Русский](./docs/ru/README-ru.md) | [Türkçe](./docs/tr/README-tr.md) | [සිංහල](./docs/si/README-si.md) | [עברית](./docs/he/README-he.md)
|
||||||
|
|
||||||
|
<p align="center"><a href="https://day.js.org/" target="_blank" rel="noopener noreferrer"><img width="550"
|
||||||
|
src="https://user-images.githubusercontent.com/17680888/39081119-3057bbe2-456e-11e8-862c-646133ad4b43.png"
|
||||||
|
alt="Day.js" /></a></p>
|
||||||
|
<p align="center">Fast <b>2kB</b> alternative to Moment.js with the same modern API</p>
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://bundlephobia.com/package/dayjs"><img
|
||||||
|
src="https://img.shields.io/bundlephobia/minzip/dayjs?style=flat-square&color=%2345cc11"
|
||||||
|
alt="Gzip Size"></a>
|
||||||
|
<a href="https://www.npmjs.com/package/dayjs"><img src="https://img.shields.io/npm/v/dayjs.svg?style=flat-square&colorB=51C838"
|
||||||
|
alt="NPM Version"></a>
|
||||||
|
<a href="https://github.com/iamkun/dayjs/actions/workflows/check.yml"><img
|
||||||
|
src="https://img.shields.io/github/actions/workflow/status/iamkun/dayjs/check.yml?style=flat-square" alt="Build Status"></a>
|
||||||
|
<a href="https://codecov.io/gh/iamkun/dayjs"><img
|
||||||
|
src="https://img.shields.io/codecov/c/github/iamkun/dayjs/master.svg?style=flat-square" alt="Codecov"></a>
|
||||||
|
<a href="https://github.com/iamkun/dayjs/blob/master/LICENSE"><img
|
||||||
|
src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="License"></a>
|
||||||
|
<br>
|
||||||
|
<a href="https://saucelabs.com/u/dayjs">
|
||||||
|
<img width="750" src="https://user-images.githubusercontent.com/17680888/40040137-8e3323a6-584b-11e8-9dba-bbe577ee8a7b.png" alt="Sauce Test Status">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
> Day.js is a minimalist JavaScript library that parses, validates, manipulates, and displays dates and times for modern browsers with a largely Moment.js-compatible API. If you use Moment.js, you already know how to use Day.js.
|
||||||
|
|
||||||
|
```js
|
||||||
|
dayjs().startOf('month').add(1, 'day').set('year', 2018).format('YYYY-MM-DD HH:mm:ss');
|
||||||
|
```
|
||||||
|
|
||||||
|
* 🕒 Familiar Moment.js API & patterns
|
||||||
|
* 💪 Immutable
|
||||||
|
* 🔥 Chainable
|
||||||
|
* 🌐 I18n support
|
||||||
|
* 📦 2kb mini library
|
||||||
|
* 👫 All browsers supported
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
You can find more details, API, and other docs on [day.js.org](https://day.js.org/) website.
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
```console
|
||||||
|
npm install dayjs --save
|
||||||
|
```
|
||||||
|
|
||||||
|
📚[Installation Guide](https://day.js.org/docs/en/installation/installation)
|
||||||
|
|
||||||
|
### API
|
||||||
|
|
||||||
|
It's easy to use Day.js APIs to parse, validate, manipulate, and display dates and times.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
dayjs('2018-08-08') // parse
|
||||||
|
|
||||||
|
dayjs().format('{YYYY} MM-DDTHH:mm:ss SSS [Z] A') // display
|
||||||
|
|
||||||
|
dayjs().set('month', 3).month() // get & set
|
||||||
|
|
||||||
|
dayjs().add(1, 'year') // manipulate
|
||||||
|
|
||||||
|
dayjs().isBefore(dayjs()) // query
|
||||||
|
```
|
||||||
|
|
||||||
|
📚[API Reference](https://day.js.org/docs/en/parse/parse)
|
||||||
|
|
||||||
|
### I18n
|
||||||
|
|
||||||
|
Day.js has great support for internationalization.
|
||||||
|
|
||||||
|
But none of them will be included in your build unless you use it.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import 'dayjs/locale/es' // load on demand
|
||||||
|
|
||||||
|
dayjs.locale('es') // use Spanish locale globally
|
||||||
|
|
||||||
|
dayjs('2018-05-05').locale('zh-cn').format() // use Chinese Simplified locale in a specific instance
|
||||||
|
```
|
||||||
|
|
||||||
|
📚[Internationalization](https://day.js.org/docs/en/i18n/i18n)
|
||||||
|
|
||||||
|
### Plugin
|
||||||
|
|
||||||
|
A plugin is an independent module that can be added to Day.js to extend functionality or add new features.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import advancedFormat from 'dayjs/plugin/advancedFormat' // load on demand
|
||||||
|
|
||||||
|
dayjs.extend(advancedFormat) // use plugin
|
||||||
|
|
||||||
|
dayjs().format('Q Do k kk X x') // more available formats
|
||||||
|
```
|
||||||
|
|
||||||
|
📚[Plugin List](https://day.js.org/docs/en/plugin/plugin)
|
||||||
|
|
||||||
|
### Usage Trend
|
||||||
|
|
||||||
|
<a href="https://npm-compare.com/moment,dayjs/#timeRange=THREE_YEARS" target="_blank">
|
||||||
|
<img src="https://user-images.githubusercontent.com/3455798/270162667-c7bd2ebe-675e-45c6-a2c9-dc67f3b65d6e.png">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
## Sponsors
|
||||||
|
|
||||||
|
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
|
||||||
|
|
||||||
|
[[Become a sponsor via Github](https://github.com/sponsors/iamkun/)] [[Become a sponsor via OpenCollective](https://opencollective.com/dayjs#sponsor)]
|
||||||
|
|
||||||
|
<a href="https://toyokumo.co.jp" target="_blank">
|
||||||
|
<img width="70" src="https://user-images.githubusercontent.com/17680888/197092231-2367b5eb-1e43-467e-a311-23f7cd97b086.png">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="https://github.com/ken-swyfft" target="_blank">
|
||||||
|
<img width="70" src="https://avatars.githubusercontent.com/u/65305317?v=4">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="https://opencollective.com/sight-and-sound-ministries" target="_blank">
|
||||||
|
<img width="70" src="https://user-images.githubusercontent.com/17680888/232316426-cb99b4cf-0ccb-4e73-a6ce-e16dba6aadf4.png">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="https://chudovo.com/" target="_blank">
|
||||||
|
<img width="70" src="https://images.opencollective.com/chudovo/3c866f5/logo/256.png?height=256">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="https://github.com/alan-eu" target="_blank">
|
||||||
|
<img width="70" src="https://avatars.githubusercontent.com/u/18175329?s=52&v=4">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="https://www.exoflare.com/open-source/?utm_source=dayjs&utm_campaign=open_source" target="_blank">
|
||||||
|
<img width="70" src="https://user-images.githubusercontent.com/17680888/162761622-1407a849-0c41-4591-8aa9-f98114ec2092.png">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="https://github.com/storyblok" target="_blank">
|
||||||
|
<img width="70" src="https://avatars.githubusercontent.com/u/13880908?s=200&v=4">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="https://bestkru.com/" target="_blank">
|
||||||
|
<img width="70" src="https://avatars.githubusercontent.com/u/159320286" alt="BestKru">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
## Contributors
|
||||||
|
|
||||||
|
This project exists thanks to all the people who contribute.
|
||||||
|
|
||||||
|
Please give us a 💖 star 💖 to support us. Thank you.
|
||||||
|
|
||||||
|
And thank you to all our backers! 🙏
|
||||||
|
|
||||||
|
<a href="https://opencollective.com/dayjs/backer/0/website?requireActive=false" target="_blank"><img width="35" src="https://opencollective.com/dayjs/backer/0/avatar.svg?requireActive=false"></a>
|
||||||
|
<a href="https://opencollective.com/dayjs/backer/1/website?requireActive=false" target="_blank"><img width="35" src="https://opencollective.com/dayjs/backer/1/avatar.svg?requireActive=false"></a>
|
||||||
|
<a href="https://opencollective.com/dayjs/backer/2/website?requireActive=false" target="_blank"><img width="35" src="https://opencollective.com/dayjs/backer/2/avatar.svg?requireActive=false"></a>
|
||||||
|
<a href="https://opencollective.com/dayjs/backer/3/website?requireActive=false" target="_blank"><img width="35" src="https://opencollective.com/dayjs/backer/3/avatar.svg?requireActive=false"></a>
|
||||||
|
<br />
|
||||||
|
<a href="https://opencollective.com/dayjs#backers" target="_blank"><img src="https://opencollective.com/dayjs/contributors.svg?width=890" /></a>
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Day.js is licensed under a [MIT License](./LICENSE).
|
1
node_modules/dayjs/dayjs.min.js
generated
vendored
Normal file
1
node_modules/dayjs/dayjs.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
25
node_modules/dayjs/esm/constant.js
generated
vendored
Normal file
25
node_modules/dayjs/esm/constant.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
export var SECONDS_A_MINUTE = 60;
|
||||||
|
export var SECONDS_A_HOUR = SECONDS_A_MINUTE * 60;
|
||||||
|
export var SECONDS_A_DAY = SECONDS_A_HOUR * 24;
|
||||||
|
export var SECONDS_A_WEEK = SECONDS_A_DAY * 7;
|
||||||
|
export var MILLISECONDS_A_SECOND = 1e3;
|
||||||
|
export var MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND;
|
||||||
|
export var MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND;
|
||||||
|
export var MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
|
||||||
|
export var MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND; // English locales
|
||||||
|
|
||||||
|
export var MS = 'millisecond';
|
||||||
|
export var S = 'second';
|
||||||
|
export var MIN = 'minute';
|
||||||
|
export var H = 'hour';
|
||||||
|
export var D = 'day';
|
||||||
|
export var W = 'week';
|
||||||
|
export var M = 'month';
|
||||||
|
export var Q = 'quarter';
|
||||||
|
export var Y = 'year';
|
||||||
|
export var DATE = 'date';
|
||||||
|
export var FORMAT_DEFAULT = 'YYYY-MM-DDTHH:mm:ssZ';
|
||||||
|
export var INVALID_DATE_STRING = 'Invalid Date'; // regex
|
||||||
|
|
||||||
|
export var REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/;
|
||||||
|
export var REGEX_FORMAT = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
|
429
node_modules/dayjs/esm/index.d.ts
generated
vendored
Normal file
429
node_modules/dayjs/esm/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,429 @@
|
|||||||
|
/// <reference path="./locale/index.d.ts" />
|
||||||
|
|
||||||
|
export = dayjs;
|
||||||
|
|
||||||
|
declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs
|
||||||
|
|
||||||
|
declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs
|
||||||
|
|
||||||
|
declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs
|
||||||
|
|
||||||
|
declare namespace dayjs {
|
||||||
|
interface ConfigTypeMap {
|
||||||
|
default: string | number | Date | Dayjs | null | undefined
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]
|
||||||
|
|
||||||
|
export interface FormatObject { locale?: string, format?: string, utc?: boolean }
|
||||||
|
|
||||||
|
export type OptionType = FormatObject | string | string[]
|
||||||
|
|
||||||
|
export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
|
||||||
|
|
||||||
|
export type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date'
|
||||||
|
|
||||||
|
export type UnitTypeLongPlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | 'dates'
|
||||||
|
|
||||||
|
export type UnitType = UnitTypeLong | UnitTypeLongPlural | UnitTypeShort;
|
||||||
|
|
||||||
|
export type OpUnitType = UnitType | "week" | "weeks" | 'w';
|
||||||
|
export type QUnitType = UnitType | "quarter" | "quarters" | 'Q';
|
||||||
|
export type ManipulateType = Exclude<OpUnitType, 'date' | 'dates'>;
|
||||||
|
class Dayjs {
|
||||||
|
constructor (config?: ConfigType)
|
||||||
|
/**
|
||||||
|
* All Day.js objects are immutable. Still, `dayjs#clone` can create a clone of the current object if you need one.
|
||||||
|
* ```
|
||||||
|
* dayjs().clone()// => Dayjs
|
||||||
|
* dayjs(dayjs('2019-01-25')) // passing a Dayjs object to a constructor will also clone it
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/parse/dayjs-clone
|
||||||
|
*/
|
||||||
|
clone(): Dayjs
|
||||||
|
/**
|
||||||
|
* This returns a `boolean` indicating whether the Day.js object contains a valid date or not.
|
||||||
|
* ```
|
||||||
|
* dayjs().isValid()// => boolean
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/parse/is-valid
|
||||||
|
*/
|
||||||
|
isValid(): boolean
|
||||||
|
/**
|
||||||
|
* Get the year.
|
||||||
|
* ```
|
||||||
|
* dayjs().year()// => 2020
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/year
|
||||||
|
*/
|
||||||
|
year(): number
|
||||||
|
/**
|
||||||
|
* Set the year.
|
||||||
|
* ```
|
||||||
|
* dayjs().year(2000)// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/year
|
||||||
|
*/
|
||||||
|
year(value: number): Dayjs
|
||||||
|
/**
|
||||||
|
* Get the month.
|
||||||
|
*
|
||||||
|
* Months are zero indexed, so January is month 0.
|
||||||
|
* ```
|
||||||
|
* dayjs().month()// => 0-11
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/month
|
||||||
|
*/
|
||||||
|
month(): number
|
||||||
|
/**
|
||||||
|
* Set the month.
|
||||||
|
*
|
||||||
|
* Months are zero indexed, so January is month 0.
|
||||||
|
*
|
||||||
|
* Accepts numbers from 0 to 11. If the range is exceeded, it will bubble up to the next year.
|
||||||
|
* ```
|
||||||
|
* dayjs().month(0)// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/month
|
||||||
|
*/
|
||||||
|
month(value: number): Dayjs
|
||||||
|
/**
|
||||||
|
* Get the date of the month.
|
||||||
|
* ```
|
||||||
|
* dayjs().date()// => 1-31
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/date
|
||||||
|
*/
|
||||||
|
date(): number
|
||||||
|
/**
|
||||||
|
* Set the date of the month.
|
||||||
|
*
|
||||||
|
* Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the next months.
|
||||||
|
* ```
|
||||||
|
* dayjs().date(1)// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/date
|
||||||
|
*/
|
||||||
|
date(value: number): Dayjs
|
||||||
|
/**
|
||||||
|
* Get the day of the week.
|
||||||
|
*
|
||||||
|
* Returns numbers from 0 (Sunday) to 6 (Saturday).
|
||||||
|
* ```
|
||||||
|
* dayjs().day()// 0-6
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/day
|
||||||
|
*/
|
||||||
|
day(): 0 | 1 | 2 | 3 | 4 | 5 | 6
|
||||||
|
/**
|
||||||
|
* Set the day of the week.
|
||||||
|
*
|
||||||
|
* Accepts numbers from 0 (Sunday) to 6 (Saturday). If the range is exceeded, it will bubble up to next weeks.
|
||||||
|
* ```
|
||||||
|
* dayjs().day(0)// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/day
|
||||||
|
*/
|
||||||
|
day(value: number): Dayjs
|
||||||
|
/**
|
||||||
|
* Get the hour.
|
||||||
|
* ```
|
||||||
|
* dayjs().hour()// => 0-23
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/hour
|
||||||
|
*/
|
||||||
|
hour(): number
|
||||||
|
/**
|
||||||
|
* Set the hour.
|
||||||
|
*
|
||||||
|
* Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the next day.
|
||||||
|
* ```
|
||||||
|
* dayjs().hour(12)// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/hour
|
||||||
|
*/
|
||||||
|
hour(value: number): Dayjs
|
||||||
|
/**
|
||||||
|
* Get the minutes.
|
||||||
|
* ```
|
||||||
|
* dayjs().minute()// => 0-59
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/minute
|
||||||
|
*/
|
||||||
|
minute(): number
|
||||||
|
/**
|
||||||
|
* Set the minutes.
|
||||||
|
*
|
||||||
|
* Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next hour.
|
||||||
|
* ```
|
||||||
|
* dayjs().minute(59)// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/minute
|
||||||
|
*/
|
||||||
|
minute(value: number): Dayjs
|
||||||
|
/**
|
||||||
|
* Get the seconds.
|
||||||
|
* ```
|
||||||
|
* dayjs().second()// => 0-59
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/second
|
||||||
|
*/
|
||||||
|
second(): number
|
||||||
|
/**
|
||||||
|
* Set the seconds.
|
||||||
|
*
|
||||||
|
* Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next minutes.
|
||||||
|
* ```
|
||||||
|
* dayjs().second(1)// Dayjs
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
second(value: number): Dayjs
|
||||||
|
/**
|
||||||
|
* Get the milliseconds.
|
||||||
|
* ```
|
||||||
|
* dayjs().millisecond()// => 0-999
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/millisecond
|
||||||
|
*/
|
||||||
|
millisecond(): number
|
||||||
|
/**
|
||||||
|
* Set the milliseconds.
|
||||||
|
*
|
||||||
|
* Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the next seconds.
|
||||||
|
* ```
|
||||||
|
* dayjs().millisecond(1)// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/millisecond
|
||||||
|
*/
|
||||||
|
millisecond(value: number): Dayjs
|
||||||
|
/**
|
||||||
|
* Generic setter, accepting unit as first argument, and value as second, returns a new instance with the applied changes.
|
||||||
|
*
|
||||||
|
* In general:
|
||||||
|
* ```
|
||||||
|
* dayjs().set(unit, value) === dayjs()[unit](value)
|
||||||
|
* ```
|
||||||
|
* Units are case insensitive, and support plural and short forms.
|
||||||
|
* ```
|
||||||
|
* dayjs().set('date', 1)
|
||||||
|
* dayjs().set('month', 3) // April
|
||||||
|
* dayjs().set('second', 30)
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/set
|
||||||
|
*/
|
||||||
|
set(unit: UnitType, value: number): Dayjs
|
||||||
|
/**
|
||||||
|
* String getter, returns the corresponding information getting from Day.js object.
|
||||||
|
*
|
||||||
|
* In general:
|
||||||
|
* ```
|
||||||
|
* dayjs().get(unit) === dayjs()[unit]()
|
||||||
|
* ```
|
||||||
|
* Units are case insensitive, and support plural and short forms.
|
||||||
|
* ```
|
||||||
|
* dayjs().get('year')
|
||||||
|
* dayjs().get('month') // start 0
|
||||||
|
* dayjs().get('date')
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/get-set/get
|
||||||
|
*/
|
||||||
|
get(unit: UnitType): number
|
||||||
|
/**
|
||||||
|
* Returns a cloned Day.js object with a specified amount of time added.
|
||||||
|
* ```
|
||||||
|
* dayjs().add(7, 'day')// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Units are case insensitive, and support plural and short forms.
|
||||||
|
*
|
||||||
|
* Docs: https://day.js.org/docs/en/manipulate/add
|
||||||
|
*/
|
||||||
|
add(value: number, unit?: ManipulateType): Dayjs
|
||||||
|
/**
|
||||||
|
* Returns a cloned Day.js object with a specified amount of time subtracted.
|
||||||
|
* ```
|
||||||
|
* dayjs().subtract(7, 'year')// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Units are case insensitive, and support plural and short forms.
|
||||||
|
*
|
||||||
|
* Docs: https://day.js.org/docs/en/manipulate/subtract
|
||||||
|
*/
|
||||||
|
subtract(value: number, unit?: ManipulateType): Dayjs
|
||||||
|
/**
|
||||||
|
* Returns a cloned Day.js object and set it to the start of a unit of time.
|
||||||
|
* ```
|
||||||
|
* dayjs().startOf('year')// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Units are case insensitive, and support plural and short forms.
|
||||||
|
*
|
||||||
|
* Docs: https://day.js.org/docs/en/manipulate/start-of
|
||||||
|
*/
|
||||||
|
startOf(unit: OpUnitType): Dayjs
|
||||||
|
/**
|
||||||
|
* Returns a cloned Day.js object and set it to the end of a unit of time.
|
||||||
|
* ```
|
||||||
|
* dayjs().endOf('month')// => Dayjs
|
||||||
|
* ```
|
||||||
|
* Units are case insensitive, and support plural and short forms.
|
||||||
|
*
|
||||||
|
* Docs: https://day.js.org/docs/en/manipulate/end-of
|
||||||
|
*/
|
||||||
|
endOf(unit: OpUnitType): Dayjs
|
||||||
|
/**
|
||||||
|
* Get the formatted date according to the string of tokens passed in.
|
||||||
|
*
|
||||||
|
* To escape characters, wrap them in square brackets (e.g. [MM]).
|
||||||
|
* ```
|
||||||
|
* dayjs().format()// => current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'
|
||||||
|
* dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]')// 'YYYYescape 2019-01-25T00:00:00-02:00Z'
|
||||||
|
* dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/display/format
|
||||||
|
*/
|
||||||
|
format(template?: string): string
|
||||||
|
/**
|
||||||
|
* This indicates the difference between two date-time in the specified unit.
|
||||||
|
*
|
||||||
|
* To get the difference in milliseconds, use `dayjs#diff`
|
||||||
|
* ```
|
||||||
|
* const date1 = dayjs('2019-01-25')
|
||||||
|
* const date2 = dayjs('2018-06-05')
|
||||||
|
* date1.diff(date2) // 20214000000 default milliseconds
|
||||||
|
* date1.diff() // milliseconds to current time
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
* To get the difference in another unit of measurement, pass that measurement as the second argument.
|
||||||
|
* ```
|
||||||
|
* const date1 = dayjs('2019-01-25')
|
||||||
|
* date1.diff('2018-06-05', 'month') // 7
|
||||||
|
* ```
|
||||||
|
* Units are case insensitive, and support plural and short forms.
|
||||||
|
*
|
||||||
|
* Docs: https://day.js.org/docs/en/display/difference
|
||||||
|
*/
|
||||||
|
diff(date?: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number
|
||||||
|
/**
|
||||||
|
* This returns the number of **milliseconds** since the Unix Epoch of the Day.js object.
|
||||||
|
* ```
|
||||||
|
* dayjs('2019-01-25').valueOf() // 1548381600000
|
||||||
|
* +dayjs(1548381600000) // 1548381600000
|
||||||
|
* ```
|
||||||
|
* To get a Unix timestamp (the number of seconds since the epoch) from a Day.js object, you should use Unix Timestamp `dayjs#unix()`.
|
||||||
|
*
|
||||||
|
* Docs: https://day.js.org/docs/en/display/unix-timestamp-milliseconds
|
||||||
|
*/
|
||||||
|
valueOf(): number
|
||||||
|
/**
|
||||||
|
* This returns the Unix timestamp (the number of **seconds** since the Unix Epoch) of the Day.js object.
|
||||||
|
* ```
|
||||||
|
* dayjs('2019-01-25').unix() // 1548381600
|
||||||
|
* ```
|
||||||
|
* This value is floored to the nearest second, and does not include a milliseconds component.
|
||||||
|
*
|
||||||
|
* Docs: https://day.js.org/docs/en/display/unix-timestamp
|
||||||
|
*/
|
||||||
|
unix(): number
|
||||||
|
/**
|
||||||
|
* Get the number of days in the current month.
|
||||||
|
* ```
|
||||||
|
* dayjs('2019-01-25').daysInMonth() // 31
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/display/days-in-month
|
||||||
|
*/
|
||||||
|
daysInMonth(): number
|
||||||
|
/**
|
||||||
|
* To get a copy of the native `Date` object parsed from the Day.js object use `dayjs#toDate`.
|
||||||
|
* ```
|
||||||
|
* dayjs('2019-01-25').toDate()// => Date
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
toDate(): Date
|
||||||
|
/**
|
||||||
|
* To serialize as an ISO 8601 string.
|
||||||
|
* ```
|
||||||
|
* dayjs('2019-01-25').toJSON() // '2019-01-25T02:00:00.000Z'
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/display/as-json
|
||||||
|
*/
|
||||||
|
toJSON(): string
|
||||||
|
/**
|
||||||
|
* To format as an ISO 8601 string.
|
||||||
|
* ```
|
||||||
|
* dayjs('2019-01-25').toISOString() // '2019-01-25T02:00:00.000Z'
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/display/as-iso-string
|
||||||
|
*/
|
||||||
|
toISOString(): string
|
||||||
|
/**
|
||||||
|
* Returns a string representation of the date.
|
||||||
|
* ```
|
||||||
|
* dayjs('2019-01-25').toString() // 'Fri, 25 Jan 2019 02:00:00 GMT'
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/display/as-string
|
||||||
|
*/
|
||||||
|
toString(): string
|
||||||
|
/**
|
||||||
|
* Get the UTC offset in minutes.
|
||||||
|
* ```
|
||||||
|
* dayjs().utcOffset()
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/manipulate/utc-offset
|
||||||
|
*/
|
||||||
|
utcOffset(): number
|
||||||
|
/**
|
||||||
|
* This indicates whether the Day.js object is before the other supplied date-time.
|
||||||
|
* ```
|
||||||
|
* dayjs().isBefore(dayjs('2011-01-01')) // default milliseconds
|
||||||
|
* ```
|
||||||
|
* If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
|
||||||
|
* ```
|
||||||
|
* dayjs().isBefore('2011-01-01', 'year')// => boolean
|
||||||
|
* ```
|
||||||
|
* Units are case insensitive, and support plural and short forms.
|
||||||
|
*
|
||||||
|
* Docs: https://day.js.org/docs/en/query/is-before
|
||||||
|
*/
|
||||||
|
isBefore(date?: ConfigType, unit?: OpUnitType): boolean
|
||||||
|
/**
|
||||||
|
* This indicates whether the Day.js object is the same as the other supplied date-time.
|
||||||
|
* ```
|
||||||
|
* dayjs().isSame(dayjs('2011-01-01')) // default milliseconds
|
||||||
|
* ```
|
||||||
|
* If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
|
||||||
|
* ```
|
||||||
|
* dayjs().isSame('2011-01-01', 'year')// => boolean
|
||||||
|
* ```
|
||||||
|
* Docs: https://day.js.org/docs/en/query/is-same
|
||||||
|
*/
|
||||||
|
isSame(date?: ConfigType, unit?: OpUnitType): boolean
|
||||||
|
/**
|
||||||
|
* This indicates whether the Day.js object is after the other supplied date-time.
|
||||||
|
* ```
|
||||||
|
* dayjs().isAfter(dayjs('2011-01-01')) // default milliseconds
|
||||||
|
* ```
|
||||||
|
* If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
|
||||||
|
* ```
|
||||||
|
* dayjs().isAfter('2011-01-01', 'year')// => boolean
|
||||||
|
* ```
|
||||||
|
* Units are case insensitive, and support plural and short forms.
|
||||||
|
*
|
||||||
|
* Docs: https://day.js.org/docs/en/query/is-after
|
||||||
|
*/
|
||||||
|
isAfter(date?: ConfigType, unit?: OpUnitType): boolean
|
||||||
|
|
||||||
|
locale(): string
|
||||||
|
|
||||||
|
locale(preset: string | ILocale, object?: Partial<ILocale>): Dayjs
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PluginFunc<T = unknown> = (option: T, c: typeof Dayjs, d: typeof dayjs) => void
|
||||||
|
|
||||||
|
export function extend<T = unknown>(plugin: PluginFunc<T>, option?: T): Dayjs
|
||||||
|
|
||||||
|
export function locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string
|
||||||
|
|
||||||
|
export function isDayjs(d: any): d is Dayjs
|
||||||
|
|
||||||
|
export function unix(t: number): Dayjs
|
||||||
|
|
||||||
|
const Ls : { [key: string] : ILocale }
|
||||||
|
}
|
541
node_modules/dayjs/esm/index.js
generated
vendored
Normal file
541
node_modules/dayjs/esm/index.js
generated
vendored
Normal file
@ -0,0 +1,541 @@
|
|||||||
|
import * as C from './constant';
|
||||||
|
import en from './locale/en';
|
||||||
|
import U from './utils';
|
||||||
|
var L = 'en'; // global locale
|
||||||
|
|
||||||
|
var Ls = {}; // global loaded locale
|
||||||
|
|
||||||
|
Ls[L] = en;
|
||||||
|
var IS_DAYJS = '$isDayjsObject'; // eslint-disable-next-line no-use-before-define
|
||||||
|
|
||||||
|
var isDayjs = function isDayjs(d) {
|
||||||
|
return d instanceof Dayjs || !!(d && d[IS_DAYJS]);
|
||||||
|
};
|
||||||
|
|
||||||
|
var parseLocale = function parseLocale(preset, object, isLocal) {
|
||||||
|
var l;
|
||||||
|
if (!preset) return L;
|
||||||
|
|
||||||
|
if (typeof preset === 'string') {
|
||||||
|
var presetLower = preset.toLowerCase();
|
||||||
|
|
||||||
|
if (Ls[presetLower]) {
|
||||||
|
l = presetLower;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (object) {
|
||||||
|
Ls[presetLower] = object;
|
||||||
|
l = presetLower;
|
||||||
|
}
|
||||||
|
|
||||||
|
var presetSplit = preset.split('-');
|
||||||
|
|
||||||
|
if (!l && presetSplit.length > 1) {
|
||||||
|
return parseLocale(presetSplit[0]);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
var name = preset.name;
|
||||||
|
Ls[name] = preset;
|
||||||
|
l = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isLocal && l) L = l;
|
||||||
|
return l || !isLocal && L;
|
||||||
|
};
|
||||||
|
|
||||||
|
var dayjs = function dayjs(date, c) {
|
||||||
|
if (isDayjs(date)) {
|
||||||
|
return date.clone();
|
||||||
|
} // eslint-disable-next-line no-nested-ternary
|
||||||
|
|
||||||
|
|
||||||
|
var cfg = typeof c === 'object' ? c : {};
|
||||||
|
cfg.date = date;
|
||||||
|
cfg.args = arguments; // eslint-disable-line prefer-rest-params
|
||||||
|
|
||||||
|
return new Dayjs(cfg); // eslint-disable-line no-use-before-define
|
||||||
|
};
|
||||||
|
|
||||||
|
var wrapper = function wrapper(date, instance) {
|
||||||
|
return dayjs(date, {
|
||||||
|
locale: instance.$L,
|
||||||
|
utc: instance.$u,
|
||||||
|
x: instance.$x,
|
||||||
|
$offset: instance.$offset // todo: refactor; do not use this.$offset in you code
|
||||||
|
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
var Utils = U; // for plugin use
|
||||||
|
|
||||||
|
Utils.l = parseLocale;
|
||||||
|
Utils.i = isDayjs;
|
||||||
|
Utils.w = wrapper;
|
||||||
|
|
||||||
|
var parseDate = function parseDate(cfg) {
|
||||||
|
var date = cfg.date,
|
||||||
|
utc = cfg.utc;
|
||||||
|
if (date === null) return new Date(NaN); // null is invalid
|
||||||
|
|
||||||
|
if (Utils.u(date)) return new Date(); // today
|
||||||
|
|
||||||
|
if (date instanceof Date) return new Date(date);
|
||||||
|
|
||||||
|
if (typeof date === 'string' && !/Z$/i.test(date)) {
|
||||||
|
var d = date.match(C.REGEX_PARSE);
|
||||||
|
|
||||||
|
if (d) {
|
||||||
|
var m = d[2] - 1 || 0;
|
||||||
|
var ms = (d[7] || '0').substring(0, 3);
|
||||||
|
|
||||||
|
if (utc) {
|
||||||
|
return new Date(Date.UTC(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms));
|
||||||
|
}
|
||||||
|
|
||||||
|
return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return new Date(date); // everything else
|
||||||
|
};
|
||||||
|
|
||||||
|
var Dayjs = /*#__PURE__*/function () {
|
||||||
|
function Dayjs(cfg) {
|
||||||
|
this.$L = parseLocale(cfg.locale, null, true);
|
||||||
|
this.parse(cfg); // for plugin
|
||||||
|
|
||||||
|
this.$x = this.$x || cfg.x || {};
|
||||||
|
this[IS_DAYJS] = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
var _proto = Dayjs.prototype;
|
||||||
|
|
||||||
|
_proto.parse = function parse(cfg) {
|
||||||
|
this.$d = parseDate(cfg);
|
||||||
|
this.init();
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.init = function init() {
|
||||||
|
var $d = this.$d;
|
||||||
|
this.$y = $d.getFullYear();
|
||||||
|
this.$M = $d.getMonth();
|
||||||
|
this.$D = $d.getDate();
|
||||||
|
this.$W = $d.getDay();
|
||||||
|
this.$H = $d.getHours();
|
||||||
|
this.$m = $d.getMinutes();
|
||||||
|
this.$s = $d.getSeconds();
|
||||||
|
this.$ms = $d.getMilliseconds();
|
||||||
|
} // eslint-disable-next-line class-methods-use-this
|
||||||
|
;
|
||||||
|
|
||||||
|
_proto.$utils = function $utils() {
|
||||||
|
return Utils;
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.isValid = function isValid() {
|
||||||
|
return !(this.$d.toString() === C.INVALID_DATE_STRING);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.isSame = function isSame(that, units) {
|
||||||
|
var other = dayjs(that);
|
||||||
|
return this.startOf(units) <= other && other <= this.endOf(units);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.isAfter = function isAfter(that, units) {
|
||||||
|
return dayjs(that) < this.startOf(units);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.isBefore = function isBefore(that, units) {
|
||||||
|
return this.endOf(units) < dayjs(that);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.$g = function $g(input, get, set) {
|
||||||
|
if (Utils.u(input)) return this[get];
|
||||||
|
return this.set(set, input);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.unix = function unix() {
|
||||||
|
return Math.floor(this.valueOf() / 1000);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.valueOf = function valueOf() {
|
||||||
|
// timezone(hour) * 60 * 60 * 1000 => ms
|
||||||
|
return this.$d.getTime();
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.startOf = function startOf(units, _startOf) {
|
||||||
|
var _this = this;
|
||||||
|
|
||||||
|
// startOf -> endOf
|
||||||
|
var isStartOf = !Utils.u(_startOf) ? _startOf : true;
|
||||||
|
var unit = Utils.p(units);
|
||||||
|
|
||||||
|
var instanceFactory = function instanceFactory(d, m) {
|
||||||
|
var ins = Utils.w(_this.$u ? Date.UTC(_this.$y, m, d) : new Date(_this.$y, m, d), _this);
|
||||||
|
return isStartOf ? ins : ins.endOf(C.D);
|
||||||
|
};
|
||||||
|
|
||||||
|
var instanceFactorySet = function instanceFactorySet(method, slice) {
|
||||||
|
var argumentStart = [0, 0, 0, 0];
|
||||||
|
var argumentEnd = [23, 59, 59, 999];
|
||||||
|
return Utils.w(_this.toDate()[method].apply( // eslint-disable-line prefer-spread
|
||||||
|
_this.toDate('s'), (isStartOf ? argumentStart : argumentEnd).slice(slice)), _this);
|
||||||
|
};
|
||||||
|
|
||||||
|
var $W = this.$W,
|
||||||
|
$M = this.$M,
|
||||||
|
$D = this.$D;
|
||||||
|
var utcPad = "set" + (this.$u ? 'UTC' : '');
|
||||||
|
|
||||||
|
switch (unit) {
|
||||||
|
case C.Y:
|
||||||
|
return isStartOf ? instanceFactory(1, 0) : instanceFactory(31, 11);
|
||||||
|
|
||||||
|
case C.M:
|
||||||
|
return isStartOf ? instanceFactory(1, $M) : instanceFactory(0, $M + 1);
|
||||||
|
|
||||||
|
case C.W:
|
||||||
|
{
|
||||||
|
var weekStart = this.$locale().weekStart || 0;
|
||||||
|
var gap = ($W < weekStart ? $W + 7 : $W) - weekStart;
|
||||||
|
return instanceFactory(isStartOf ? $D - gap : $D + (6 - gap), $M);
|
||||||
|
}
|
||||||
|
|
||||||
|
case C.D:
|
||||||
|
case C.DATE:
|
||||||
|
return instanceFactorySet(utcPad + "Hours", 0);
|
||||||
|
|
||||||
|
case C.H:
|
||||||
|
return instanceFactorySet(utcPad + "Minutes", 1);
|
||||||
|
|
||||||
|
case C.MIN:
|
||||||
|
return instanceFactorySet(utcPad + "Seconds", 2);
|
||||||
|
|
||||||
|
case C.S:
|
||||||
|
return instanceFactorySet(utcPad + "Milliseconds", 3);
|
||||||
|
|
||||||
|
default:
|
||||||
|
return this.clone();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.endOf = function endOf(arg) {
|
||||||
|
return this.startOf(arg, false);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.$set = function $set(units, _int) {
|
||||||
|
var _C$D$C$DATE$C$M$C$Y$C;
|
||||||
|
|
||||||
|
// private set
|
||||||
|
var unit = Utils.p(units);
|
||||||
|
var utcPad = "set" + (this.$u ? 'UTC' : '');
|
||||||
|
var name = (_C$D$C$DATE$C$M$C$Y$C = {}, _C$D$C$DATE$C$M$C$Y$C[C.D] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[C.DATE] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[C.M] = utcPad + "Month", _C$D$C$DATE$C$M$C$Y$C[C.Y] = utcPad + "FullYear", _C$D$C$DATE$C$M$C$Y$C[C.H] = utcPad + "Hours", _C$D$C$DATE$C$M$C$Y$C[C.MIN] = utcPad + "Minutes", _C$D$C$DATE$C$M$C$Y$C[C.S] = utcPad + "Seconds", _C$D$C$DATE$C$M$C$Y$C[C.MS] = utcPad + "Milliseconds", _C$D$C$DATE$C$M$C$Y$C)[unit];
|
||||||
|
var arg = unit === C.D ? this.$D + (_int - this.$W) : _int;
|
||||||
|
|
||||||
|
if (unit === C.M || unit === C.Y) {
|
||||||
|
// clone is for badMutable plugin
|
||||||
|
var date = this.clone().set(C.DATE, 1);
|
||||||
|
date.$d[name](arg);
|
||||||
|
date.init();
|
||||||
|
this.$d = date.set(C.DATE, Math.min(this.$D, date.daysInMonth())).$d;
|
||||||
|
} else if (name) this.$d[name](arg);
|
||||||
|
|
||||||
|
this.init();
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.set = function set(string, _int2) {
|
||||||
|
return this.clone().$set(string, _int2);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.get = function get(unit) {
|
||||||
|
return this[Utils.p(unit)]();
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.add = function add(number, units) {
|
||||||
|
var _this2 = this,
|
||||||
|
_C$MIN$C$H$C$S$unit;
|
||||||
|
|
||||||
|
number = Number(number); // eslint-disable-line no-param-reassign
|
||||||
|
|
||||||
|
var unit = Utils.p(units);
|
||||||
|
|
||||||
|
var instanceFactorySet = function instanceFactorySet(n) {
|
||||||
|
var d = dayjs(_this2);
|
||||||
|
return Utils.w(d.date(d.date() + Math.round(n * number)), _this2);
|
||||||
|
};
|
||||||
|
|
||||||
|
if (unit === C.M) {
|
||||||
|
return this.set(C.M, this.$M + number);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (unit === C.Y) {
|
||||||
|
return this.set(C.Y, this.$y + number);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (unit === C.D) {
|
||||||
|
return instanceFactorySet(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (unit === C.W) {
|
||||||
|
return instanceFactorySet(7);
|
||||||
|
}
|
||||||
|
|
||||||
|
var step = (_C$MIN$C$H$C$S$unit = {}, _C$MIN$C$H$C$S$unit[C.MIN] = C.MILLISECONDS_A_MINUTE, _C$MIN$C$H$C$S$unit[C.H] = C.MILLISECONDS_A_HOUR, _C$MIN$C$H$C$S$unit[C.S] = C.MILLISECONDS_A_SECOND, _C$MIN$C$H$C$S$unit)[unit] || 1; // ms
|
||||||
|
|
||||||
|
var nextTimeStamp = this.$d.getTime() + number * step;
|
||||||
|
return Utils.w(nextTimeStamp, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.subtract = function subtract(number, string) {
|
||||||
|
return this.add(number * -1, string);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.format = function format(formatStr) {
|
||||||
|
var _this3 = this;
|
||||||
|
|
||||||
|
var locale = this.$locale();
|
||||||
|
if (!this.isValid()) return locale.invalidDate || C.INVALID_DATE_STRING;
|
||||||
|
var str = formatStr || C.FORMAT_DEFAULT;
|
||||||
|
var zoneStr = Utils.z(this);
|
||||||
|
var $H = this.$H,
|
||||||
|
$m = this.$m,
|
||||||
|
$M = this.$M;
|
||||||
|
var weekdays = locale.weekdays,
|
||||||
|
months = locale.months,
|
||||||
|
meridiem = locale.meridiem;
|
||||||
|
|
||||||
|
var getShort = function getShort(arr, index, full, length) {
|
||||||
|
return arr && (arr[index] || arr(_this3, str)) || full[index].slice(0, length);
|
||||||
|
};
|
||||||
|
|
||||||
|
var get$H = function get$H(num) {
|
||||||
|
return Utils.s($H % 12 || 12, num, '0');
|
||||||
|
};
|
||||||
|
|
||||||
|
var meridiemFunc = meridiem || function (hour, minute, isLowercase) {
|
||||||
|
var m = hour < 12 ? 'AM' : 'PM';
|
||||||
|
return isLowercase ? m.toLowerCase() : m;
|
||||||
|
};
|
||||||
|
|
||||||
|
var matches = function matches(match) {
|
||||||
|
switch (match) {
|
||||||
|
case 'YY':
|
||||||
|
return String(_this3.$y).slice(-2);
|
||||||
|
|
||||||
|
case 'YYYY':
|
||||||
|
return Utils.s(_this3.$y, 4, '0');
|
||||||
|
|
||||||
|
case 'M':
|
||||||
|
return $M + 1;
|
||||||
|
|
||||||
|
case 'MM':
|
||||||
|
return Utils.s($M + 1, 2, '0');
|
||||||
|
|
||||||
|
case 'MMM':
|
||||||
|
return getShort(locale.monthsShort, $M, months, 3);
|
||||||
|
|
||||||
|
case 'MMMM':
|
||||||
|
return getShort(months, $M);
|
||||||
|
|
||||||
|
case 'D':
|
||||||
|
return _this3.$D;
|
||||||
|
|
||||||
|
case 'DD':
|
||||||
|
return Utils.s(_this3.$D, 2, '0');
|
||||||
|
|
||||||
|
case 'd':
|
||||||
|
return String(_this3.$W);
|
||||||
|
|
||||||
|
case 'dd':
|
||||||
|
return getShort(locale.weekdaysMin, _this3.$W, weekdays, 2);
|
||||||
|
|
||||||
|
case 'ddd':
|
||||||
|
return getShort(locale.weekdaysShort, _this3.$W, weekdays, 3);
|
||||||
|
|
||||||
|
case 'dddd':
|
||||||
|
return weekdays[_this3.$W];
|
||||||
|
|
||||||
|
case 'H':
|
||||||
|
return String($H);
|
||||||
|
|
||||||
|
case 'HH':
|
||||||
|
return Utils.s($H, 2, '0');
|
||||||
|
|
||||||
|
case 'h':
|
||||||
|
return get$H(1);
|
||||||
|
|
||||||
|
case 'hh':
|
||||||
|
return get$H(2);
|
||||||
|
|
||||||
|
case 'a':
|
||||||
|
return meridiemFunc($H, $m, true);
|
||||||
|
|
||||||
|
case 'A':
|
||||||
|
return meridiemFunc($H, $m, false);
|
||||||
|
|
||||||
|
case 'm':
|
||||||
|
return String($m);
|
||||||
|
|
||||||
|
case 'mm':
|
||||||
|
return Utils.s($m, 2, '0');
|
||||||
|
|
||||||
|
case 's':
|
||||||
|
return String(_this3.$s);
|
||||||
|
|
||||||
|
case 'ss':
|
||||||
|
return Utils.s(_this3.$s, 2, '0');
|
||||||
|
|
||||||
|
case 'SSS':
|
||||||
|
return Utils.s(_this3.$ms, 3, '0');
|
||||||
|
|
||||||
|
case 'Z':
|
||||||
|
return zoneStr;
|
||||||
|
// 'ZZ' logic below
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
|
return str.replace(C.REGEX_FORMAT, function (match, $1) {
|
||||||
|
return $1 || matches(match) || zoneStr.replace(':', '');
|
||||||
|
}); // 'ZZ'
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.utcOffset = function utcOffset() {
|
||||||
|
// Because a bug at FF24, we're rounding the timezone offset around 15 minutes
|
||||||
|
// https://github.com/moment/moment/pull/1871
|
||||||
|
return -Math.round(this.$d.getTimezoneOffset() / 15) * 15;
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.diff = function diff(input, units, _float) {
|
||||||
|
var _this4 = this;
|
||||||
|
|
||||||
|
var unit = Utils.p(units);
|
||||||
|
var that = dayjs(input);
|
||||||
|
var zoneDelta = (that.utcOffset() - this.utcOffset()) * C.MILLISECONDS_A_MINUTE;
|
||||||
|
var diff = this - that;
|
||||||
|
|
||||||
|
var getMonth = function getMonth() {
|
||||||
|
return Utils.m(_this4, that);
|
||||||
|
};
|
||||||
|
|
||||||
|
var result;
|
||||||
|
|
||||||
|
switch (unit) {
|
||||||
|
case C.Y:
|
||||||
|
result = getMonth() / 12;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case C.M:
|
||||||
|
result = getMonth();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case C.Q:
|
||||||
|
result = getMonth() / 3;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case C.W:
|
||||||
|
result = (diff - zoneDelta) / C.MILLISECONDS_A_WEEK;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case C.D:
|
||||||
|
result = (diff - zoneDelta) / C.MILLISECONDS_A_DAY;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case C.H:
|
||||||
|
result = diff / C.MILLISECONDS_A_HOUR;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case C.MIN:
|
||||||
|
result = diff / C.MILLISECONDS_A_MINUTE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case C.S:
|
||||||
|
result = diff / C.MILLISECONDS_A_SECOND;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
result = diff; // milliseconds
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return _float ? result : Utils.a(result);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.daysInMonth = function daysInMonth() {
|
||||||
|
return this.endOf(C.M).$D;
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.$locale = function $locale() {
|
||||||
|
// get locale object
|
||||||
|
return Ls[this.$L];
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.locale = function locale(preset, object) {
|
||||||
|
if (!preset) return this.$L;
|
||||||
|
var that = this.clone();
|
||||||
|
var nextLocaleName = parseLocale(preset, object, true);
|
||||||
|
if (nextLocaleName) that.$L = nextLocaleName;
|
||||||
|
return that;
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.clone = function clone() {
|
||||||
|
return Utils.w(this.$d, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.toDate = function toDate() {
|
||||||
|
return new Date(this.valueOf());
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.toJSON = function toJSON() {
|
||||||
|
return this.isValid() ? this.toISOString() : null;
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.toISOString = function toISOString() {
|
||||||
|
// ie 8 return
|
||||||
|
// new Dayjs(this.valueOf() + this.$d.getTimezoneOffset() * 60000)
|
||||||
|
// .format('YYYY-MM-DDTHH:mm:ss.SSS[Z]')
|
||||||
|
return this.$d.toISOString();
|
||||||
|
};
|
||||||
|
|
||||||
|
_proto.toString = function toString() {
|
||||||
|
return this.$d.toUTCString();
|
||||||
|
};
|
||||||
|
|
||||||
|
return Dayjs;
|
||||||
|
}();
|
||||||
|
|
||||||
|
var proto = Dayjs.prototype;
|
||||||
|
dayjs.prototype = proto;
|
||||||
|
[['$ms', C.MS], ['$s', C.S], ['$m', C.MIN], ['$H', C.H], ['$W', C.D], ['$M', C.M], ['$y', C.Y], ['$D', C.DATE]].forEach(function (g) {
|
||||||
|
proto[g[1]] = function (input) {
|
||||||
|
return this.$g(input, g[0], g[1]);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
dayjs.extend = function (plugin, option) {
|
||||||
|
if (!plugin.$i) {
|
||||||
|
// install plugin only once
|
||||||
|
plugin(option, Dayjs, dayjs);
|
||||||
|
plugin.$i = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return dayjs;
|
||||||
|
};
|
||||||
|
|
||||||
|
dayjs.locale = parseLocale;
|
||||||
|
dayjs.isDayjs = isDayjs;
|
||||||
|
|
||||||
|
dayjs.unix = function (timestamp) {
|
||||||
|
return dayjs(timestamp * 1e3);
|
||||||
|
};
|
||||||
|
|
||||||
|
dayjs.en = Ls[L];
|
||||||
|
dayjs.Ls = Ls;
|
||||||
|
dayjs.p = {};
|
||||||
|
export default dayjs;
|
39
node_modules/dayjs/esm/locale/af.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/af.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Afrikaans [af]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'af',
|
||||||
|
weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
|
||||||
|
months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
|
||||||
|
weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'oor %s',
|
||||||
|
past: '%s gelede',
|
||||||
|
s: "'n paar sekondes",
|
||||||
|
m: "'n minuut",
|
||||||
|
mm: '%d minute',
|
||||||
|
h: "'n uur",
|
||||||
|
hh: '%d ure',
|
||||||
|
d: "'n dag",
|
||||||
|
dd: '%d dae',
|
||||||
|
M: "'n maand",
|
||||||
|
MM: '%d maande',
|
||||||
|
y: "'n jaar",
|
||||||
|
yy: '%d jaar'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
40
node_modules/dayjs/esm/locale/am.js
generated
vendored
Normal file
40
node_modules/dayjs/esm/locale/am.js
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
// Amharic [am]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'am',
|
||||||
|
weekdays: 'እሑድ_ሰኞ_ማክሰኞ_ረቡዕ_ሐሙስ_አርብ_ቅዳሜ'.split('_'),
|
||||||
|
weekdaysShort: 'እሑድ_ሰኞ_ማክሰ_ረቡዕ_ሐሙስ_አርብ_ቅዳሜ'.split('_'),
|
||||||
|
weekdaysMin: 'እሑ_ሰኞ_ማክ_ረቡ_ሐሙ_አር_ቅዳ'.split('_'),
|
||||||
|
months: 'ጃንዋሪ_ፌብሯሪ_ማርች_ኤፕሪል_ሜይ_ጁን_ጁላይ_ኦገስት_ሴፕቴምበር_ኦክቶበር_ኖቬምበር_ዲሴምበር'.split('_'),
|
||||||
|
monthsShort: 'ጃንዋ_ፌብሯ_ማርች_ኤፕሪ_ሜይ_ጁን_ጁላይ_ኦገስ_ሴፕቴ_ኦክቶ_ኖቬም_ዲሴም'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
yearStart: 4,
|
||||||
|
relativeTime: {
|
||||||
|
future: 'በ%s',
|
||||||
|
past: '%s በፊት',
|
||||||
|
s: 'ጥቂት ሰከንዶች',
|
||||||
|
m: 'አንድ ደቂቃ',
|
||||||
|
mm: '%d ደቂቃዎች',
|
||||||
|
h: 'አንድ ሰዓት',
|
||||||
|
hh: '%d ሰዓታት',
|
||||||
|
d: 'አንድ ቀን',
|
||||||
|
dd: '%d ቀናት',
|
||||||
|
M: 'አንድ ወር',
|
||||||
|
MM: '%d ወራት',
|
||||||
|
y: 'አንድ ዓመት',
|
||||||
|
yy: '%d ዓመታት'
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'MMMM D ፣ YYYY',
|
||||||
|
LLL: 'MMMM D ፣ YYYY HH:mm',
|
||||||
|
LLLL: 'dddd ፣ MMMM D ፣ YYYY HH:mm'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + "\u129B";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
41
node_modules/dayjs/esm/locale/ar-dz.js
generated
vendored
Normal file
41
node_modules/dayjs/esm/locale/ar-dz.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
// Arabic (Algeria) [ar-dz]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'ar-dz',
|
||||||
|
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||||
|
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||||
|
weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
||||||
|
monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||||
|
weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
meridiem: function meridiem(hour) {
|
||||||
|
return hour > 12 ? 'م' : 'ص';
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'في %s',
|
||||||
|
past: 'منذ %s',
|
||||||
|
s: 'ثوان',
|
||||||
|
m: 'دقيقة',
|
||||||
|
mm: '%d دقائق',
|
||||||
|
h: 'ساعة',
|
||||||
|
hh: '%d ساعات',
|
||||||
|
d: 'يوم',
|
||||||
|
dd: '%d أيام',
|
||||||
|
M: 'شهر',
|
||||||
|
MM: '%d أشهر',
|
||||||
|
y: 'سنة',
|
||||||
|
yy: '%d سنوات'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
42
node_modules/dayjs/esm/locale/ar-iq.js
generated
vendored
Normal file
42
node_modules/dayjs/esm/locale/ar-iq.js
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// Arabic (Iraq) [ar-iq]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'ar-iq',
|
||||||
|
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||||
|
months: 'كانون الثاني_شباط_آذار_نيسان_أيار_حزيران_تموز_آب_أيلول_تشرين الأول_ تشرين الثاني_كانون الأول'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||||
|
monthsShort: 'كانون الثاني_شباط_آذار_نيسان_أيار_حزيران_تموز_آب_أيلول_تشرين الأول_ تشرين الثاني_كانون الأول'.split('_'),
|
||||||
|
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
meridiem: function meridiem(hour) {
|
||||||
|
return hour > 12 ? 'م' : 'ص';
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'في %s',
|
||||||
|
past: 'منذ %s',
|
||||||
|
s: 'ثوان',
|
||||||
|
m: 'دقيقة',
|
||||||
|
mm: '%d دقائق',
|
||||||
|
h: 'ساعة',
|
||||||
|
hh: '%d ساعات',
|
||||||
|
d: 'يوم',
|
||||||
|
dd: '%d أيام',
|
||||||
|
M: 'شهر',
|
||||||
|
MM: '%d أشهر',
|
||||||
|
y: 'سنة',
|
||||||
|
yy: '%d سنوات'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
41
node_modules/dayjs/esm/locale/ar-kw.js
generated
vendored
Normal file
41
node_modules/dayjs/esm/locale/ar-kw.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
// Arabic (Kuwait) [ar-kw]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'ar-kw',
|
||||||
|
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||||
|
months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
||||||
|
weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
||||||
|
monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
||||||
|
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
meridiem: function meridiem(hour) {
|
||||||
|
return hour > 12 ? 'م' : 'ص';
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'في %s',
|
||||||
|
past: 'منذ %s',
|
||||||
|
s: 'ثوان',
|
||||||
|
m: 'دقيقة',
|
||||||
|
mm: '%d دقائق',
|
||||||
|
h: 'ساعة',
|
||||||
|
hh: '%d ساعات',
|
||||||
|
d: 'يوم',
|
||||||
|
dd: '%d أيام',
|
||||||
|
M: 'شهر',
|
||||||
|
MM: '%d أشهر',
|
||||||
|
y: 'سنة',
|
||||||
|
yy: '%d سنوات'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
27
node_modules/dayjs/esm/locale/ar-ly.js
generated
vendored
Normal file
27
node_modules/dayjs/esm/locale/ar-ly.js
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
// Arabic (Lybia) [ar-ly]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'ar-ly',
|
||||||
|
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||||
|
months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||||
|
weekStart: 6,
|
||||||
|
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||||
|
monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||||
|
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
meridiem: function meridiem(hour) {
|
||||||
|
return hour > 12 ? 'م' : 'ص';
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'D/M/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
42
node_modules/dayjs/esm/locale/ar-ma.js
generated
vendored
Normal file
42
node_modules/dayjs/esm/locale/ar-ma.js
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// Arabic (Morocco) [ar-ma]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'ar-ma',
|
||||||
|
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||||
|
months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
||||||
|
weekStart: 6,
|
||||||
|
weekdaysShort: 'احد_إثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
|
||||||
|
monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
|
||||||
|
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
meridiem: function meridiem(hour) {
|
||||||
|
return hour > 12 ? 'م' : 'ص';
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'في %s',
|
||||||
|
past: 'منذ %s',
|
||||||
|
s: 'ثوان',
|
||||||
|
m: 'دقيقة',
|
||||||
|
mm: '%d دقائق',
|
||||||
|
h: 'ساعة',
|
||||||
|
hh: '%d ساعات',
|
||||||
|
d: 'يوم',
|
||||||
|
dd: '%d أيام',
|
||||||
|
M: 'شهر',
|
||||||
|
MM: '%d أشهر',
|
||||||
|
y: 'سنة',
|
||||||
|
yy: '%d سنوات'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
41
node_modules/dayjs/esm/locale/ar-sa.js
generated
vendored
Normal file
41
node_modules/dayjs/esm/locale/ar-sa.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
// Arabic (Saudi Arabia) [ar-sa]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'ar-sa',
|
||||||
|
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||||
|
months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||||
|
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||||
|
monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||||
|
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
meridiem: function meridiem(hour) {
|
||||||
|
return hour > 12 ? 'م' : 'ص';
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'في %s',
|
||||||
|
past: 'منذ %s',
|
||||||
|
s: 'ثوان',
|
||||||
|
m: 'دقيقة',
|
||||||
|
mm: '%d دقائق',
|
||||||
|
h: 'ساعة',
|
||||||
|
hh: '%d ساعات',
|
||||||
|
d: 'يوم',
|
||||||
|
dd: '%d أيام',
|
||||||
|
M: 'شهر',
|
||||||
|
MM: '%d أشهر',
|
||||||
|
y: 'سنة',
|
||||||
|
yy: '%d سنوات'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
42
node_modules/dayjs/esm/locale/ar-tn.js
generated
vendored
Normal file
42
node_modules/dayjs/esm/locale/ar-tn.js
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// Arabic (Tunisia) [ar-tn]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'ar-tn',
|
||||||
|
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||||
|
months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||||
|
monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
|
||||||
|
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
meridiem: function meridiem(hour) {
|
||||||
|
return hour > 12 ? 'م' : 'ص';
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'في %s',
|
||||||
|
past: 'منذ %s',
|
||||||
|
s: 'ثوان',
|
||||||
|
m: 'دقيقة',
|
||||||
|
mm: '%d دقائق',
|
||||||
|
h: 'ساعة',
|
||||||
|
hh: '%d ساعات',
|
||||||
|
d: 'يوم',
|
||||||
|
dd: '%d أيام',
|
||||||
|
M: 'شهر',
|
||||||
|
MM: '%d أشهر',
|
||||||
|
y: 'سنة',
|
||||||
|
yy: '%d سنوات'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
77
node_modules/dayjs/esm/locale/ar.js
generated
vendored
Normal file
77
node_modules/dayjs/esm/locale/ar.js
generated
vendored
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
// Arabic [ar]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var months = 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_');
|
||||||
|
var symbolMap = {
|
||||||
|
1: '١',
|
||||||
|
2: '٢',
|
||||||
|
3: '٣',
|
||||||
|
4: '٤',
|
||||||
|
5: '٥',
|
||||||
|
6: '٦',
|
||||||
|
7: '٧',
|
||||||
|
8: '٨',
|
||||||
|
9: '٩',
|
||||||
|
0: '٠'
|
||||||
|
};
|
||||||
|
var numberMap = {
|
||||||
|
'١': '1',
|
||||||
|
'٢': '2',
|
||||||
|
'٣': '3',
|
||||||
|
'٤': '4',
|
||||||
|
'٥': '5',
|
||||||
|
'٦': '6',
|
||||||
|
'٧': '7',
|
||||||
|
'٨': '8',
|
||||||
|
'٩': '9',
|
||||||
|
'٠': '0'
|
||||||
|
};
|
||||||
|
var locale = {
|
||||||
|
name: 'ar',
|
||||||
|
weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
|
||||||
|
weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
|
||||||
|
weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
|
||||||
|
months: months,
|
||||||
|
monthsShort: months,
|
||||||
|
weekStart: 6,
|
||||||
|
meridiem: function meridiem(hour) {
|
||||||
|
return hour > 12 ? 'م' : 'ص';
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'بعد %s',
|
||||||
|
past: 'منذ %s',
|
||||||
|
s: 'ثانية واحدة',
|
||||||
|
m: 'دقيقة واحدة',
|
||||||
|
mm: '%d دقائق',
|
||||||
|
h: 'ساعة واحدة',
|
||||||
|
hh: '%d ساعات',
|
||||||
|
d: 'يوم واحد',
|
||||||
|
dd: '%d أيام',
|
||||||
|
M: 'شهر واحد',
|
||||||
|
MM: '%d أشهر',
|
||||||
|
y: 'عام واحد',
|
||||||
|
yy: '%d أعوام'
|
||||||
|
},
|
||||||
|
preparse: function preparse(string) {
|
||||||
|
return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
||||||
|
return numberMap[match];
|
||||||
|
}).replace(/،/g, ',');
|
||||||
|
},
|
||||||
|
postformat: function postformat(string) {
|
||||||
|
return string.replace(/\d/g, function (match) {
|
||||||
|
return symbolMap[match];
|
||||||
|
}).replace(/,/g, '،');
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'D/M/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/az.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/az.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Azerbaijani [az]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'az',
|
||||||
|
weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
|
||||||
|
weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
|
||||||
|
weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
|
||||||
|
months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
|
||||||
|
monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
formats: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D MMMM YYYY г.',
|
||||||
|
LLL: 'D MMMM YYYY г., H:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY г., H:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s sonra',
|
||||||
|
past: '%s əvvəl',
|
||||||
|
s: 'bir neçə saniyə',
|
||||||
|
m: 'bir dəqiqə',
|
||||||
|
mm: '%d dəqiqə',
|
||||||
|
h: 'bir saat',
|
||||||
|
hh: '%d saat',
|
||||||
|
d: 'bir gün',
|
||||||
|
dd: '%d gün',
|
||||||
|
M: 'bir ay',
|
||||||
|
MM: '%d ay',
|
||||||
|
y: 'bir il',
|
||||||
|
yy: '%d il'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
24
node_modules/dayjs/esm/locale/be.js
generated
vendored
Normal file
24
node_modules/dayjs/esm/locale/be.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
// Belarusian [be]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'be',
|
||||||
|
weekdays: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
|
||||||
|
months: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
||||||
|
monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
|
||||||
|
weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D MMMM YYYY г.',
|
||||||
|
LLL: 'D MMMM YYYY г., HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY г., HH:mm'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
55
node_modules/dayjs/esm/locale/bg.js
generated
vendored
Normal file
55
node_modules/dayjs/esm/locale/bg.js
generated
vendored
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
// Bulgarian [bg]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'bg',
|
||||||
|
weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
|
||||||
|
weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
|
||||||
|
weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
|
||||||
|
months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
|
||||||
|
monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
var last2Digits = n % 100;
|
||||||
|
|
||||||
|
if (last2Digits > 10 && last2Digits < 20) {
|
||||||
|
return n + "-\u0442\u0438";
|
||||||
|
}
|
||||||
|
|
||||||
|
var lastDigit = n % 10;
|
||||||
|
|
||||||
|
if (lastDigit === 1) {
|
||||||
|
return n + "-\u0432\u0438";
|
||||||
|
} else if (lastDigit === 2) {
|
||||||
|
return n + "-\u0440\u0438";
|
||||||
|
} else if (lastDigit === 7 || lastDigit === 8) {
|
||||||
|
return n + "-\u043C\u0438";
|
||||||
|
}
|
||||||
|
|
||||||
|
return n + "-\u0442\u0438";
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'D.MM.YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY H:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY H:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'след %s',
|
||||||
|
past: 'преди %s',
|
||||||
|
s: 'няколко секунди',
|
||||||
|
m: 'минута',
|
||||||
|
mm: '%d минути',
|
||||||
|
h: 'час',
|
||||||
|
hh: '%d часа',
|
||||||
|
d: 'ден',
|
||||||
|
dd: '%d дена',
|
||||||
|
M: 'месец',
|
||||||
|
MM: '%d месеца',
|
||||||
|
y: 'година',
|
||||||
|
yy: '%d години'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/bi.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/bi.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Bislama [bi]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'bi',
|
||||||
|
weekdays: 'Sande_Mande_Tusde_Wenesde_Tosde_Fraede_Sarade'.split('_'),
|
||||||
|
months: 'Januari_Februari_Maj_Eprel_Mei_Jun_Julae_Okis_Septemba_Oktoba_Novemba_Disemba'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'San_Man_Tus_Wen_Tos_Frae_Sar'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Maj_Epr_Mai_Jun_Jul_Oki_Sep_Okt_Nov_Dis'.split('_'),
|
||||||
|
weekdaysMin: 'San_Ma_Tu_We_To_Fr_Sar'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'h:mm A',
|
||||||
|
LTS: 'h:mm:ss A',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY h:mm A',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY h:mm A'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'lo %s',
|
||||||
|
past: '%s bifo',
|
||||||
|
s: 'sam seken',
|
||||||
|
m: 'wan minit',
|
||||||
|
mm: '%d minit',
|
||||||
|
h: 'wan haoa',
|
||||||
|
hh: '%d haoa',
|
||||||
|
d: 'wan dei',
|
||||||
|
dd: '%d dei',
|
||||||
|
M: 'wan manis',
|
||||||
|
MM: '%d manis',
|
||||||
|
y: 'wan yia',
|
||||||
|
yy: '%d yia'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/bm.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/bm.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Bambara [bm]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'bm',
|
||||||
|
weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
|
||||||
|
months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
|
||||||
|
monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
|
||||||
|
weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'MMMM [tile] D [san] YYYY',
|
||||||
|
LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
|
||||||
|
LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s kɔnɔ',
|
||||||
|
past: 'a bɛ %s bɔ',
|
||||||
|
s: 'sanga dama dama',
|
||||||
|
m: 'miniti kelen',
|
||||||
|
mm: 'miniti %d',
|
||||||
|
h: 'lɛrɛ kelen',
|
||||||
|
hh: 'lɛrɛ %d',
|
||||||
|
d: 'tile kelen',
|
||||||
|
dd: 'tile %d',
|
||||||
|
M: 'kalo kelen',
|
||||||
|
MM: 'kalo %d',
|
||||||
|
y: 'san kelen',
|
||||||
|
yy: 'san %d'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
81
node_modules/dayjs/esm/locale/bn-bd.js
generated
vendored
Normal file
81
node_modules/dayjs/esm/locale/bn-bd.js
generated
vendored
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
// Bengali (Bangladesh) [bn-bd]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var symbolMap = {
|
||||||
|
1: '১',
|
||||||
|
2: '২',
|
||||||
|
3: '৩',
|
||||||
|
4: '৪',
|
||||||
|
5: '৫',
|
||||||
|
6: '৬',
|
||||||
|
7: '৭',
|
||||||
|
8: '৮',
|
||||||
|
9: '৯',
|
||||||
|
0: '০'
|
||||||
|
};
|
||||||
|
var numberMap = {
|
||||||
|
'১': '1',
|
||||||
|
'২': '2',
|
||||||
|
'৩': '3',
|
||||||
|
'৪': '4',
|
||||||
|
'৫': '5',
|
||||||
|
'৬': '6',
|
||||||
|
'৭': '7',
|
||||||
|
'৮': '8',
|
||||||
|
'৯': '9',
|
||||||
|
'০': '0'
|
||||||
|
};
|
||||||
|
var locale = {
|
||||||
|
name: 'bn-bd',
|
||||||
|
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
|
||||||
|
months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
|
||||||
|
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
|
||||||
|
monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
|
||||||
|
weekdaysMin: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
|
||||||
|
weekStart: 0,
|
||||||
|
preparse: function preparse(string) {
|
||||||
|
return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
|
||||||
|
return numberMap[match];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
postformat: function postformat(string) {
|
||||||
|
return string.replace(/\d/g, function (match) {
|
||||||
|
return symbolMap[match];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
var s = ['ই', 'লা', 'রা', 'ঠা', 'শে'];
|
||||||
|
var v = n % 100;
|
||||||
|
return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'A h:mm সময়',
|
||||||
|
LTS: 'A h:mm:ss সময়',
|
||||||
|
L: 'DD/MM/YYYY খ্রিস্টাব্দ',
|
||||||
|
LL: 'D MMMM YYYY খ্রিস্টাব্দ',
|
||||||
|
LLL: 'D MMMM YYYY খ্রিস্টাব্দ, A h:mm সময়',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY খ্রিস্টাব্দ, A h:mm সময়'
|
||||||
|
},
|
||||||
|
meridiem: function meridiem(hour) {
|
||||||
|
return (
|
||||||
|
/* eslint-disable no-nested-ternary */
|
||||||
|
hour < 4 ? 'রাত' : hour < 6 ? 'ভোর' : hour < 12 ? 'সকাল' : hour < 15 ? 'দুপুর' : hour < 18 ? 'বিকাল' : hour < 20 ? 'সন্ধ্যা' : 'রাত'
|
||||||
|
);
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s পরে',
|
||||||
|
past: '%s আগে',
|
||||||
|
s: 'কয়েক সেকেন্ড',
|
||||||
|
m: 'এক মিনিট',
|
||||||
|
mm: '%d মিনিট',
|
||||||
|
h: 'এক ঘন্টা',
|
||||||
|
hh: '%d ঘন্টা',
|
||||||
|
d: 'এক দিন',
|
||||||
|
dd: '%d দিন',
|
||||||
|
M: 'এক মাস',
|
||||||
|
MM: '%d মাস',
|
||||||
|
y: 'এক বছর',
|
||||||
|
yy: '%d বছর'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
72
node_modules/dayjs/esm/locale/bn.js
generated
vendored
Normal file
72
node_modules/dayjs/esm/locale/bn.js
generated
vendored
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
// Bengali [bn]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var symbolMap = {
|
||||||
|
1: '১',
|
||||||
|
2: '২',
|
||||||
|
3: '৩',
|
||||||
|
4: '৪',
|
||||||
|
5: '৫',
|
||||||
|
6: '৬',
|
||||||
|
7: '৭',
|
||||||
|
8: '৮',
|
||||||
|
9: '৯',
|
||||||
|
0: '০'
|
||||||
|
};
|
||||||
|
var numberMap = {
|
||||||
|
'১': '1',
|
||||||
|
'২': '2',
|
||||||
|
'৩': '3',
|
||||||
|
'৪': '4',
|
||||||
|
'৫': '5',
|
||||||
|
'৬': '6',
|
||||||
|
'৭': '7',
|
||||||
|
'৮': '8',
|
||||||
|
'৯': '9',
|
||||||
|
'০': '0'
|
||||||
|
};
|
||||||
|
var locale = {
|
||||||
|
name: 'bn',
|
||||||
|
weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
|
||||||
|
months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
|
||||||
|
weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
|
||||||
|
monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
|
||||||
|
weekdaysMin: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
|
||||||
|
preparse: function preparse(string) {
|
||||||
|
return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
|
||||||
|
return numberMap[match];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
postformat: function postformat(string) {
|
||||||
|
return string.replace(/\d/g, function (match) {
|
||||||
|
return symbolMap[match];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'A h:mm সময়',
|
||||||
|
LTS: 'A h:mm:ss সময়',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY, A h:mm সময়',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s পরে',
|
||||||
|
past: '%s আগে',
|
||||||
|
s: 'কয়েক সেকেন্ড',
|
||||||
|
m: 'এক মিনিট',
|
||||||
|
mm: '%d মিনিট',
|
||||||
|
h: 'এক ঘন্টা',
|
||||||
|
hh: '%d ঘন্টা',
|
||||||
|
d: 'এক দিন',
|
||||||
|
dd: '%d দিন',
|
||||||
|
M: 'এক মাস',
|
||||||
|
MM: '%d মাস',
|
||||||
|
y: 'এক বছর',
|
||||||
|
yy: '%d বছর'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
38
node_modules/dayjs/esm/locale/bo.js
generated
vendored
Normal file
38
node_modules/dayjs/esm/locale/bo.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
// Tibetan [bo]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'bo',
|
||||||
|
weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
|
||||||
|
weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
|
||||||
|
weekdaysMin: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
|
||||||
|
months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
|
||||||
|
monthsShort: 'ཟླ་དང་པོ_ཟླ་གཉིས་པ_ཟླ་གསུམ་པ_ཟླ་བཞི་པ_ཟླ་ལྔ་པ_ཟླ་དྲུག་པ_ཟླ་བདུན་པ_ཟླ་བརྒྱད་པ_ཟླ་དགུ་པ_ཟླ་བཅུ་པ_ཟླ་བཅུ་གཅིག་པ_ཟླ་བཅུ་གཉིས་པ'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'A h:mm',
|
||||||
|
LTS: 'A h:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY, A h:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY, A h:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s ལ་',
|
||||||
|
past: '%s སྔོན་ལ་',
|
||||||
|
s: 'ཏོག་ཙམ་',
|
||||||
|
m: 'སྐར་མ་གཅིག་',
|
||||||
|
mm: 'སྐར་མ་ %d',
|
||||||
|
h: 'ཆུ་ཚོད་གཅིག་',
|
||||||
|
hh: 'ཆུ་ཚོད་ %d',
|
||||||
|
d: 'ཉིན་གཅིག་',
|
||||||
|
dd: 'ཉིན་ %d',
|
||||||
|
M: 'ཟླ་བ་གཅིག་',
|
||||||
|
MM: 'ཟླ་བ་ %d',
|
||||||
|
y: 'ལོ་གཅིག་',
|
||||||
|
yy: 'ལོ་ %d'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
93
node_modules/dayjs/esm/locale/br.js
generated
vendored
Normal file
93
node_modules/dayjs/esm/locale/br.js
generated
vendored
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
// Breton [br]
|
||||||
|
import dayjs from '../index';
|
||||||
|
|
||||||
|
function lastNumber(number) {
|
||||||
|
if (number > 9) {
|
||||||
|
return lastNumber(number % 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
return number;
|
||||||
|
}
|
||||||
|
|
||||||
|
function softMutation(text) {
|
||||||
|
var mutationTable = {
|
||||||
|
m: 'v',
|
||||||
|
b: 'v',
|
||||||
|
d: 'z'
|
||||||
|
};
|
||||||
|
return mutationTable[text.charAt(0)] + text.substring(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function mutation(text, number) {
|
||||||
|
if (number === 2) {
|
||||||
|
return softMutation(text);
|
||||||
|
}
|
||||||
|
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
function relativeTimeWithMutation(number, withoutSuffix, key) {
|
||||||
|
var format = {
|
||||||
|
mm: 'munutenn',
|
||||||
|
MM: 'miz',
|
||||||
|
dd: 'devezh'
|
||||||
|
};
|
||||||
|
return number + " " + mutation(format[key], number);
|
||||||
|
}
|
||||||
|
|
||||||
|
function specialMutationForYears(number) {
|
||||||
|
/* istanbul ignore next line */
|
||||||
|
switch (lastNumber(number)) {
|
||||||
|
case 1:
|
||||||
|
case 3:
|
||||||
|
case 4:
|
||||||
|
case 5:
|
||||||
|
case 9:
|
||||||
|
return number + " bloaz";
|
||||||
|
|
||||||
|
default:
|
||||||
|
return number + " vloaz";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var locale = {
|
||||||
|
name: 'br',
|
||||||
|
weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
|
||||||
|
months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
|
||||||
|
monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'h[e]mm A',
|
||||||
|
LTS: 'h[e]mm:ss A',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D [a viz] MMMM YYYY',
|
||||||
|
LLL: 'D [a viz] MMMM YYYY h[e]mm A',
|
||||||
|
LLLL: 'dddd, D [a viz] MMMM YYYY h[e]mm A'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'a-benn %s',
|
||||||
|
past: '%s ʼzo',
|
||||||
|
s: 'un nebeud segondennoù',
|
||||||
|
m: 'ur vunutenn',
|
||||||
|
mm: relativeTimeWithMutation,
|
||||||
|
h: 'un eur',
|
||||||
|
hh: '%d eur',
|
||||||
|
d: 'un devezh',
|
||||||
|
dd: relativeTimeWithMutation,
|
||||||
|
M: 'ur miz',
|
||||||
|
MM: relativeTimeWithMutation,
|
||||||
|
y: 'ur bloaz',
|
||||||
|
yy: specialMutationForYears
|
||||||
|
},
|
||||||
|
meridiem: function meridiem(hour) {
|
||||||
|
return hour < 12 ? 'a.m.' : 'g.m.';
|
||||||
|
} // a-raok merenn | goude merenn
|
||||||
|
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
24
node_modules/dayjs/esm/locale/bs.js
generated
vendored
Normal file
24
node_modules/dayjs/esm/locale/bs.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
// Bosnian [bs]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'bs',
|
||||||
|
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
|
||||||
|
months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
||||||
|
monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
|
||||||
|
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D. MMMM YYYY',
|
||||||
|
LLL: 'D. MMMM YYYY H:mm',
|
||||||
|
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
44
node_modules/dayjs/esm/locale/ca.js
generated
vendored
Normal file
44
node_modules/dayjs/esm/locale/ca.js
generated
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
// Catalan [ca]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'ca',
|
||||||
|
weekdays: 'Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte'.split('_'),
|
||||||
|
weekdaysShort: 'Dg._Dl._Dt._Dc._Dj._Dv._Ds.'.split('_'),
|
||||||
|
weekdaysMin: 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
|
||||||
|
months: 'Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre'.split('_'),
|
||||||
|
monthsShort: 'Gen._Febr._Març_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
formats: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM [de] YYYY',
|
||||||
|
LLL: 'D MMMM [de] YYYY [a les] H:mm',
|
||||||
|
LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
|
||||||
|
ll: 'D MMM YYYY',
|
||||||
|
lll: 'D MMM YYYY, H:mm',
|
||||||
|
llll: 'ddd D MMM YYYY, H:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'd\'aquí %s',
|
||||||
|
past: 'fa %s',
|
||||||
|
s: 'uns segons',
|
||||||
|
m: 'un minut',
|
||||||
|
mm: '%d minuts',
|
||||||
|
h: 'una hora',
|
||||||
|
hh: '%d hores',
|
||||||
|
d: 'un dia',
|
||||||
|
dd: '%d dies',
|
||||||
|
M: 'un mes',
|
||||||
|
MM: '%d mesos',
|
||||||
|
y: 'un any',
|
||||||
|
yy: '%d anys'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
var ord;
|
||||||
|
if (n === 1 || n === 3) ord = 'r';else if (n === 2) ord = 'n';else if (n === 4) ord = 't';else ord = 'è';
|
||||||
|
return "" + n + ord;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
120
node_modules/dayjs/esm/locale/cs.js
generated
vendored
Normal file
120
node_modules/dayjs/esm/locale/cs.js
generated
vendored
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
// Czech [cs]
|
||||||
|
import dayjs from '../index';
|
||||||
|
|
||||||
|
function plural(n) {
|
||||||
|
return n > 1 && n < 5 && ~~(n / 10) !== 1; // eslint-disable-line
|
||||||
|
}
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
|
||||||
|
function translate(number, withoutSuffix, key, isFuture) {
|
||||||
|
var result = number + " ";
|
||||||
|
|
||||||
|
switch (key) {
|
||||||
|
case 's':
|
||||||
|
// a few seconds / in a few seconds / a few seconds ago
|
||||||
|
return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
|
||||||
|
|
||||||
|
case 'm':
|
||||||
|
// a minute / in a minute / a minute ago
|
||||||
|
return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
|
||||||
|
|
||||||
|
case 'mm':
|
||||||
|
// 9 minutes / in 9 minutes / 9 minutes ago
|
||||||
|
if (withoutSuffix || isFuture) {
|
||||||
|
return result + (plural(number) ? 'minuty' : 'minut');
|
||||||
|
}
|
||||||
|
|
||||||
|
return result + "minutami";
|
||||||
|
|
||||||
|
case 'h':
|
||||||
|
// an hour / in an hour / an hour ago
|
||||||
|
return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
|
||||||
|
|
||||||
|
case 'hh':
|
||||||
|
// 9 hours / in 9 hours / 9 hours ago
|
||||||
|
if (withoutSuffix || isFuture) {
|
||||||
|
return result + (plural(number) ? 'hodiny' : 'hodin');
|
||||||
|
}
|
||||||
|
|
||||||
|
return result + "hodinami";
|
||||||
|
|
||||||
|
case 'd':
|
||||||
|
// a day / in a day / a day ago
|
||||||
|
return withoutSuffix || isFuture ? 'den' : 'dnem';
|
||||||
|
|
||||||
|
case 'dd':
|
||||||
|
// 9 days / in 9 days / 9 days ago
|
||||||
|
if (withoutSuffix || isFuture) {
|
||||||
|
return result + (plural(number) ? 'dny' : 'dní');
|
||||||
|
}
|
||||||
|
|
||||||
|
return result + "dny";
|
||||||
|
|
||||||
|
case 'M':
|
||||||
|
// a month / in a month / a month ago
|
||||||
|
return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
|
||||||
|
|
||||||
|
case 'MM':
|
||||||
|
// 9 months / in 9 months / 9 months ago
|
||||||
|
if (withoutSuffix || isFuture) {
|
||||||
|
return result + (plural(number) ? 'měsíce' : 'měsíců');
|
||||||
|
}
|
||||||
|
|
||||||
|
return result + "m\u011Bs\xEDci";
|
||||||
|
|
||||||
|
case 'y':
|
||||||
|
// a year / in a year / a year ago
|
||||||
|
return withoutSuffix || isFuture ? 'rok' : 'rokem';
|
||||||
|
|
||||||
|
case 'yy':
|
||||||
|
// 9 years / in 9 years / 9 years ago
|
||||||
|
if (withoutSuffix || isFuture) {
|
||||||
|
return result + (plural(number) ? 'roky' : 'let');
|
||||||
|
}
|
||||||
|
|
||||||
|
return result + "lety";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* eslint-enable */
|
||||||
|
|
||||||
|
|
||||||
|
var locale = {
|
||||||
|
name: 'cs',
|
||||||
|
weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
|
||||||
|
weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
|
||||||
|
weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
|
||||||
|
months: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
|
||||||
|
monthsShort: 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
yearStart: 4,
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + ".";
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D. MMMM YYYY',
|
||||||
|
LLL: 'D. MMMM YYYY H:mm',
|
||||||
|
LLLL: 'dddd D. MMMM YYYY H:mm',
|
||||||
|
l: 'D. M. YYYY'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'za %s',
|
||||||
|
past: 'před %s',
|
||||||
|
s: translate,
|
||||||
|
m: translate,
|
||||||
|
mm: translate,
|
||||||
|
h: translate,
|
||||||
|
hh: translate,
|
||||||
|
d: translate,
|
||||||
|
dd: translate,
|
||||||
|
M: translate,
|
||||||
|
MM: translate,
|
||||||
|
y: translate,
|
||||||
|
yy: translate
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
24
node_modules/dayjs/esm/locale/cv.js
generated
vendored
Normal file
24
node_modules/dayjs/esm/locale/cv.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
// Chuvash [cv]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'cv',
|
||||||
|
weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
|
||||||
|
months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
|
||||||
|
monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
|
||||||
|
weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD-MM-YYYY',
|
||||||
|
LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
|
||||||
|
LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
|
||||||
|
LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/cy.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/cy.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Welsh [cy]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'cy',
|
||||||
|
weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
|
||||||
|
months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
|
||||||
|
monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'mewn %s',
|
||||||
|
past: '%s yn ôl',
|
||||||
|
s: 'ychydig eiliadau',
|
||||||
|
m: 'munud',
|
||||||
|
mm: '%d munud',
|
||||||
|
h: 'awr',
|
||||||
|
hh: '%d awr',
|
||||||
|
d: 'diwrnod',
|
||||||
|
dd: '%d diwrnod',
|
||||||
|
M: 'mis',
|
||||||
|
MM: '%d mis',
|
||||||
|
y: 'blwyddyn',
|
||||||
|
yy: '%d flynedd'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
40
node_modules/dayjs/esm/locale/da.js
generated
vendored
Normal file
40
node_modules/dayjs/esm/locale/da.js
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
// Danish [da]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'da',
|
||||||
|
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
||||||
|
weekdaysShort: 'søn._man._tirs._ons._tors._fre._lør.'.split('_'),
|
||||||
|
weekdaysMin: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
||||||
|
months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
|
||||||
|
monthsShort: 'jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
yearStart: 4,
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + ".";
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D. MMMM YYYY',
|
||||||
|
LLL: 'D. MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'om %s',
|
||||||
|
past: '%s siden',
|
||||||
|
s: 'få sekunder',
|
||||||
|
m: 'et minut',
|
||||||
|
mm: '%d minutter',
|
||||||
|
h: 'en time',
|
||||||
|
hh: '%d timer',
|
||||||
|
d: 'en dag',
|
||||||
|
dd: '%d dage',
|
||||||
|
M: 'en måned',
|
||||||
|
MM: '%d måneder',
|
||||||
|
y: 'et år',
|
||||||
|
yy: '%d år'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
63
node_modules/dayjs/esm/locale/de-at.js
generated
vendored
Normal file
63
node_modules/dayjs/esm/locale/de-at.js
generated
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
// German (Austria) [de-at]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var texts = {
|
||||||
|
s: 'ein paar Sekunden',
|
||||||
|
m: ['eine Minute', 'einer Minute'],
|
||||||
|
mm: '%d Minuten',
|
||||||
|
h: ['eine Stunde', 'einer Stunde'],
|
||||||
|
hh: '%d Stunden',
|
||||||
|
d: ['ein Tag', 'einem Tag'],
|
||||||
|
dd: ['%d Tage', '%d Tagen'],
|
||||||
|
M: ['ein Monat', 'einem Monat'],
|
||||||
|
MM: ['%d Monate', '%d Monaten'],
|
||||||
|
y: ['ein Jahr', 'einem Jahr'],
|
||||||
|
yy: ['%d Jahre', '%d Jahren']
|
||||||
|
};
|
||||||
|
|
||||||
|
function relativeTimeFormatter(number, withoutSuffix, key) {
|
||||||
|
var l = texts[key];
|
||||||
|
|
||||||
|
if (Array.isArray(l)) {
|
||||||
|
l = l[withoutSuffix ? 0 : 1];
|
||||||
|
}
|
||||||
|
|
||||||
|
return l.replace('%d', number);
|
||||||
|
}
|
||||||
|
|
||||||
|
var locale = {
|
||||||
|
name: 'de-at',
|
||||||
|
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
||||||
|
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
||||||
|
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
||||||
|
months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
||||||
|
monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + ".";
|
||||||
|
},
|
||||||
|
weekStart: 1,
|
||||||
|
formats: {
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
LT: 'HH:mm',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D. MMMM YYYY',
|
||||||
|
LLL: 'D. MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D. MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: 'vor %s',
|
||||||
|
s: relativeTimeFormatter,
|
||||||
|
m: relativeTimeFormatter,
|
||||||
|
mm: relativeTimeFormatter,
|
||||||
|
h: relativeTimeFormatter,
|
||||||
|
hh: relativeTimeFormatter,
|
||||||
|
d: relativeTimeFormatter,
|
||||||
|
dd: relativeTimeFormatter,
|
||||||
|
M: relativeTimeFormatter,
|
||||||
|
MM: relativeTimeFormatter,
|
||||||
|
y: relativeTimeFormatter,
|
||||||
|
yy: relativeTimeFormatter
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
63
node_modules/dayjs/esm/locale/de-ch.js
generated
vendored
Normal file
63
node_modules/dayjs/esm/locale/de-ch.js
generated
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
// German (Switzerland) [de-ch]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var texts = {
|
||||||
|
s: 'ein paar Sekunden',
|
||||||
|
m: ['eine Minute', 'einer Minute'],
|
||||||
|
mm: '%d Minuten',
|
||||||
|
h: ['eine Stunde', 'einer Stunde'],
|
||||||
|
hh: '%d Stunden',
|
||||||
|
d: ['ein Tag', 'einem Tag'],
|
||||||
|
dd: ['%d Tage', '%d Tagen'],
|
||||||
|
M: ['ein Monat', 'einem Monat'],
|
||||||
|
MM: ['%d Monate', '%d Monaten'],
|
||||||
|
y: ['ein Jahr', 'einem Jahr'],
|
||||||
|
yy: ['%d Jahre', '%d Jahren']
|
||||||
|
};
|
||||||
|
|
||||||
|
function relativeTimeFormatter(number, withoutSuffix, key) {
|
||||||
|
var l = texts[key];
|
||||||
|
|
||||||
|
if (Array.isArray(l)) {
|
||||||
|
l = l[withoutSuffix ? 0 : 1];
|
||||||
|
}
|
||||||
|
|
||||||
|
return l.replace('%d', number);
|
||||||
|
}
|
||||||
|
|
||||||
|
var locale = {
|
||||||
|
name: 'de-ch',
|
||||||
|
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
||||||
|
weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
||||||
|
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
||||||
|
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
||||||
|
monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + ".";
|
||||||
|
},
|
||||||
|
weekStart: 1,
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D. MMMM YYYY',
|
||||||
|
LLL: 'D. MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D. MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: 'vor %s',
|
||||||
|
s: relativeTimeFormatter,
|
||||||
|
m: relativeTimeFormatter,
|
||||||
|
mm: relativeTimeFormatter,
|
||||||
|
h: relativeTimeFormatter,
|
||||||
|
hh: relativeTimeFormatter,
|
||||||
|
d: relativeTimeFormatter,
|
||||||
|
dd: relativeTimeFormatter,
|
||||||
|
M: relativeTimeFormatter,
|
||||||
|
MM: relativeTimeFormatter,
|
||||||
|
y: relativeTimeFormatter,
|
||||||
|
yy: relativeTimeFormatter
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
64
node_modules/dayjs/esm/locale/de.js
generated
vendored
Normal file
64
node_modules/dayjs/esm/locale/de.js
generated
vendored
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
// German [de]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var texts = {
|
||||||
|
s: 'ein paar Sekunden',
|
||||||
|
m: ['eine Minute', 'einer Minute'],
|
||||||
|
mm: '%d Minuten',
|
||||||
|
h: ['eine Stunde', 'einer Stunde'],
|
||||||
|
hh: '%d Stunden',
|
||||||
|
d: ['ein Tag', 'einem Tag'],
|
||||||
|
dd: ['%d Tage', '%d Tagen'],
|
||||||
|
M: ['ein Monat', 'einem Monat'],
|
||||||
|
MM: ['%d Monate', '%d Monaten'],
|
||||||
|
y: ['ein Jahr', 'einem Jahr'],
|
||||||
|
yy: ['%d Jahre', '%d Jahren']
|
||||||
|
};
|
||||||
|
|
||||||
|
function relativeTimeFormatter(number, withoutSuffix, key) {
|
||||||
|
var l = texts[key];
|
||||||
|
|
||||||
|
if (Array.isArray(l)) {
|
||||||
|
l = l[withoutSuffix ? 0 : 1];
|
||||||
|
}
|
||||||
|
|
||||||
|
return l.replace('%d', number);
|
||||||
|
}
|
||||||
|
|
||||||
|
var locale = {
|
||||||
|
name: 'de',
|
||||||
|
weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
||||||
|
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
||||||
|
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
||||||
|
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
||||||
|
monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + ".";
|
||||||
|
},
|
||||||
|
weekStart: 1,
|
||||||
|
yearStart: 4,
|
||||||
|
formats: {
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
LT: 'HH:mm',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D. MMMM YYYY',
|
||||||
|
LLL: 'D. MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D. MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: 'vor %s',
|
||||||
|
s: relativeTimeFormatter,
|
||||||
|
m: relativeTimeFormatter,
|
||||||
|
mm: relativeTimeFormatter,
|
||||||
|
h: relativeTimeFormatter,
|
||||||
|
hh: relativeTimeFormatter,
|
||||||
|
d: relativeTimeFormatter,
|
||||||
|
dd: relativeTimeFormatter,
|
||||||
|
M: relativeTimeFormatter,
|
||||||
|
MM: relativeTimeFormatter,
|
||||||
|
y: relativeTimeFormatter,
|
||||||
|
yy: relativeTimeFormatter
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/dv.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/dv.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Maldivian [dv]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'dv',
|
||||||
|
weekdays: 'އާދިއްތަ_ހޯމަ_އަންގާރަ_ބުދަ_ބުރާސްފަތި_ހުކުރު_ހޮނިހިރު'.split('_'),
|
||||||
|
months: 'ޖެނުއަރީ_ފެބްރުއަރީ_މާރިޗު_އޭޕްރީލު_މޭ_ޖޫން_ޖުލައި_އޯގަސްޓު_ސެޕްޓެމްބަރު_އޮކްޓޯބަރު_ނޮވެމްބަރު_ޑިސެމްބަރު'.split('_'),
|
||||||
|
weekStart: 7,
|
||||||
|
weekdaysShort: 'އާދިއްތަ_ހޯމަ_އަންގާރަ_ބުދަ_ބުރާސްފަތި_ހުކުރު_ހޮނިހިރު'.split('_'),
|
||||||
|
monthsShort: 'ޖެނުއަރީ_ފެބްރުއަރީ_މާރިޗު_އޭޕްރީލު_މޭ_ޖޫން_ޖުލައި_އޯގަސްޓު_ސެޕްޓެމްބަރު_އޮކްޓޯބަރު_ނޮވެމްބަރު_ޑިސެމްބަރު'.split('_'),
|
||||||
|
weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'D/M/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'ތެރޭގައި %s',
|
||||||
|
past: 'ކުރިން %s',
|
||||||
|
s: 'ސިކުންތުކޮޅެއް',
|
||||||
|
m: 'މިނިޓެއް',
|
||||||
|
mm: 'މިނިޓު %d',
|
||||||
|
h: 'ގަޑިއިރެއް',
|
||||||
|
hh: 'ގަޑިއިރު %d',
|
||||||
|
d: 'ދުވަހެއް',
|
||||||
|
dd: 'ދުވަސް %d',
|
||||||
|
M: 'މަހެއް',
|
||||||
|
MM: 'މަސް %d',
|
||||||
|
y: 'އަހަރެއް',
|
||||||
|
yy: 'އަހަރު %d'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/el.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/el.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Greek [el]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'el',
|
||||||
|
weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
|
||||||
|
weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
|
||||||
|
weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
|
||||||
|
months: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
|
||||||
|
monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαι_Ιουν_Ιουλ_Αυγ_Σεπτ_Οκτ_Νοε_Δεκ'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
weekStart: 1,
|
||||||
|
relativeTime: {
|
||||||
|
future: 'σε %s',
|
||||||
|
past: 'πριν %s',
|
||||||
|
s: 'μερικά δευτερόλεπτα',
|
||||||
|
m: 'ένα λεπτό',
|
||||||
|
mm: '%d λεπτά',
|
||||||
|
h: 'μία ώρα',
|
||||||
|
hh: '%d ώρες',
|
||||||
|
d: 'μία μέρα',
|
||||||
|
dd: '%d μέρες',
|
||||||
|
M: 'ένα μήνα',
|
||||||
|
MM: '%d μήνες',
|
||||||
|
y: 'ένα χρόνο',
|
||||||
|
yy: '%d χρόνια'
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'h:mm A',
|
||||||
|
LTS: 'h:mm:ss A',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY h:mm A',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY h:mm A'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/en-au.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/en-au.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// English (Australia) [en-au]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'en-au',
|
||||||
|
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||||
|
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'h:mm A',
|
||||||
|
LTS: 'h:mm:ss A',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY h:mm A',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY h:mm A'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: '%s ago',
|
||||||
|
s: 'a few seconds',
|
||||||
|
m: 'a minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'an hour',
|
||||||
|
hh: '%d hours',
|
||||||
|
d: 'a day',
|
||||||
|
dd: '%d days',
|
||||||
|
M: 'a month',
|
||||||
|
MM: '%d months',
|
||||||
|
y: 'a year',
|
||||||
|
yy: '%d years'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
38
node_modules/dayjs/esm/locale/en-ca.js
generated
vendored
Normal file
38
node_modules/dayjs/esm/locale/en-ca.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
// English (Canada) [en-ca]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'en-ca',
|
||||||
|
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||||
|
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||||
|
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'h:mm A',
|
||||||
|
LTS: 'h:mm:ss A',
|
||||||
|
L: 'YYYY-MM-DD',
|
||||||
|
LL: 'MMMM D, YYYY',
|
||||||
|
LLL: 'MMMM D, YYYY h:mm A',
|
||||||
|
LLLL: 'dddd, MMMM D, YYYY h:mm A'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: '%s ago',
|
||||||
|
s: 'a few seconds',
|
||||||
|
m: 'a minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'an hour',
|
||||||
|
hh: '%d hours',
|
||||||
|
d: 'a day',
|
||||||
|
dd: '%d days',
|
||||||
|
M: 'a month',
|
||||||
|
MM: '%d months',
|
||||||
|
y: 'a year',
|
||||||
|
yy: '%d years'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
42
node_modules/dayjs/esm/locale/en-gb.js
generated
vendored
Normal file
42
node_modules/dayjs/esm/locale/en-gb.js
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// English (United Kingdom) [en-gb]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'en-gb',
|
||||||
|
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||||
|
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||||
|
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
yearStart: 4,
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: '%s ago',
|
||||||
|
s: 'a few seconds',
|
||||||
|
m: 'a minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'an hour',
|
||||||
|
hh: '%d hours',
|
||||||
|
d: 'a day',
|
||||||
|
dd: '%d days',
|
||||||
|
M: 'a month',
|
||||||
|
MM: '%d months',
|
||||||
|
y: 'a year',
|
||||||
|
yy: '%d years'
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
var s = ['th', 'st', 'nd', 'rd'];
|
||||||
|
var v = n % 100;
|
||||||
|
return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/en-ie.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/en-ie.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// English (Ireland) [en-ie]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'en-ie',
|
||||||
|
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||||
|
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: '%s ago',
|
||||||
|
s: 'a few seconds',
|
||||||
|
m: 'a minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'an hour',
|
||||||
|
hh: '%d hours',
|
||||||
|
d: 'a day',
|
||||||
|
dd: '%d days',
|
||||||
|
M: 'a month',
|
||||||
|
MM: '%d months',
|
||||||
|
y: 'a year',
|
||||||
|
yy: '%d years'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
38
node_modules/dayjs/esm/locale/en-il.js
generated
vendored
Normal file
38
node_modules/dayjs/esm/locale/en-il.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
// English (Israel) [en-il]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'en-il',
|
||||||
|
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||||
|
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||||
|
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: '%s ago',
|
||||||
|
s: 'a few seconds',
|
||||||
|
m: 'a minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'an hour',
|
||||||
|
hh: '%d hours',
|
||||||
|
d: 'a day',
|
||||||
|
dd: '%d days',
|
||||||
|
M: 'a month',
|
||||||
|
MM: '%d months',
|
||||||
|
y: 'a year',
|
||||||
|
yy: '%d years'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
42
node_modules/dayjs/esm/locale/en-in.js
generated
vendored
Normal file
42
node_modules/dayjs/esm/locale/en-in.js
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// English (India) [en-in]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'en-in',
|
||||||
|
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||||
|
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||||
|
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
yearStart: 4,
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: '%s ago',
|
||||||
|
s: 'a few seconds',
|
||||||
|
m: 'a minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'an hour',
|
||||||
|
hh: '%d hours',
|
||||||
|
d: 'a day',
|
||||||
|
dd: '%d days',
|
||||||
|
M: 'a month',
|
||||||
|
MM: '%d months',
|
||||||
|
y: 'a year',
|
||||||
|
yy: '%d years'
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
var s = ['th', 'st', 'nd', 'rd'];
|
||||||
|
var v = n % 100;
|
||||||
|
return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
41
node_modules/dayjs/esm/locale/en-nz.js
generated
vendored
Normal file
41
node_modules/dayjs/esm/locale/en-nz.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
// English (New Zealand) [en-nz]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'en-nz',
|
||||||
|
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||||
|
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
var s = ['th', 'st', 'nd', 'rd'];
|
||||||
|
var v = n % 100;
|
||||||
|
return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'h:mm A',
|
||||||
|
LTS: 'h:mm:ss A',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY h:mm A',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY h:mm A'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: '%s ago',
|
||||||
|
s: 'a few seconds',
|
||||||
|
m: 'a minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'an hour',
|
||||||
|
hh: '%d hours',
|
||||||
|
d: 'a day',
|
||||||
|
dd: '%d days',
|
||||||
|
M: 'a month',
|
||||||
|
MM: '%d months',
|
||||||
|
y: 'a year',
|
||||||
|
yy: '%d years'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/en-sg.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/en-sg.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// English (Singapore) [en-sg]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'en-sg',
|
||||||
|
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||||
|
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: '%s ago',
|
||||||
|
s: 'a few seconds',
|
||||||
|
m: 'a minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'an hour',
|
||||||
|
hh: '%d hours',
|
||||||
|
d: 'a day',
|
||||||
|
dd: '%d days',
|
||||||
|
M: 'a month',
|
||||||
|
MM: '%d months',
|
||||||
|
y: 'a year',
|
||||||
|
yy: '%d years'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
42
node_modules/dayjs/esm/locale/en-tt.js
generated
vendored
Normal file
42
node_modules/dayjs/esm/locale/en-tt.js
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// English (Trinidad & Tobago) [en-tt]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'en-tt',
|
||||||
|
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||||
|
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||||
|
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||||
|
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||||
|
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
yearStart: 4,
|
||||||
|
relativeTime: {
|
||||||
|
future: 'in %s',
|
||||||
|
past: '%s ago',
|
||||||
|
s: 'a few seconds',
|
||||||
|
m: 'a minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'an hour',
|
||||||
|
hh: '%d hours',
|
||||||
|
d: 'a day',
|
||||||
|
dd: '%d days',
|
||||||
|
M: 'a month',
|
||||||
|
MM: '%d months',
|
||||||
|
y: 'a year',
|
||||||
|
yy: '%d years'
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
var s = ['th', 'st', 'nd', 'rd'];
|
||||||
|
var v = n % 100;
|
||||||
|
return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
12
node_modules/dayjs/esm/locale/en.js
generated
vendored
Normal file
12
node_modules/dayjs/esm/locale/en.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// English [en]
|
||||||
|
// We don't need weekdaysShort, weekdaysMin, monthsShort in en.js locale
|
||||||
|
export default {
|
||||||
|
name: 'en',
|
||||||
|
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||||
|
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
var s = ['th', 'st', 'nd', 'rd'];
|
||||||
|
var v = n % 100;
|
||||||
|
return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
|
||||||
|
}
|
||||||
|
};
|
39
node_modules/dayjs/esm/locale/eo.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/eo.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Esperanto [eo]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'eo',
|
||||||
|
weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
|
||||||
|
months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
|
||||||
|
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
|
||||||
|
weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'YYYY-MM-DD',
|
||||||
|
LL: 'D[-a de] MMMM, YYYY',
|
||||||
|
LLL: 'D[-a de] MMMM, YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'post %s',
|
||||||
|
past: 'antaŭ %s',
|
||||||
|
s: 'sekundoj',
|
||||||
|
m: 'minuto',
|
||||||
|
mm: '%d minutoj',
|
||||||
|
h: 'horo',
|
||||||
|
hh: '%d horoj',
|
||||||
|
d: 'tago',
|
||||||
|
dd: '%d tagoj',
|
||||||
|
M: 'monato',
|
||||||
|
MM: '%d monatoj',
|
||||||
|
y: 'jaro',
|
||||||
|
yy: '%d jaroj'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/es-do.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/es-do.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Spanish (Dominican Republic) [es-do]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'es-do',
|
||||||
|
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||||
|
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||||
|
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||||
|
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
|
||||||
|
monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
relativeTime: {
|
||||||
|
future: 'en %s',
|
||||||
|
past: 'hace %s',
|
||||||
|
s: 'unos segundos',
|
||||||
|
m: 'un minuto',
|
||||||
|
mm: '%d minutos',
|
||||||
|
h: 'una hora',
|
||||||
|
hh: '%d horas',
|
||||||
|
d: 'un día',
|
||||||
|
dd: '%d días',
|
||||||
|
M: 'un mes',
|
||||||
|
MM: '%d meses',
|
||||||
|
y: 'un año',
|
||||||
|
yy: '%d años'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + "\xBA";
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'h:mm A',
|
||||||
|
LTS: 'h:mm:ss A',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D [de] MMMM [de] YYYY',
|
||||||
|
LLL: 'D [de] MMMM [de] YYYY h:mm A',
|
||||||
|
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
38
node_modules/dayjs/esm/locale/es-mx.js
generated
vendored
Normal file
38
node_modules/dayjs/esm/locale/es-mx.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
// Spanish (Mexico) [es-mx]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'es-mx',
|
||||||
|
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||||
|
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||||
|
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||||
|
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
|
||||||
|
monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
||||||
|
relativeTime: {
|
||||||
|
future: 'en %s',
|
||||||
|
past: 'hace %s',
|
||||||
|
s: 'unos segundos',
|
||||||
|
m: 'un minuto',
|
||||||
|
mm: '%d minutos',
|
||||||
|
h: 'una hora',
|
||||||
|
hh: '%d horas',
|
||||||
|
d: 'un día',
|
||||||
|
dd: '%d días',
|
||||||
|
M: 'un mes',
|
||||||
|
MM: '%d meses',
|
||||||
|
y: 'un año',
|
||||||
|
yy: '%d años'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + "\xBA";
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D [de] MMMM [de] YYYY',
|
||||||
|
LLL: 'D [de] MMMM [de] YYYY H:mm',
|
||||||
|
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/es-pr.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/es-pr.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Spanish (Puerto Rico) [es-PR]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'es-pr',
|
||||||
|
monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
||||||
|
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||||
|
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||||
|
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||||
|
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
formats: {
|
||||||
|
LT: 'h:mm A',
|
||||||
|
LTS: 'h:mm:ss A',
|
||||||
|
L: 'MM/DD/YYYY',
|
||||||
|
LL: 'D [de] MMMM [de] YYYY',
|
||||||
|
LLL: 'D [de] MMMM [de] YYYY h:mm A',
|
||||||
|
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'en %s',
|
||||||
|
past: 'hace %s',
|
||||||
|
s: 'unos segundos',
|
||||||
|
m: 'un minuto',
|
||||||
|
mm: '%d minutos',
|
||||||
|
h: 'una hora',
|
||||||
|
hh: '%d horas',
|
||||||
|
d: 'un día',
|
||||||
|
dd: '%d días',
|
||||||
|
M: 'un mes',
|
||||||
|
MM: '%d meses',
|
||||||
|
y: 'un año',
|
||||||
|
yy: '%d años'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + "\xBA";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
38
node_modules/dayjs/esm/locale/es-us.js
generated
vendored
Normal file
38
node_modules/dayjs/esm/locale/es-us.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
// Spanish (United States) [es-us]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'es-us',
|
||||||
|
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||||
|
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||||
|
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||||
|
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
|
||||||
|
monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
||||||
|
relativeTime: {
|
||||||
|
future: 'en %s',
|
||||||
|
past: 'hace %s',
|
||||||
|
s: 'unos segundos',
|
||||||
|
m: 'un minuto',
|
||||||
|
mm: '%d minutos',
|
||||||
|
h: 'una hora',
|
||||||
|
hh: '%d horas',
|
||||||
|
d: 'un día',
|
||||||
|
dd: '%d días',
|
||||||
|
M: 'un mes',
|
||||||
|
MM: '%d meses',
|
||||||
|
y: 'un año',
|
||||||
|
yy: '%d años'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + "\xBA";
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'h:mm A',
|
||||||
|
LTS: 'h:mm:ss A',
|
||||||
|
L: 'MM/DD/YYYY',
|
||||||
|
LL: 'D [de] MMMM [de] YYYY',
|
||||||
|
LLL: 'D [de] MMMM [de] YYYY h:mm A',
|
||||||
|
LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/es.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/es.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Spanish [es]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'es',
|
||||||
|
monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
|
||||||
|
weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||||
|
weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||||
|
weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||||
|
months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
formats: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D [de] MMMM [de] YYYY',
|
||||||
|
LLL: 'D [de] MMMM [de] YYYY H:mm',
|
||||||
|
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'en %s',
|
||||||
|
past: 'hace %s',
|
||||||
|
s: 'unos segundos',
|
||||||
|
m: 'un minuto',
|
||||||
|
mm: '%d minutos',
|
||||||
|
h: 'una hora',
|
||||||
|
hh: '%d horas',
|
||||||
|
d: 'un día',
|
||||||
|
dd: '%d días',
|
||||||
|
M: 'un mes',
|
||||||
|
MM: '%d meses',
|
||||||
|
y: 'un año',
|
||||||
|
yy: '%d años'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + "\xBA";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
65
node_modules/dayjs/esm/locale/et.js
generated
vendored
Normal file
65
node_modules/dayjs/esm/locale/et.js
generated
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
// Estonian [et]
|
||||||
|
import dayjs from '../index';
|
||||||
|
|
||||||
|
function relativeTimeWithTense(number, withoutSuffix, key, isFuture) {
|
||||||
|
var format = {
|
||||||
|
s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
|
||||||
|
m: ['ühe minuti', 'üks minut'],
|
||||||
|
mm: ['%d minuti', '%d minutit'],
|
||||||
|
h: ['ühe tunni', 'tund aega', 'üks tund'],
|
||||||
|
hh: ['%d tunni', '%d tundi'],
|
||||||
|
d: ['ühe päeva', 'üks päev'],
|
||||||
|
M: ['kuu aja', 'kuu aega', 'üks kuu'],
|
||||||
|
MM: ['%d kuu', '%d kuud'],
|
||||||
|
y: ['ühe aasta', 'aasta', 'üks aasta'],
|
||||||
|
yy: ['%d aasta', '%d aastat']
|
||||||
|
};
|
||||||
|
|
||||||
|
if (withoutSuffix) {
|
||||||
|
return (format[key][2] ? format[key][2] : format[key][1]).replace('%d', number);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (isFuture ? format[key][0] : format[key][1]).replace('%d', number);
|
||||||
|
}
|
||||||
|
|
||||||
|
var locale = {
|
||||||
|
name: 'et',
|
||||||
|
// Estonian
|
||||||
|
weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
|
||||||
|
// Note weekdays are not capitalized in Estonian
|
||||||
|
weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
|
||||||
|
// There is no short form of weekdays in Estonian except this 1 letter format so it is used for both 'weekdaysShort' and 'weekdaysMin'
|
||||||
|
weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
|
||||||
|
months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
|
||||||
|
// Note month names are not capitalized in Estonian
|
||||||
|
monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + ".";
|
||||||
|
},
|
||||||
|
weekStart: 1,
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s pärast',
|
||||||
|
past: '%s tagasi',
|
||||||
|
s: relativeTimeWithTense,
|
||||||
|
m: relativeTimeWithTense,
|
||||||
|
mm: relativeTimeWithTense,
|
||||||
|
h: relativeTimeWithTense,
|
||||||
|
hh: relativeTimeWithTense,
|
||||||
|
d: relativeTimeWithTense,
|
||||||
|
dd: '%d päeva',
|
||||||
|
M: relativeTimeWithTense,
|
||||||
|
MM: relativeTimeWithTense,
|
||||||
|
y: relativeTimeWithTense,
|
||||||
|
yy: relativeTimeWithTense
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D. MMMM YYYY',
|
||||||
|
LLL: 'D. MMMM YYYY H:mm',
|
||||||
|
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
43
node_modules/dayjs/esm/locale/eu.js
generated
vendored
Normal file
43
node_modules/dayjs/esm/locale/eu.js
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
// Basque [eu]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'eu',
|
||||||
|
weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
|
||||||
|
months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
|
||||||
|
monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
|
||||||
|
weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'YYYY-MM-DD',
|
||||||
|
LL: 'YYYY[ko] MMMM[ren] D[a]',
|
||||||
|
LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
|
||||||
|
LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
|
||||||
|
l: 'YYYY-M-D',
|
||||||
|
ll: 'YYYY[ko] MMM D[a]',
|
||||||
|
lll: 'YYYY[ko] MMM D[a] HH:mm',
|
||||||
|
llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s barru',
|
||||||
|
past: 'duela %s',
|
||||||
|
s: 'segundo batzuk',
|
||||||
|
m: 'minutu bat',
|
||||||
|
mm: '%d minutu',
|
||||||
|
h: 'ordu bat',
|
||||||
|
hh: '%d ordu',
|
||||||
|
d: 'egun bat',
|
||||||
|
dd: '%d egun',
|
||||||
|
M: 'hilabete bat',
|
||||||
|
MM: '%d hilabete',
|
||||||
|
y: 'urte bat',
|
||||||
|
yy: '%d urte'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/fa.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/fa.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Persian [fa]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'fa',
|
||||||
|
weekdays: 'یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه'.split('_'),
|
||||||
|
weekdaysShort: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split('_'),
|
||||||
|
weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
|
||||||
|
weekStart: 6,
|
||||||
|
months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
|
||||||
|
monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'در %s',
|
||||||
|
past: '%s پیش',
|
||||||
|
s: 'چند ثانیه',
|
||||||
|
m: 'یک دقیقه',
|
||||||
|
mm: '%d دقیقه',
|
||||||
|
h: 'یک ساعت',
|
||||||
|
hh: '%d ساعت',
|
||||||
|
d: 'یک روز',
|
||||||
|
dd: '%d روز',
|
||||||
|
M: 'یک ماه',
|
||||||
|
MM: '%d ماه',
|
||||||
|
y: 'یک سال',
|
||||||
|
yy: '%d سال'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
88
node_modules/dayjs/esm/locale/fi.js
generated
vendored
Normal file
88
node_modules/dayjs/esm/locale/fi.js
generated
vendored
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
// Finnish [fi]
|
||||||
|
import dayjs from '../index';
|
||||||
|
|
||||||
|
function relativeTimeFormatter(number, withoutSuffix, key, isFuture) {
|
||||||
|
var past = {
|
||||||
|
s: 'muutama sekunti',
|
||||||
|
m: 'minuutti',
|
||||||
|
mm: '%d minuuttia',
|
||||||
|
h: 'tunti',
|
||||||
|
hh: '%d tuntia',
|
||||||
|
d: 'päivä',
|
||||||
|
dd: '%d päivää',
|
||||||
|
M: 'kuukausi',
|
||||||
|
MM: '%d kuukautta',
|
||||||
|
y: 'vuosi',
|
||||||
|
yy: '%d vuotta',
|
||||||
|
numbers: 'nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän'.split('_')
|
||||||
|
};
|
||||||
|
var future = {
|
||||||
|
s: 'muutaman sekunnin',
|
||||||
|
m: 'minuutin',
|
||||||
|
mm: '%d minuutin',
|
||||||
|
h: 'tunnin',
|
||||||
|
hh: '%d tunnin',
|
||||||
|
d: 'päivän',
|
||||||
|
dd: '%d päivän',
|
||||||
|
M: 'kuukauden',
|
||||||
|
MM: '%d kuukauden',
|
||||||
|
y: 'vuoden',
|
||||||
|
yy: '%d vuoden',
|
||||||
|
numbers: 'nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän'.split('_')
|
||||||
|
};
|
||||||
|
var words = isFuture && !withoutSuffix ? future : past;
|
||||||
|
var result = words[key];
|
||||||
|
|
||||||
|
if (number < 10) {
|
||||||
|
return result.replace('%d', words.numbers[number]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result.replace('%d', number);
|
||||||
|
}
|
||||||
|
|
||||||
|
var locale = {
|
||||||
|
name: 'fi',
|
||||||
|
// Finnish
|
||||||
|
weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
|
||||||
|
// Note weekdays are not capitalized in Finnish
|
||||||
|
weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
|
||||||
|
// There is no short form of weekdays in Finnish except this 2 letter format so it is used for both 'weekdaysShort' and 'weekdaysMin'
|
||||||
|
weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
|
||||||
|
months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
|
||||||
|
// Note month names are not capitalized in Finnish
|
||||||
|
monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + ".";
|
||||||
|
},
|
||||||
|
weekStart: 1,
|
||||||
|
yearStart: 4,
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s päästä',
|
||||||
|
past: '%s sitten',
|
||||||
|
s: relativeTimeFormatter,
|
||||||
|
m: relativeTimeFormatter,
|
||||||
|
mm: relativeTimeFormatter,
|
||||||
|
h: relativeTimeFormatter,
|
||||||
|
hh: relativeTimeFormatter,
|
||||||
|
d: relativeTimeFormatter,
|
||||||
|
dd: relativeTimeFormatter,
|
||||||
|
M: relativeTimeFormatter,
|
||||||
|
MM: relativeTimeFormatter,
|
||||||
|
y: relativeTimeFormatter,
|
||||||
|
yy: relativeTimeFormatter
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH.mm',
|
||||||
|
LTS: 'HH.mm.ss',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D. MMMM[ta] YYYY',
|
||||||
|
LLL: 'D. MMMM[ta] YYYY, [klo] HH.mm',
|
||||||
|
LLLL: 'dddd, D. MMMM[ta] YYYY, [klo] HH.mm',
|
||||||
|
l: 'D.M.YYYY',
|
||||||
|
ll: 'D. MMM YYYY',
|
||||||
|
lll: 'D. MMM YYYY, [klo] HH.mm',
|
||||||
|
llll: 'ddd, D. MMM YYYY, [klo] HH.mm'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/fo.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/fo.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Faroese [fo]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'fo',
|
||||||
|
weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
|
||||||
|
months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
|
||||||
|
monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
|
||||||
|
weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D. MMMM, YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'um %s',
|
||||||
|
past: '%s síðani',
|
||||||
|
s: 'fá sekund',
|
||||||
|
m: 'ein minuttur',
|
||||||
|
mm: '%d minuttir',
|
||||||
|
h: 'ein tími',
|
||||||
|
hh: '%d tímar',
|
||||||
|
d: 'ein dagur',
|
||||||
|
dd: '%d dagar',
|
||||||
|
M: 'ein mánaður',
|
||||||
|
MM: '%d mánaðir',
|
||||||
|
y: 'eitt ár',
|
||||||
|
yy: '%d ár'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
38
node_modules/dayjs/esm/locale/fr-ca.js
generated
vendored
Normal file
38
node_modules/dayjs/esm/locale/fr-ca.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
// French (Canada) [fr-ca]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'fr-ca',
|
||||||
|
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
|
||||||
|
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
|
||||||
|
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
|
||||||
|
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
|
||||||
|
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'YYYY-MM-DD',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'dans %s',
|
||||||
|
past: 'il y a %s',
|
||||||
|
s: 'quelques secondes',
|
||||||
|
m: 'une minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'une heure',
|
||||||
|
hh: '%d heures',
|
||||||
|
d: 'un jour',
|
||||||
|
dd: '%d jours',
|
||||||
|
M: 'un mois',
|
||||||
|
MM: '%d mois',
|
||||||
|
y: 'un an',
|
||||||
|
yy: '%d ans'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/fr-ch.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/fr-ch.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// French (Switzerland) [fr-ch]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'fr-ch',
|
||||||
|
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
|
||||||
|
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
|
||||||
|
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
|
||||||
|
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD.MM.YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'dans %s',
|
||||||
|
past: 'il y a %s',
|
||||||
|
s: 'quelques secondes',
|
||||||
|
m: 'une minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'une heure',
|
||||||
|
hh: '%d heures',
|
||||||
|
d: 'un jour',
|
||||||
|
dd: '%d jours',
|
||||||
|
M: 'un mois',
|
||||||
|
MM: '%d mois',
|
||||||
|
y: 'un an',
|
||||||
|
yy: '%d ans'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
41
node_modules/dayjs/esm/locale/fr.js
generated
vendored
Normal file
41
node_modules/dayjs/esm/locale/fr.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
// French [fr]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'fr',
|
||||||
|
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
|
||||||
|
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
|
||||||
|
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
|
||||||
|
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
|
||||||
|
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
yearStart: 4,
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'dans %s',
|
||||||
|
past: 'il y a %s',
|
||||||
|
s: 'quelques secondes',
|
||||||
|
m: 'une minute',
|
||||||
|
mm: '%d minutes',
|
||||||
|
h: 'une heure',
|
||||||
|
hh: '%d heures',
|
||||||
|
d: 'un jour',
|
||||||
|
dd: '%d jours',
|
||||||
|
M: 'un mois',
|
||||||
|
MM: '%d mois',
|
||||||
|
y: 'un an',
|
||||||
|
yy: '%d ans'
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
var o = n === 1 ? 'er' : '';
|
||||||
|
return "" + n + o;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/fy.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/fy.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Frisian [fy]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'fy',
|
||||||
|
weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
|
||||||
|
months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
|
||||||
|
monthsShort: 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
|
||||||
|
weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD-MM-YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'oer %s',
|
||||||
|
past: '%s lyn',
|
||||||
|
s: 'in pear sekonden',
|
||||||
|
m: 'ien minút',
|
||||||
|
mm: '%d minuten',
|
||||||
|
h: 'ien oere',
|
||||||
|
hh: '%d oeren',
|
||||||
|
d: 'ien dei',
|
||||||
|
dd: '%d dagen',
|
||||||
|
M: 'ien moanne',
|
||||||
|
MM: '%d moannen',
|
||||||
|
y: 'ien jier',
|
||||||
|
yy: '%d jierren'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/ga.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/ga.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Irish or Irish Gaelic [ga]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'ga',
|
||||||
|
weekdays: 'Dé Domhnaigh_Dé Luain_Dé Máirt_Dé Céadaoin_Déardaoin_Dé hAoine_Dé Satharn'.split('_'),
|
||||||
|
months: 'Eanáir_Feabhra_Márta_Aibreán_Bealtaine_Méitheamh_Iúil_Lúnasa_Meán Fómhair_Deaireadh Fómhair_Samhain_Nollaig'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Dom_Lua_Mái_Céa_Déa_hAo_Sat'.split('_'),
|
||||||
|
monthsShort: 'Eaná_Feab_Márt_Aibr_Beal_Méit_Iúil_Lúna_Meán_Deai_Samh_Noll'.split('_'),
|
||||||
|
weekdaysMin: 'Do_Lu_Má_Ce_Dé_hA_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'i %s',
|
||||||
|
past: '%s ó shin',
|
||||||
|
s: 'cúpla soicind',
|
||||||
|
m: 'nóiméad',
|
||||||
|
mm: '%d nóiméad',
|
||||||
|
h: 'uair an chloig',
|
||||||
|
hh: '%d uair an chloig',
|
||||||
|
d: 'lá',
|
||||||
|
dd: '%d lá',
|
||||||
|
M: 'mí',
|
||||||
|
MM: '%d mí',
|
||||||
|
y: 'bliain',
|
||||||
|
yy: '%d bliain'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/gd.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/gd.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Scottish Gaelic [gd]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'gd',
|
||||||
|
weekdays: 'Didòmhnaich_Diluain_Dimàirt_Diciadain_Diardaoin_Dihaoine_Disathairne'.split('_'),
|
||||||
|
months: 'Am Faoilleach_An Gearran_Am Màrt_An Giblean_An Cèitean_An t-Ògmhios_An t-Iuchar_An Lùnastal_An t-Sultain_An Dàmhair_An t-Samhain_An Dùbhlachd'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Did_Dil_Dim_Dic_Dia_Dih_Dis'.split('_'),
|
||||||
|
monthsShort: 'Faoi_Gear_Màrt_Gibl_Cèit_Ògmh_Iuch_Lùn_Sult_Dàmh_Samh_Dùbh'.split('_'),
|
||||||
|
weekdaysMin: 'Dò_Lu_Mà_Ci_Ar_Ha_Sa'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'ann an %s',
|
||||||
|
past: 'bho chionn %s',
|
||||||
|
s: 'beagan diogan',
|
||||||
|
m: 'mionaid',
|
||||||
|
mm: '%d mionaidean',
|
||||||
|
h: 'uair',
|
||||||
|
hh: '%d uairean',
|
||||||
|
d: 'latha',
|
||||||
|
dd: '%d latha',
|
||||||
|
M: 'mìos',
|
||||||
|
MM: '%d mìosan',
|
||||||
|
y: 'bliadhna',
|
||||||
|
yy: '%d bliadhna'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
39
node_modules/dayjs/esm/locale/gl.js
generated
vendored
Normal file
39
node_modules/dayjs/esm/locale/gl.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// Galician [gl]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'gl',
|
||||||
|
weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
|
||||||
|
months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
|
||||||
|
monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
|
||||||
|
weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n + "\xBA";
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'H:mm',
|
||||||
|
LTS: 'H:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D [de] MMMM [de] YYYY',
|
||||||
|
LLL: 'D [de] MMMM [de] YYYY H:mm',
|
||||||
|
LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: 'en %s',
|
||||||
|
past: 'fai %s',
|
||||||
|
s: 'uns segundos',
|
||||||
|
m: 'un minuto',
|
||||||
|
mm: '%d minutos',
|
||||||
|
h: 'unha hora',
|
||||||
|
hh: '%d horas',
|
||||||
|
d: 'un día',
|
||||||
|
dd: '%d días',
|
||||||
|
M: 'un mes',
|
||||||
|
MM: '%d meses',
|
||||||
|
y: 'un ano',
|
||||||
|
yy: '%d anos'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
25
node_modules/dayjs/esm/locale/gom-latn.js
generated
vendored
Normal file
25
node_modules/dayjs/esm/locale/gom-latn.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
// Konkani Latin script [gom-latn]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'gom-latn',
|
||||||
|
weekdays: "Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split('_'),
|
||||||
|
months: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
|
||||||
|
weekStart: 1,
|
||||||
|
weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
|
||||||
|
monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
|
||||||
|
weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'A h:mm [vazta]',
|
||||||
|
LTS: 'A h:mm:ss [vazta]',
|
||||||
|
L: 'DD-MM-YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY A h:mm [vazta]',
|
||||||
|
LLLL: 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
|
||||||
|
llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
38
node_modules/dayjs/esm/locale/gu.js
generated
vendored
Normal file
38
node_modules/dayjs/esm/locale/gu.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
// Gujarati [gu]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var locale = {
|
||||||
|
name: 'gu',
|
||||||
|
weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
|
||||||
|
months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
|
||||||
|
weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
|
||||||
|
monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
|
||||||
|
weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'A h:mm વાગ્યે',
|
||||||
|
LTS: 'A h:mm:ss વાગ્યે',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D MMMM YYYY',
|
||||||
|
LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
|
||||||
|
LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
|
||||||
|
},
|
||||||
|
relativeTime: {
|
||||||
|
future: '%s મા',
|
||||||
|
past: '%s પેહલા',
|
||||||
|
s: 'અમુક પળો',
|
||||||
|
m: 'એક મિનિટ',
|
||||||
|
mm: '%d મિનિટ',
|
||||||
|
h: 'એક કલાક',
|
||||||
|
hh: '%d કલાક',
|
||||||
|
d: 'એક દિવસ',
|
||||||
|
dd: '%d દિવસ',
|
||||||
|
M: 'એક મહિનો',
|
||||||
|
MM: '%d મહિનો',
|
||||||
|
y: 'એક વર્ષ',
|
||||||
|
yy: '%d વર્ષ'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
78
node_modules/dayjs/esm/locale/he.js
generated
vendored
Normal file
78
node_modules/dayjs/esm/locale/he.js
generated
vendored
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
// Hebrew [he]
|
||||||
|
import dayjs from '../index';
|
||||||
|
var texts = {
|
||||||
|
s: 'מספר שניות',
|
||||||
|
ss: '%d שניות',
|
||||||
|
m: 'דקה',
|
||||||
|
mm: '%d דקות',
|
||||||
|
h: 'שעה',
|
||||||
|
hh: '%d שעות',
|
||||||
|
hh2: 'שעתיים',
|
||||||
|
d: 'יום',
|
||||||
|
dd: '%d ימים',
|
||||||
|
dd2: 'יומיים',
|
||||||
|
M: 'חודש',
|
||||||
|
MM: '%d חודשים',
|
||||||
|
MM2: 'חודשיים',
|
||||||
|
y: 'שנה',
|
||||||
|
yy: '%d שנים',
|
||||||
|
yy2: 'שנתיים'
|
||||||
|
};
|
||||||
|
|
||||||
|
function relativeTimeFormatter(number, withoutSuffix, key) {
|
||||||
|
var text = texts[key + (number === 2 ? '2' : '')] || texts[key];
|
||||||
|
return text.replace('%d', number);
|
||||||
|
}
|
||||||
|
|
||||||
|
var locale = {
|
||||||
|
name: 'he',
|
||||||
|
weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
|
||||||
|
weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
|
||||||
|
weekdaysMin: 'א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳'.split('_'),
|
||||||
|
months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
|
||||||
|
monthsShort: 'ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ'.split('_'),
|
||||||
|
relativeTime: {
|
||||||
|
future: 'בעוד %s',
|
||||||
|
past: 'לפני %s',
|
||||||
|
s: relativeTimeFormatter,
|
||||||
|
m: relativeTimeFormatter,
|
||||||
|
mm: relativeTimeFormatter,
|
||||||
|
h: relativeTimeFormatter,
|
||||||
|
hh: relativeTimeFormatter,
|
||||||
|
d: relativeTimeFormatter,
|
||||||
|
dd: relativeTimeFormatter,
|
||||||
|
M: relativeTimeFormatter,
|
||||||
|
MM: relativeTimeFormatter,
|
||||||
|
y: relativeTimeFormatter,
|
||||||
|
yy: relativeTimeFormatter
|
||||||
|
},
|
||||||
|
ordinal: function ordinal(n) {
|
||||||
|
return n;
|
||||||
|
},
|
||||||
|
format: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D [ב]MMMM YYYY',
|
||||||
|
LLL: 'D [ב]MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
|
||||||
|
l: 'D/M/YYYY',
|
||||||
|
ll: 'D MMM YYYY',
|
||||||
|
lll: 'D MMM YYYY HH:mm',
|
||||||
|
llll: 'ddd, D MMM YYYY HH:mm'
|
||||||
|
},
|
||||||
|
formats: {
|
||||||
|
LT: 'HH:mm',
|
||||||
|
LTS: 'HH:mm:ss',
|
||||||
|
L: 'DD/MM/YYYY',
|
||||||
|
LL: 'D [ב]MMMM YYYY',
|
||||||
|
LLL: 'D [ב]MMMM YYYY HH:mm',
|
||||||
|
LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
|
||||||
|
l: 'D/M/YYYY',
|
||||||
|
ll: 'D MMM YYYY',
|
||||||
|
lll: 'D MMM YYYY HH:mm',
|
||||||
|
llll: 'ddd, D MMM YYYY HH:mm'
|
||||||
|
}
|
||||||
|
};
|
||||||
|
dayjs.locale(locale, null, true);
|
||||||
|
export default locale;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user