sweetalert2 / sweetalert2.github.io Goto Github PK
View Code? Open in Web Editor NEWDocumentation for SweetAlert2
Home Page: https://sweetalert2.github.io
Documentation for SweetAlert2
Home Page: https://sweetalert2.github.io
devDependency
@babel/preset-env was updated from 7.5.2
to 7.5.3
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.
babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Swal.getIcon()
was added in sweetalert2/sweetalert2#1443
Swal.getIcons()
was implemented before but never documented
The new param from https://github.com/sweetalert2/sweetalert2/releases/tag/v7.24.0
As reported on sweetalert2/sweetalert2#1335 the OK button is shown for few milliseconds before it gets replaced by the loading icon. Move the implementation in this example to the onBeforeOpen
.
Connected to sweetalert2/sweetalert2#1441
.getValidationMessage()
has been added in sweetalert2/sweetalert2#1227
@limonte Now the version drop-down doesn't work on the v7 page.. I suggest moving this code into the html files:
sweetalert2.github.io/src/app.js
Lines 761 to 770 in b7374b7
The idea is to have the build process here pull markdown from each library repo, for the topics like #configuration and #methods which are duplicated here and (1) are updated more frequently and (2) don't have a use for js/dhtml .
This would eliminate the duplication of effort and fix a lot of the pain of the disadvantage i describe here - sweetalert2/sweetalert2#711 (comment)
We would probably want to split up our documentation into multiple .md
files though.
sweetalert2/sweetalert2#711 (comment)
Idea: It would be cool to use something like Codemirror for examples, but where you can execute/modify/execute the code. I absolutely <3 Semantic UI React's documentation site for this. https://react.semantic-ui.com/elements/button#button-example-labeled There are some other nifty features for the code samples there too.
All those nifty features would be nice-to-haves, but I think we really should have something that de-duplicates the code for viewing vs executing.
Anyone have a suggestion for a library to leverage for this?
Contributors have to insert html tags into the code samples manually for syntax highlighting. Some problems with this:
Part of #1
We have v7.html
now as of 72a2787, but no src/app-v7.js
. The v7.html
uses the the same js as index.html
(source: src/app.js
, built: dist/bundle.js
).
I assume we want to be able to update the examples for newer versions. We can't currently do that without breaking the v7 page (representation/displayed code would not match executed code)
For example, the RTL example on the v7 page is completely broken because, although the displayed code is valid for v7, the executed code is only valid for v8.
I might suggest reverting 72a2787 and reopening #68 until we get a working solution.
Updates from "Feature/object oriented" PR in core repo sweetalert2/sweetalert2#1036
Connected to sweetalert2/sweetalert2#1414
Connected to sweetalert2/sweetalert2#1177
Connected to sweetalert2/sweetalert2#1177
1.1.0
to 1.1.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
@sweetalert2/stylelint-config is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 2 commits.
310910c
chore(release): 1.1.1 [skip ci]
b0b2956
fix: remove unused declaration-empty-line-before rule, add more tests
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Anyone thought about using a static site generator for this?
It might help with a few things:
It is kind of overwhelming how many options there are though... We can probably limit our options to those projects that are for Node.js.
Is this a good idea? If so, can anyone recommend a particular static site generator?
Mixins are probably the best recent feature in SweetAlert2, thanks, @zenflow π»
Related release: https://github.com/sweetalert2/sweetalert2/releases/tag/v7.16.0
There's the Methods section: https://sweetalert2.github.io/#methods but I feel like swal.mixin()
is too awesome to be there.
@zenflow do you maybe have any idea how can we split the Methods section into several subsections?
From https://developers.google.com/web/fundamentals/app-install-banners/
The mini-infobar is a Chrome UI component and is not controllable by the site.
4.36.0
to 4.36.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 3 commits.
92caa5d
4.36.1
4cac066
Merge pull request #9425 from webpack/bugfix/no-resolve-options
1f966eb
fix #9424
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
inputValue
now could be a Promise (sweetalert2/sweetalert2#1025)
Related release: https://github.com/sweetalert2/sweetalert2/releases/tag/v7.17.0
@gverni said that he will submit the PR with the documentation
Connected to sweetalert2/sweetalert2#1510
I think that with all the new APIs and example, the documentation page is becoming quite long and heavy (and maybe confusing). Moreover I was thinking to add some more advanced usage examples, such as:
Plus maybe we can add some of the example coming from stackoverflow solutions.
If we all agree on adding these, then the documentation page may become very heavy, so we can break it into few pages, such as:
Collaborators, what do you think? I can work on a proposal if you want to see it before approving.
I use sweetalert2 in projects quite regularly. There have been several occasions where version updates cause compatibility issues and I spend hours going through each of my projects to resolve them. I believe that in many cases it makes more sense for me to keep my existing version of sweetalert2 in place. I would do this, but that is challenging due to the fact that there is no longer documentation for me to reference for that particular version.
Am I missing this somewhere? Thanks!
v8
has been released: https://github.com/sweetalert2/sweetalert2/releases/tag/v8.0.0
Make changes accordingly to new release
Related issue sweetalert2/sweetalert2#1386
bundle.js file did not get updated with the changes in 6b29bbf. It still contains the non-DRY code and the backdrop
set to false
Connected to sweetalert2/sweetalert2#1441
Connected to sweetalert2/sweetalert2#1441
By making the docs work in IE11 we will prevent users' confusions about supporting IE11 ( sweetalert2/sweetalert2#536)
Also, it's handy to quickly test docs page with IE11 and ensure everything works in it like in other browsers.
If the build
script is execute, this is the output:
No configuration file found and no output filename configured via CLI option.
A configuration file could be named 'webpack.config.js' in the current directory.
Use --help to display the CLI options.
Connected to sweetalert2/sweetalert2#1084
extraParams
was introduced in sweetalert2/sweetalert2@c71b4c9
It's passed as the second argument to
The "Timer functions example" is too big IMO to be in https://sweetalert2.github.io
@gverni Do you agree to move it to sweetalert2-examples
?
This causes trouble for first-time contributors (example: #9 contributor had to go back and make another commit to make the same change to the same code in another place). I also find it annoying.
4.35.3
to 4.36.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
append
option now supports the default placeholders in addition to [url]
"..."
when overriding options.The new version differs by 42 commits.
95d21bb
4.36.0
aa1216c
Merge pull request #9422 from webpack/feature/dot-dot-dot-merge
b3ec775
improve merging of resolve and parsing options
53a5ae2
Merge pull request #9419 from vankop/remove-valid-jsdoc-rule
ab75240
Merge pull request #9413 from webpack/dependabot/npm_and_yarn/ajv-6.10.2
0bdabf4
Merge pull request #9418 from webpack/dependabot/npm_and_yarn/eslint-plugin-jsdoc-15.5.2
f207cdc
remove valid jsdoc rule in favour of eslint-plugin-jsdoc
31333a6
chore(deps-dev): bump eslint-plugin-jsdoc from 15.3.9 to 15.5.2
036adf0
Merge pull request #9417 from webpack/dependabot/npm_and_yarn/eslint-plugin-jest-22.8.0
37d4480
Merge pull request #9411 from webpack/dependabot/npm_and_yarn/simple-git-1.121.0
ce2a183
chore(deps-dev): bump eslint-plugin-jest from 22.7.2 to 22.8.0
0beeb7e
Merge pull request #9391 from vankop/create-hash-typescript
bf1a24a
#9391 resolve super call discussion
bd7d95b
#9391 resolve discussions, AbstractMethodError
4190638
chore(deps): bump ajv from 6.10.1 to 6.10.2
There are 42 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Connected to sweetalert2/sweetalert2#1112
Add documentation and sample code for API introduced by:
Explicitly state that inputValidator
and preConfirm
can be either synchronous (return a value), or asynchronous (Promises) and always resolve in case of promises.
For inputValidator
the returned or resolved value can be:
undefined
, null
, false
) for indicating successFor preConfirm
the returned or resolved value can be:
false
to prevent a popup from closingresult.value
of Swal.fire()
undefined
to keep the default result.value
Connected to sweetalert2/sweetalert2#1117
validationMessage
has been added in sweetalert2/sweetalert2#1227
Related release: https://github.com/sweetalert2/sweetalert2/releases/tag/v7.17.0
@Baune8D could you please submit the PR with the documentation for onAfterClose
?
Add variables from https://github.com/sweetalert2/sweetalert2/blob/master/src/variables.scss should be documented
After documenting SASS variables we should consider them as the part of public API and apply semver rules when adding/changing anything in variables.scss
Currently everything is on one page, with no way to navigate to different sections. In order to find the section you're looking for, you will probably have to do a lot of scrolling and scanning. The site would be improved a lot if there was a navbar to fix this.
Seems this was the main reason for opening sweetalert2/sweetalert2#711
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.