Skip to content

Commit

Permalink
initial version 2
Browse files Browse the repository at this point in the history
- migrate from vuejs2 to vuejs 3
- migrate from webpack to vite
- add vuex base
- and etc.
  • Loading branch information
farzady committed Mar 11, 2023
1 parent 29031a5 commit 4dec940
Show file tree
Hide file tree
Showing 23 changed files with 1,410 additions and 0 deletions.
30 changes: 30 additions & 0 deletions anubias2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
dist-electron
release
*.local

# Editor directories and files
.vscode/.debug.env
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# lockfile
package-lock.json
pnpm-lock.yaml
yarn.lock
7 changes: 7 additions & 0 deletions anubias2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## 2022-02-23

[v1.1.0](https://github.com/4xmen/anubias)

- add live tie
- fix some bugs

674 changes: 674 additions & 0 deletions anubias2/LICENSE

Large diffs are not rendered by default.

122 changes: 122 additions & 0 deletions anubias2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<h1 align="center">
<br>
<a href="https://anubias.app/">
<img src="public/icon.png" alt="Anubias" width="150">
</a>
<br>
<a href="https://anubias.app">Anubias Desktop</a>
<br>
<hr>
</h1>

<div align="center">

[![anubias](https://snapcraft.io/anubias/badge.svg)](https://snapcraft.io/anubias)

</div>

# Anubias-Desktop

Anubias is project help you to make your mobile apps so easy and native with GUI : )


# Demo

<div align="center">
<h2>Free Templates</h2>
<img src="public/screen-shots/sc1.png" width="500px">
</div>
<div align="center">
<h2>Easy To Use</h2>
<img src="public/screen-shots/sc2.png" width="500px">
</div>
<div align="center">
<h2>Compile Fast</h2>
<img src="public/screen-shots/sc4.png" width="500px">
</div>

# Downloads
The latest version is available for

* [Windows](https://anubias.app/dl/wini) ([portable](https://anubias.app/dl/winp))
* [macOS](https://anubias.app/dl/mac)
* [Linux](https://anubias.app/dl/linux)
* [WebApp](https://anubias.app/demo)


## 🔗 Links
https://anubias.app/
<br>
http://4xmen.ir/
<br>
https://xstack.ir


## Features

* 📱 Mobile Apps ( Develop your app for : Andriod , IOS )
* 🖥️ Desktop Apps ( Develop your app for : Windows , Linux , MacOSX )
* 🌐 Web applications ( Develop your web app )
* 👉 GUI ( GUI drag and drop component )
* 👨‍💻 xScript ( xScript code look like javascript )
* 💯 Free ( Totally Free )



## Linux Installation

Install form linux Snapcraft Store

```bash
snap install anubias --classic
```

## Report Some Bugs
Find a Bug? Please, [create an issue](https://github.com/4xmen/Anubias-Desktop/issues) and we'll fix it together for a better template.

## Contribution
Contribution are always welcome and recommended! Here is how:

- Fork the repository ([here is the guide](https://help.github.com/articles/fork-a-repo/)).
- Clone to your machine git clone https://github.com/YOUR_USERNAME/Anubias-Desktop.git
- Make your changes
- Create a pull request

## Badges

<div align="center">

[![Anubias-App](https://img.shields.io/badge/Anubias-Desktop-green.svg)](https://anubias.app/)
[![GitHub](https://img.shields.io/badge/Github-4xmen-blue.svg)](https://GitHub.com/4xmen)
[![Xstack](https://img.shields.io/badge/Xstack-Team-red.svg)](https://xstack.ir)
[![4xmen](https://img.shields.io/badge/4xmen-Team-black.svg)](https://4xmen.ir)
[![Devefun](https://img.shields.io/badge/Devefun-Community-blue.svg)](https://Telegram.me/Devefun)

</div>

## Developing Languages

<div align="center">

[![javascript](src/assets/badge/javascript.svg)](https://www.javascript.com/)
[![vuejs](src/assets/badge/vue.svg)](https://vuejs.org/)
[![webpack](src/assets/badge/webpack.svg)](https://webpack.js.org/)
[![eslint](src/assets/badge/eslint.svg)](https://eslint.org/)
[![electron-js](src/assets/badge/electron.svg)](https://www.electronjs.org/)

</div>

## License

[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/GNU)



[GPL](https://www.gnu.org/licenses/gpl-3.0.en.html)


## Support

[![buymeacoffee](src/assets/badge/paypal.svg)](https://www.paypal.me/swepc)

<div align="center"> Developed With Love ! ❤️</div>
38 changes: 38 additions & 0 deletions anubias2/electron-builder.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* @see https://www.electron.build/configuration/configuration
*/
{
"appId": "YourAppID",
"asar": true,
"icon": "public/favicon.ico",
"directories": {
"output": "release/${version}"
},
"files": [
"dist-electron",
"dist"
],
"mac": {
"artifactName": "${productName}_${version}.${ext}",
"target": [
"dmg"
]
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"artifactName": "${productName}_${version}.${ext}"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": false
}
}
11 changes: 11 additions & 0 deletions anubias2/electron/electron-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/// <reference types="vite-plugin-electron/electron-env" />

declare namespace NodeJS {
interface ProcessEnv {
VSCODE_DEBUG?: 'true'
DIST_ELECTRON: string
DIST: string
/** /dist/ or /public/ */
PUBLIC: string
}
}
59 changes: 59 additions & 0 deletions anubias2/electron/main/app-menu.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import { MenuItemConstructorOptions } from 'electron';
class AppMenu{
private win: any;

constructor(win) {
this.win = win;
}

menu() : MenuItemConstructorOptions[] {
return [
{
label: "&File",
submenu: [
{
label: "Create new project",
accelerator: 'CommandOrControl+N'
}
]
},
{
label: "&Edit",
submenu: [
{ label: '&Undo', accelerator: 'CommandOrControl+Z'},
{ label: '&Redo', accelerator: 'CommandOrControl+Y' },
{ type: 'separator' },
{ label: 'C&ut', accelerator: 'CommandOrControl+X' },
{ label: '&Copy', accelerator: 'CommandOrControl+C'},
{ label: '&Paste', accelerator: 'CommandOrControl+V'},
// {
// label: 'Select All',
// accelerator: 'CommandOrControl+A',
// selector: 'selectAll:',
// },
],
},
{
label: "&View",
submenu: [
{
label: 'Toggle &Full Screen',
accelerator: 'F11',
click: () => {
this.win.setFullScreen(!this.win.isFullScreen());
},
},
{
label: 'Toggle &Dev tools',
accelerator: 'F12',
click: () => {
this.win.webContents.toggleDevTools();
},
},
]
}
];
}
}

export {AppMenu};
5 changes: 5 additions & 0 deletions anubias2/electron/main/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const config = {
isDebug: false,
}

export {config};
Loading

0 comments on commit 4dec940

Please sign in to comment.