Skip to content

Commit 4dbbd20

Browse files
Eonasdancarlos-eablankse
authored
Development (#2740)
* Fix typo in docs (#2718) * Feature/less code smell (#2726) * ran prettier * prettier pre-commit hook * eslint * eslint * eslint fix * prettier again * fixing eslint complaints * adding eslint to pre commit hook * updating vite config and remove generated coverage from repo * remove generated coverage from repo * Fix typo in docs (#2718) * fix coveralls Co-authored-by: carlos-ea <[email protected]> * 2630 prompttimeondatechange option (#2731) * resolves #2630 * resolves #2720 (#2732) fixes #2720 * Fixes #2600 (#2733) Fixes #2600 * CustomDateFormat Plugin prefers englishFormat instead of localized format (#2724) * CustomDateFormat Plugin prefers englishFormat instead of localized format * Fix de dateFormats * Fix all locales * Fix typehints in german tooltips * Fix: replaceExtendedTokens makes 2-digits to 1-digits * Fix style * 2719 locales are not properly importable in typescript (#2737) * playing with jsdom * seems to work * working on tests * fixes #2719. * rollback * add locales/plugin source and types to npm * put version back * update cdn references * fix #2621 by added min-height and simplifying rebuild function (#2738) * fixes #2672 * release 6.2.8 * release 6.2.8 Co-authored-by: carlos-ea <[email protected]> Co-authored-by: Sebastian Blank <[email protected]>
1 parent 5e04fcc commit 4dbbd20

File tree

170 files changed

+11617
-9794
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+11617
-9794
lines changed

.eslintignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
**/dist/
2+
**/docs/
3+
**/coverage/
4+
**/.husky/
5+
**/types/
6+
**/build/
7+
8+
#temporary
9+
/test/test-import.ts

.eslintrc.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
env:
2+
browser: true
3+
es2021: true
4+
extends:
5+
- eslint:recommended
6+
- plugin:@typescript-eslint/recommended
7+
- prettier
8+
overrides: []
9+
parser: '@typescript-eslint/parser'
10+
parserOptions:
11+
ecmaVersion: latest
12+
sourceType: module
13+
plugins:
14+
- '@typescript-eslint'
15+
rules:
16+
linebreak-style:
17+
- error
18+
- unix

.github/workflows/main.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
1-
# This is a basic workflow to help you get started with Actions
2-
31
name: CI
4-
5-
# Controls when the workflow will run
62
on:
7-
# Triggers the workflow on push or pull request events but only for the main branch
83
push:
94
branches: [ master ]
105
pull_request:
116
branches: [ master ]
12-
13-
# Allows you to run this workflow manually from the Actions tab
147
workflow_dispatch:
15-
16-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
178
jobs:
18-
# This workflow contains a single job called "build"
199
build:
20-
# The type of runner that the job will run on
2110
runs-on: ubuntu-latest
22-
23-
# Steps represent a sequence of tasks that will be executed as part of the job
2411
steps:
2512
- name: Perform Checkout
2613
uses: actions/checkout@v2
2714
- name: Setup Node
2815
uses: actions/setup-node@v2
2916
with:
30-
node-version: '16'
17+
node-version: '18'
3118
- name: Npm install
3219
run: npm ci
20+
- name: Unit tests
21+
run: npm run test:coverage
3322
- name: Build docs
3423
run: npm run docs
24+
# Send coverage report to Coveralls
25+
- name: Coveralls
26+
uses: coverallsapp/github-action@master
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [ development ]
5+
pull_request:
6+
branches: [ development ]
7+
workflow_dispatch:
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Perform Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup Node
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: '18'
18+
- name: Npm install
19+
run: npm ci
20+
- name: Unit tests
21+
run: npm run test:coverage
22+
# Send coverage report to Coveralls
23+
- name: Coveralls
24+
uses: coverallsapp/github-action@master
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ site
1212
src/docs/partials/examples/test.html
1313
/docs/
1414
/dist/plugins/examples/
15-
coverage/tmp
15+
coverage
1616

1717
.DS_Store

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/_layouts
44
/.gitignore
55
/node_modules
6-
/Makefile
76
/test
87
*.log
98
*.swp
@@ -13,4 +12,4 @@
1312
*.user
1413
*.csproj
1514
*.sln
16-
*.nupkg
15+
*.nupkg

.prettierignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
src/docs/tempus-dominus*
1+
dist
2+
docs
3+
node_modules
4+
.github
5+
coverage

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"singleQuote": true,
33
"tabWidth": 2,
4-
"htmlWhitespaceSensitivity": "ignore"
4+
"htmlWhitespaceSensitivity": "ignore",
5+
"endOfLine": "lf"
56
}

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
[![Rate on Openbase](https://badges.openbase.com/js/rating/@eonasdan/tempus-dominus.svg)](https://openbase.com/js/@eonasdan/tempus-dominus?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge)
44

5-
# Tempus Dominus Date/Time Picker v6.2.7
5+
# Tempus Dominus Date/Time Picker v6.2.8
66

77
Tempus Dominus is a powerful and robust date time picker for javascript. Version 6 is another major rewrite over the previous version. V6 is written with modern browsers in mind and is written in typescript. Bootstrap, momentjs and jQuery are no longer required dependencies. Popper2 is all that is required for the picker to position correctly. If you still require jQuery (seriously, you should move off that asap) there's a jQuery provider that wraps the native js functions.
88

99
# Ready State
10-
The beta is here. There's still plenty of things that can be worked on and you can see the [rough roadmap here](https://github.com/Eonasdan/tempus-dominus/projects).
10+
11+
The beta is here. There's still plenty of things that can be worked on and you can see the [rough roadmap here](https://github.com/Eonasdan/tempus-dominus/projects).
1112

1213
# Community
1314

@@ -19,7 +20,7 @@ Please also take a look at the [discussions](https://github.com/Eonasdan/tempus-
1920

2021
## Building
2122

22-
Run `npm i` to install needed packages.
23+
Run `npm i` to install needed packages.
2324

2425
The docs folder contains the generated documentation site, don't modify this directly as it will be overwritten on build. The dist folder contains the built js/css files.
2526

@@ -28,14 +29,15 @@ The docs folder contains the generated documentation site, don't modify this dir
2829
You can run `npm run serve` which will start a browser-sync server. Navigate to `http://localhost:3001/` to view the docs.
2930

3031
## Watching for changes
32+
3133
Do not run `npm run serve` at the same time.
3234

3335
Run `npm start`. This runs browser-sync, the build and watchers for the docs, styles, and typescript.
3436

3537
## Where do you use this?
38+
3639
I'd love to know if your public site is using this plugin and list your logo on the documentation site. Leave [create a discussion](https://github.com/Eonasdan/tempus-dominus/discussions/categories/show-your-love) and let me know.
3740

3841
## Priority support is available at an hourly rate.
3942

4043
If you have an urgent request, bug or need installation help, please contact in the discord server.
41-

0 commit comments

Comments
 (0)