Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(port): add nova #148

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16,828 changes: 16,828 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions packages/nova/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<p align="center">
<img src="https://github.com/daltonmenezes/assets/blob/master/images/aura-theme/new-heading.png?raw=true" alt="Aura Theme" width="70%" />
</p>

<p align="center">
✨ A beautiful dark theme for Nova and another apps
<br><br>

<!-- Patreon -->
<a href="https://www.patreon.com/daltonmenezes">
<img alt="patreon url" src="https://img.shields.io/badge/support%20on-patreon-1C1E26?style=for-the-badge&labelColor=1C1E26&color=61ffca">
</a>

<!-- version -->
<a href="#">
<img alt="version" src="https://img.shields.io/badge/version%20-v1.0.0-1C1E26?style=for-the-badge&labelColor=1C1E26&color=61ffca">
</a>
</p>



# Installation

1. Open Nova Extension Library from Nova Extensions menu
2. Search for "Aura Theme" and click install

# Contributors

<table>
<thead>
<tr>
<td valign="bottom"><p align="center">
<a href="https://github.com/DanKlaver15">
<img src="https://github.com/DanKlaver15.png?size=100" align="center" />
</a>
</p></td>
<td valign="bottom"><p align="center">
<a href="https://github.com/daltonmenezes">
<img src="https://github.com/daltonmenezes.png?size=100" align="center" />
</a>
</p></td>
</tr>
</thead>

<tbody>
<tr>
<td><a href="https://github.com/DanKlaver15">Dan Klaver</a></td>
<td><a href="https://github.com/daltonmenezes">Dalton Menezes</a></td>
</tr>
</tbody>
</table>

# License
[MIT © Dalton Menezes](https://github.com/daltonmenezes/aura-theme/blob/main/LICENSE)
6 changes: 6 additions & 0 deletions packages/nova/hello-aura.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"portName": "Nova",
"version": "1.0.0",
"hello": "Hello from Aura!",
"color": "#a277ff"
}
29 changes: 29 additions & 0 deletions src/ports/nova/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { AuraAPI } from 'core'
import { resolve } from 'path'

export async function NovaPort(Aura: AuraAPI) {
const { createPort, createReadme, colorSchemes, constants } = Aura
const templateFolder = resolve(__dirname, 'templates')
const { info } = constants

const portName = 'Nova'
const version = '1.0.0'

await createPort({
template: resolve(templateFolder, 'hello-aura.json'),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, remove the "hello-" in the filename.

replacements: {
...colorSchemes.dark,
portName,
version,
hello: 'Hello from Aura!',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be removed, right?

},
})

await createReadme({
template: resolve(templateFolder, 'README.md'),
replacements: {
portName,
version,
},
})
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
3 changes: 3 additions & 0 deletions src/ports/nova/templates/AuraTheme.novaextension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Version 1.0

Initial release
54 changes: 54 additions & 0 deletions src/ports/nova/templates/AuraTheme.novaextension/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<p align="center">
<img src="https://github.com/daltonmenezes/assets/blob/master/images/aura-theme/new-heading.png?raw=true" alt="Aura Theme" width="70%" />
</p>

<p align="center">
✨ A beautiful dark theme for Nova
<br><br>

<!-- Patreon -->
<a href="https://www.patreon.com/daltonmenezes">
<img alt="patreon url" src="https://img.shields.io/badge/support%20on-patreon-1C1E26?style=for-the-badge&labelColor=1C1E26&color=61ffca">
</a>

<!-- version -->
<a href="#">
<img alt="version" src="https://img.shields.io/badge/version%20-v1.0.0-1C1E26?style=for-the-badge&labelColor=1C1E26&color=61ffca">
</a>
</p>



# Installation

1. Open Nova Extension Library from Nova Extensions menu
2. Search for "Aura Theme" and click install

# Contributors

<table>
<thead>
<tr>
<td valign="bottom"><p align="center">
<a href="https://github.com/DanKlaver15">
<img src="https://github.com/DanKlaver15.png?size=100" align="center" />
</a>
</p></td>
<td valign="bottom"><p align="center">
<a href="https://github.com/daltonmenezes">
<img src="https://github.com/daltonmenezes.png?size=100" align="center" />
</a>
</p></td>
</tr>
</thead>

<tbody>
<tr>
<td><a href="https://github.com/DanKlaver15">Dan Klaver</a></td>
<td><a href="https://github.com/daltonmenezes">Dalton Menezes</a></td>
</tr>
</tbody>
</table>

# License
[MIT © Dalton Menezes](https://github.com/daltonmenezes/aura-theme/blob/main/LICENSE)