Skip to content

Commit

Permalink
App Deployin list orgs and apps
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Mar 30, 2024
0 parents commit ce0b793
Show file tree
Hide file tree
Showing 67 changed files with 13,874 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
node_modules
Dockerfile*
docker-compose*
.dockerignore
.git
.gitignore
README.md
LICENSE
.vscode
Makefile
helm-charts
.env
.editorconfig
.idea
coverage*
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
root: true,
extends: ['plugin:nuxt/recommended', 'plugin:vue/vue3-essential', 'prettier'],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'vue/multi-word-component-names': 'off',
'vue/no-reserved-component-names': 'off',
'vue/component-tags-order': [
'error',
{
order: ['script', 'template', 'style']
}
]
}
};
59 changes: 59 additions & 0 deletions .github/workflows/main_app-deployin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy container app to Azure Web App - app-deployin

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to registry
uses: docker/login-action@v2
with:
registry: https://index.docker.io/v1/
username: ${{ secrets.AzureAppService_ContainerUsername_92269a9228e742668c609122ef562b74 }}
password: ${{ secrets.AzureAppService_ContainerPassword_ce8e3ecb93c1473d80f3a247fc90fd46 }}

- name: Build and push container image to registry
uses: docker/build-push-action@v3
with:
push: true
tags: index.docker.io/${{ secrets.AzureAppService_ContainerUsername_92269a9228e742668c609122ef562b74 }}/app-deployin:${{ github.sha }}
context: .
file: ./Dockerfile

# deploy:
# runs-on: ubuntu-latest
# needs: build
# environment:
# name: 'production'
# url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

# steps:
# - name: Deploy to Azure Web App
# id: deploy-to-webapp
# uses: azure/webapps-deploy@v2
# with:
# app-name: 'app-deployin'
# slot-name: 'production'
# publish-profile: ${{ secrets.AzureAppService_PublishProfile_1f47a7f4f78347d99d7e26bf44511cb0 }}
# images: 'index.docker.io/${{ secrets.AzureAppService_ContainerUsername_92269a9228e742668c609122ef562b74 }}/app-deployin:${{ github.sha }}'

deploy-northflank:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to Northflank
run: curl -X GET ${{ secrets.NF_WEBHOOK }}?fullImageId=${{ secrets.AzureAppService_ContainerUsername_92269a9228e742668c609122ef562b74 }}/app-deployin:${{ github.sha }}
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
.output
.nuxt

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.env
.output/
.wrangler/tmp
server/prisma-client/
prisma/app.db*
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"useTabs": false,
"tabWidth": 4,
"trailingComma": "none",
"semi": true,
"singleQuote": true,
"vueIndentScriptAndStyle": false,
"printWidth": 250,
"bracketSameLine": false
}
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Changelog

## 1.2.0 (2024-03-11)

**Migration Guide**

- Update theme files.

**Implemented New Features and Enhancements**

- Upgrade to PrimeVue 3.49.1

## 1.1.0 (2023-11-01)

**Migration Guide**

- Update theme files.

**Implemented New Features and Enhancements**

- Upgrade to PrimeVue 3.39.0
- nuxt-primevue module added

**Fixed Bugs**

- ripple and inputstyle implementation fixes
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM oven/bun:1 as builder
WORKDIR /builder

COPY package.json bun.lockb /builder/
RUN bun install --frozen-lockfile
COPY . .
RUN bun run prismaGenerate

RUN bun run build

FROM oven/bun:1
WORKDIR /app
COPY --from=builder /builder/.output .

ENTRYPOINT [ "bun" "run" "server/index.mjs" ]
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018-2022 PrimeTek

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Nuxt 3 Minimal Starter

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# yarn
yarn install

# npm
npm install

# pnpm
pnpm install
```

## Development Server

Start the development server on `http://localhost:3000`

```bash
npm run dev
```

## Production

Build the application for production:

```bash
npm run build
```

Locally preview production build:

```bash
npm run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
20 changes: 20 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<script setup lang="ts">
import 'primevue/resources/themes/aura-dark-green/theme.css'
</script>

<template>
<NuxtLayout>
<NuxtLoadingIndicator />
<NuxtPage />
<DynamicDialog />
</NuxtLayout>
</template>

<style lang="scss">
html,
body,
#__nuxt {
margin: 0px;
height: 100%;
}
</style>
11 changes: 11 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

@layer tailwind-base, primevue, tailwind-utilities;

@layer tailwind-base {
@tailwind base;
}

@layer tailwind-utilities {
@tailwind components;
@tailwind utilities;
}
81 changes: 81 additions & 0 deletions assets/demo/styles/badges.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
.customer-badge,
.product-badge,
.order-badge {
border-radius: var(--border-radius);
padding: .25em .5rem;
text-transform: uppercase;
font-weight: 700;
font-size: 12px;
letter-spacing: .3px;
}

.product-badge {
&.status-instock {
background: #C8E6C9;
color: #256029;
}

&.status-outofstock {
background: #FFCDD2;
color: #C63737;
}

&.status-lowstock {
background: #FEEDAF;
color: #8A5340;
}
}

.customer-badge {
&.status-qualified {
background: #C8E6C9;
color: #256029;
}

&.status-unqualified {
background: #FFCDD2;
color: #C63737;
}

&.status-negotiation {
background: #FEEDAF;
color: #8A5340;
}

&.status-new {
background: #B3E5FC;
color: #23547B;
}

&.status-renewal {
background: #ECCFFF;
color: #694382;
}

&.status-proposal {
background: #FFD8B2;
color: #805B36;
}
}

.order-badge {
&.order-delivered {
background: #C8E6C9;
color: #256029;
}

&.order-cancelled {
background: #FFCDD2;
color: #C63737;
}

&.order-pending {
background: #FEEDAF;
color: #8A5340;
}

&.order-returned {
background: #ECCFFF;
color: #694382;
}
}
Loading

0 comments on commit ce0b793

Please sign in to comment.