Skip to content

Commit

Permalink
chore(utils): remove dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmnthn committed Mar 22, 2024
1 parent 5025e44 commit b434ba7
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 24 deletions.
11 changes: 4 additions & 7 deletions packages/elements/components/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,15 @@ watch(escape, () => escape.value && emit('close'))
>
<transition name="centered-appear">
<div
v-if="prop.show"
class="fixed inset-0 w-full h-full z-20 bg-originalBlack bg-opacity-10 overflow-y-auto hidden-scrollbar duration-300"
style="backdrop-filter: blur(10px)"
@click="emit('close')"
style="backdrop-filter: blur(10px)" @click="emit('close')"
/>
</transition>
<transition name="centered-appear" appear leave>
<div
v-if="show"
class="relative mx-auto overflow-y-auto max-h-1/1.1 p-14"
:class="[...prop.classes]"
role="dialog"
aria-label="Modal"
v-if="show" class="relative mx-auto overflow-y-auto max-h-1/1.1 p-14" :class="[...prop.classes]"
role="dialog" aria-label="Modal"
>
<div class="relative shadow-lg w-full z-20">
<slot />
Expand Down
19 changes: 14 additions & 5 deletions packages/utils/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# Utils

Common utils functions for
Zero Dependency & precision perfect Utils for BigInt manipulation and formatting for Exchange and DeFi applications.

- String/Number formatters
- Common Web3 utils
## Installation

## Usage
```bash
pnpm add @hubble-exchange/utils

Install `@ethersproject/bignumber` and `@ethersproject/units` to your project these are used as external packages
# or

yarn add @hubble-exchange/utils

# or

npm install @hubble-exchange/utils
```

[Check out TSDocs.dev for the full documentation](https://tsdocs.dev/docs/@hubble-exchange/utils)
1 change: 0 additions & 1 deletion packages/utils/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export default defineBuildConfig({
entries: ['./src/index', './src/mongo', './src/pagerduty'],
declaration: true,
clean: true,
externals: ['@ethersproject/bignumber', '@ethersproject/units'],
rollup: {
emitCJS: true,
},
Expand Down
6 changes: 2 additions & 4 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@hubble-exchange/utils",
"type": "module",
"version": "1.4.0",
"description": "Utils for Hubble Exchange app and common utils DApp needs",
"description": "Zero dependencies utils for A DEX DApp with perfect precision and performance",
"license": "ISC",
"homepage": "https://github.com/hubble-exchange/content#readme",
"repository": {
Expand Down Expand Up @@ -41,16 +41,14 @@
"dist"
],
"engines": {
"node": "^14.16.0 || ^16.11.0 || ^17.0.0 || ^18.0.0"
"node": "^14.16.0 || ^16.11.0 || ^17.0.0 || ^18.0.0 || ^20.0.0"
},
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub",
"test": "vitest --run"
},
"dependencies": {
"@ethersproject/bignumber": "^5.7.0",
"@ethersproject/units": "^5.7.0",
"@pagerduty/pdjs": "^2.2.4",
"mongodb": "^4.13.0"
}
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b434ba7

Please sign in to comment.