-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
302 changed files
with
118,726 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
############################################################################### | ||
# Set default behavior to automatically normalize line endings. | ||
############################################################################### | ||
* text=auto | ||
|
||
############################################################################### | ||
# Set default behavior for command prompt diff. | ||
# | ||
# This is need for earlier builds of msysgit that does not have it on by | ||
# default for csharp files. | ||
# Note: This is only used by command line | ||
############################################################################### | ||
#*.cs diff=csharp | ||
|
||
############################################################################### | ||
# Set the merge driver for project and solution files | ||
# | ||
# Merging from the command prompt will add diff markers to the files if there | ||
# are conflicts (Merging from VS is not affected by the settings below, in VS | ||
# the diff markers are never inserted). Diff markers may cause the following | ||
# file extensions to fail to load in VS. An alternative would be to treat | ||
# these files as binary and thus will always conflict and require user | ||
# intervention with every merge. To do so, just uncomment the entries below | ||
############################################################################### | ||
#*.sln merge=binary | ||
#*.csproj merge=binary | ||
#*.vbproj merge=binary | ||
#*.vcxproj merge=binary | ||
#*.vcproj merge=binary | ||
#*.dbproj merge=binary | ||
#*.fsproj merge=binary | ||
#*.lsproj merge=binary | ||
#*.wixproj merge=binary | ||
#*.modelproj merge=binary | ||
#*.sqlproj merge=binary | ||
#*.wwaproj merge=binary | ||
|
||
############################################################################### | ||
# behavior for image files | ||
# | ||
# image files are treated as binary by default. | ||
############################################################################### | ||
#*.jpg binary | ||
#*.png binary | ||
#*.gif binary | ||
|
||
############################################################################### | ||
# diff behavior for common document formats | ||
# | ||
# Convert binary document formats to text before diffing them. This feature | ||
# is only available from the command line. Turn it on by uncommenting the | ||
# entries below. | ||
############################################################################### | ||
#*.doc diff=astextplain | ||
#*.DOC diff=astextplain | ||
#*.docx diff=astextplain | ||
#*.DOCX diff=astextplain | ||
#*.dot diff=astextplain | ||
#*.DOT diff=astextplain | ||
#*.pdf diff=astextplain | ||
#*.PDF diff=astextplain | ||
#*.rtf diff=astextplain | ||
#*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
bower_components | ||
node_modules | ||
.idea | ||
.vs | ||
obj | ||
bin | ||
site | ||
*.user | ||
*.csproj | ||
*.sln | ||
*.nupkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/assets | ||
/_includes | ||
/_layouts | ||
/.gitignore | ||
/node_modules | ||
/Makefile | ||
/test | ||
*.log | ||
*.swp | ||
*~ | ||
*.tgz | ||
/site | ||
*.user | ||
*.csproj | ||
*.sln | ||
*.nupkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/docs/tempus-dominus* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"htmlWhitespaceSensitivity": "ignore" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
getdatepicker.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#This is for the old v4. Once there's a bit more done for the new v6, I'll update this. | ||
|
||
# Submitting Issues | ||
|
||
If you are submitting a bug, please test and/or fork [this jsfiddle](http://jsfiddle.net/Eonasdan/0Ltv25o8/) demonstrating the issue. Code issues and fringe case bugs that do not include a jsfiddle (or similar) will be closed. | ||
|
||
Issues that are submitted without a description (title only) will be closed with no further explanation. | ||
|
||
# Contributing code | ||
|
||
To contribute, fork the library and install grunt and dependencies. You need [node](http://nodejs.org/); use [nvm](https://github.com/creationix/nvm) or [nenv](https://github.com/ryuone/nenv) to install it. | ||
|
||
```bash | ||
git clone https://github.com/Eonasdan/bootstrap-datetimepicker.git | ||
cd bootstrap-datetimepicker | ||
npm install -g grunt-cli | ||
npm install | ||
git checkout development # all patches against development branch, please! | ||
grunt # this runs tests and jshint | ||
``` | ||
|
||
# Very important notes | ||
|
||
- **Pull requests to the `master` branch will be closed.** Please submit all pull requests to the `development` branch. | ||
- **Do not include the minified files in your pull request.** Don't worry, we'll build them when we cut a release. | ||
- Pull requests that do not include a description (title only) and the following will be closed: | ||
- What the change does | ||
- A use case (for new features or enhancements) | ||
|
||
# Grunt tasks | ||
|
||
We use Grunt for managing the build. Here are some useful Grunt tasks: | ||
|
||
- `grunt` The default task lints the code and runs the tests. You should make sure you do this before submitting a PR. | ||
- `grunt build` Compiles the less stylesheet and minifies the javascript source in build directory. | ||
- `grunt build:travis` Compliles and runs the jasmine/travis tests. **All PR's MUST pass tests in place** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Please read this [blog post](https://eonasdan.com/posts/state-of-my-picker). | ||
|
||
Issues relating to the v4 will be closed and locked. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2021 Jonathan Peterson (@Eonasdan) | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Please read this [blog post](https://eonasdan.com/posts/state-of-my-picker). | ||
|
||
PRs relating to the v4 will be closed and locked. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/R6R53OEFF) | ||
|
||
# Tempus Dominus Date/Time Picker v6.0.0-alpha1 | ||
|
||
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. | ||
|
||
# Alpha State | ||
The alpha version is working in my tests. 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). | ||
|
||
# Community | ||
|
||
Need help or want to discuss some? Join [the discord](https://discord.gg/BHS9jw9YPf). | ||
|
||
Please also take a look at the [discussions](https://github.com/Eonasdan/tempus-dominus/discussions). There are several RFCs (Request For Comment) open and you can help shape the future of the picker by participating in these discussions. | ||
|
||
|
||
## Building | ||
|
||
Run `npm i` to install needed packages. | ||
|
||
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. | ||
|
||
## Running | ||
|
||
You can run `npm start` which will start a browser-sync server. Navigate to `http://localhost:3000/` to view the docs. Note that 3000 is the default port, yours might be different. | ||
|
||
## Watchers | ||
Do not run `npm start` and the watchers at the same time. | ||
|
||
Browser-sync will watch for html, css, and js changes. | ||
|
||
Run `npm run watchers` to watch changes. This runs browser-sync, the build and watchers for the docs, styles, and typescript. | ||
|
||
## Where do you use this? | ||
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. | ||
|
||
## Priority support is available at an hourly rate. | ||
|
||
If you have an urgent request, bug or need installation help, please contact in the discord server. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
const fs = require('fs'); | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Browser-sync config file | ||
|-------------------------------------------------------------------------- | ||
| | ||
| For up-to-date information about the options: | ||
| http://www.browsersync.io/docs/options/ | ||
| | ||
| There are more options than you see here, these are just the ones that are | ||
| set internally. See the website for more info. | ||
| | ||
*/ | ||
module.exports = { | ||
ui: false, | ||
files: ['docs/**.*'], | ||
watchEvents: ['change'], | ||
watch: true, | ||
ignore: ['build'], | ||
single: false, | ||
watchOptions: { | ||
ignoreInitial: true, | ||
}, | ||
server: "docs", | ||
https: { | ||
key: 'C:\\projects\\https\\localhost.key', | ||
cert: 'C:\\projects\\https\\localhost.crt', | ||
}, | ||
proxy: false, | ||
port: 3000, | ||
middleware: false, | ||
serveStatic: [], | ||
ghostMode: { | ||
clicks: true, | ||
scroll: true, | ||
location: true, | ||
forms: { | ||
submit: true, | ||
inputs: true, | ||
toggles: true, | ||
}, | ||
}, | ||
logLevel: 'info', | ||
logPrefix: 'Browsersync', | ||
logConnections: false, | ||
logFileChanges: true, | ||
logSnippet: true, | ||
rewriteRules: [], | ||
open: false, | ||
browser: 'default', | ||
cors: false, | ||
xip: false, | ||
hostnameSuffix: false, | ||
reloadOnRestart: false, | ||
notify: true, | ||
scrollProportionally: true, | ||
scrollThrottle: 0, | ||
scrollRestoreTechnique: 'window.name', | ||
scrollElements: [], | ||
scrollElementMapping: [], | ||
reloadDelay: 0, | ||
reloadDebounce: 500, | ||
reloadThrottle: 0, | ||
plugins: [], | ||
injectChanges: true, | ||
startPath: null, | ||
minify: true, | ||
host: null, | ||
localOnly: false, | ||
codeSync: true, | ||
timestamps: true, | ||
clientEvents: [ | ||
'scroll', | ||
'scroll:element', | ||
'input:text', | ||
'input:toggles', | ||
'form:submit', | ||
'form:reset', | ||
'click', | ||
], | ||
socket: { | ||
socketIoOptions: { | ||
log: false, | ||
}, | ||
socketIoClientConfig: { | ||
reconnectionAttempts: 50, | ||
}, | ||
path: '/browser-sync/socket.io', | ||
clientPath: '/browser-sync', | ||
namespace: '/browser-sync', | ||
clients: { | ||
heartbeatTimeout: 5000, | ||
}, | ||
}, | ||
tagNames: { | ||
less: 'link', | ||
scss: 'link', | ||
css: 'link', | ||
jpg: 'img', | ||
jpeg: 'img', | ||
png: 'img', | ||
svg: 'img', | ||
gif: 'img', | ||
js: 'script', | ||
}, | ||
injectNotification: false, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const fs = require('fs'); | ||
|
||
function copy() { | ||
[ | ||
{ | ||
source: './src/js/jQuery-provider.js', destination: './dist/js/jQuery-provider.js' | ||
} | ||
].forEach(file => { | ||
console.log(`copying ${file.source} to ${file.destination}`); | ||
fs.copyFileSync(file.source, file.destination) | ||
}); | ||
} | ||
|
||
copy(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import typescript from '@rollup/plugin-typescript'; | ||
|
||
export default { | ||
input: 'src/js/tempus-dominus.ts', | ||
output: { | ||
dir: 'dist/js', | ||
format: 'umd', | ||
name: 'tempusDominus', | ||
sourcemap: true, | ||
globals: { | ||
'@popperjs/core': 'Popper', | ||
}, | ||
}, | ||
external: ['@popperjs/core'], | ||
plugins: [typescript()], | ||
}; |
Oops, something went wrong.