Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hvlxh committed Jul 21, 2023
1 parent 4ea5534 commit 91bb996
Show file tree
Hide file tree
Showing 26 changed files with 335 additions and 2,819 deletions.
13 changes: 0 additions & 13 deletions .eslintrc.json

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/npm-publish-github-packages.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
.vscode
build
node_modules
4 changes: 1 addition & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
examples
assets
.vscode
examples
6 changes: 0 additions & 6 deletions .prettierrc.json

This file was deleted.

7 changes: 0 additions & 7 deletions LICENSE

This file was deleted.

32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@

<br />
<div align="center">
<a href="https://github.com/hvlxh/better-dialog">
<a href="https://github.com/hvlxh/node-dialogs">
<img src="assets/icon.png" alt="Image" width=200>
</a>

<h3 align="center">better-dialog</h3>
<h3 align="center">node-dialogs</h3>

<p align="center">
A way to create windows forums (also unix) easier!
A way to create windows forums (currenting supporting windows only) easier!
<br />
<a href="https://github.com/hvlxh/better-dialog/issues">Report Bug</a>
<a href="https://github.com/hvlxh/node-dialogs/issues">Report Bug</a>
·
<a href="https://github.com/hvlxh/better-dialog/issues">Request Feature</a>
<a href="https://github.com/hvlxh/node-dialogs/issues">Request Feature</a>
.
<a href="https://github.com/hvlxh/better-dialog/pulls">Pull Request</a>
<a href="https://github.com/hvlxh/node-dialogs/pulls">Pull Request</a>
</p>
</div>

Expand Down Expand Up @@ -49,13 +49,13 @@ Distributed under the MIT License. See `LICENSE` for more information.
<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->

[contributors-shield]: https://img.shields.io/github/contributors/hvlxh/better-dialog.svg?style=for-the-badge
[contributors-url]: https://github.com/hvlxh/better-dialog/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/hvlxh/better-dialog.svg?style=for-the-badge
[forks-url]: https://github.com/hvlxh/better-dialog/network/members
[stars-shield]: https://img.shields.io/github/stars/hvlxh/better-dialog.svg?style=for-the-badge
[stars-url]: https://github.com/hvlxh/better-dialog/stargazers
[issues-shield]: https://img.shields.io/github/issues/hvlxh/better-dialog.svg?style=for-the-badge
[issues-url]: https://github.com/hvlxh/better-dialog/issues
[license-shield]: https://img.shields.io/github/license/hvlxh/better-dialog.svg?style=for-the-badge
[license-url]: https://github.com/hvlxh/better-dialog/blob/master/LICENSE
[contributors-shield]: https://img.shields.io/github/contributors/hvlxh/node-dialogs.svg?style=for-the-badge
[contributors-url]: https://github.com/hvlxh/node-dialogs/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/hvlxh/node-dialogs.svg?style=for-the-badge
[forks-url]: https://github.com/hvlxh/node-dialogs/network/members
[stars-shield]: https://img.shields.io/github/stars/hvlxh/node-dialogs.svg?style=for-the-badge
[stars-url]: https://github.com/hvlxh/node-dialogs/stargazers
[issues-shield]: https://img.shields.io/github/issues/hvlxh/node-dialogs.svg?style=for-the-badge
[issues-url]: https://github.com/hvlxh/node-dialogs/issues
[license-shield]: https://img.shields.io/github/license/hvlxh/node-dialogs.svg?style=for-the-badge
[license-url]: https://github.com/hvlxh/node-dialogs/blob/master/LICENSE
Binary file removed assets/icon.png
Binary file not shown.
15 changes: 15 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"targets": [
{
"target_name": "dialog",
"sources": ["src/show_dialog.cpp"],
"defines": ["NAPI_CPP_EXCEPTIONS"],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
]
}
]
}
41 changes: 0 additions & 41 deletions examples/advanced.js

This file was deleted.

14 changes: 0 additions & 14 deletions examples/basic.js

This file was deleted.

11 changes: 11 additions & 0 deletions examples/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { Dialog } = require('../index')
const { ButtonClickedTypes } = require('../src/DialogTypes')

const dialog = new Dialog({
title: "Title",
message: "Hello"
})
const value = dialog.run()
if(value === ButtonClickedTypes.Ok) {
dialog.run()
}
58 changes: 0 additions & 58 deletions index.d.ts

This file was deleted.

22 changes: 7 additions & 15 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
const {
DialogBtnTypes,
DialogDefaultBtnTypes,
DialogType,
DialogTypes,
DialogButtons,
} = require('./root/src/DialogTypes')
const { Dialog } = require('./root/src/Dialog')
const Dialog = require('./src/Dialog')
const { DefaultButtonTypes, ButtonTypes, IconTypes } = require('./src/DialogTypes')

module.exports = {
Dialog,
DialogTypes,
DialogType,
DialogDefaultBtnTypes,
DialogBtnTypes,
DialogButtons,
}
Dialog,
ButtonTypes,
IconTypes,
DefaultButtonTypes
}
15 changes: 0 additions & 15 deletions jsconfig.json

This file was deleted.

Loading

0 comments on commit 91bb996

Please sign in to comment.