Skip to content

Commit

Permalink
Merge branch 'master' into update-financial-portfolio
Browse files Browse the repository at this point in the history
  • Loading branch information
mbechev committed Mar 14, 2024
2 parents c0ec2d1 + 0604211 commit bb6a770
Show file tree
Hide file tree
Showing 117 changed files with 26,559 additions and 20,871 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Expand Up @@ -51,6 +51,12 @@ jobs:
working-directory: ./examples-standalone/finance-portfolio
run: |
npm ci
- name: Build Electron dashboard app
working-directory: ./examples-standalone/electron-dashboard
run: |
npm ci
npm rebuild node-sass
npm run build
- name: Build Grid & Charts integration app
Expand Down Expand Up @@ -112,12 +118,5 @@ jobs:
npm ci
npm run build
- name: Build Electron dashboard app
working-directory: ./examples-standalone/electron-dashboard
run: |
npm ci
npm rebuild node-sass
npm run build
- name: Cleanup
run: git clean -xdf
3 changes: 3 additions & 0 deletions examples-standalone/electron-dashboard/.editorconfig
Expand Up @@ -8,6 +8,9 @@ indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions examples-standalone/electron-dashboard/.eslintignore
@@ -0,0 +1,2 @@
src/environments/*
e2e/playwright.config.ts
81 changes: 30 additions & 51 deletions examples-standalone/electron-dashboard/.eslintrc.json
@@ -1,80 +1,59 @@
{
"env": {
"browser": true,
"node": true,
"es6": true,
"es2017": true
},
"root": true,
"ignorePatterns": [
"app/**/*", // ignore nodeJs files
"dist/**/*",
"release/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 10,
"project": [
"./tsconfig.serve.json",
"./src/tsconfig.app.json",
"./src/tsconfig.spec.json",
"./e2e/tsconfig.e2e.json"
"./e2e/tsconfig.e2e.json",
"./tsconfig.json"
],
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
"createDefaultProgram": true
},
"plugins": [
"@typescript-eslint",
"@angular-eslint/eslint-plugin"
"extends": [
"plugin:@angular-eslint/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@typescript-eslint/indent": [
"error",
2,
{
"SwitchCase": 1,
"CallExpression": {
"arguments": "first"
},
"FunctionExpression": {
"parameters": "first"
},
"FunctionDeclaration": {
"parameters": "first"
}
}
],
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/semi": "error",
"@angular-eslint/use-injectable-provided-in": "error",
"@angular-eslint/no-attribute-decorator": "error"
"prefer-arrow/prefer-arrow-functions": 0,
"@angular-eslint/directive-selector": 0,
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"jsdoc/newline-after-description": 0
}
},
{
"files": [
"*.component.html"
"*.html"
],
"parser": "@angular-eslint/template-parser",
"plugins": [
"@angular-eslint/template"
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {
"@angular-eslint/template/banana-in-box": "error",
"@angular-eslint/template/no-negated-async": "error"
}
}
]
Expand Down
12 changes: 12 additions & 0 deletions examples-standalone/electron-dashboard/.github/FUNDING.yml
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: maximegris
patreon: user?u=37550953
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: maximegris # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
- OS: [e.g. iOS]

Add any other context about the problem here.
@@ -0,0 +1,41 @@
name: "🐛 Bug report"
description: Report errors or unexpected behavior
labels:
- bug
- needs-triage
body:
- type: markdown
attributes:
value: |
Please make sure to [search for existing issues](https://github.com/maximegris/angular-electron/issues) before filing a new one!
- type: textarea
attributes:
label: Steps to reproduce
description: We highly suggest including a screenshots and a bug report log.
placeholder: |
Tell us the steps required to trigger your bug.
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true

- type: textarea
attributes:
label: ✔️ Expected Behavior
placeholder: A clear and concise description of what you expected to happen.
validations:
required: true

- type: textarea
attributes:
label: 🔍 Additional context
description: Add any other context about the problem here.
placeholder: |
OS: [e.g. iOS]
validations:
required: false
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
@@ -0,0 +1,29 @@
name: "⭐ New Feature / Enhancement Request"
description: Propose something new.
labels:
- enhancement
- needs-triage

body:
- type: markdown
attributes:
value: |
Please limit one request per issue.
- type: textarea
attributes:
label: Description of the new feature / enhancement
placeholder: |
A clear and concise description of what is the expected behavior of the proposed feature?
validations:
required: true

- type: textarea
attributes:
label: Scenario when this would be used?
placeholder: |
What is the scenario this would be used? Why is this important?
validations:
required: true


6 changes: 6 additions & 0 deletions examples-standalone/electron-dashboard/.github/dependabot.yml
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
@@ -0,0 +1,21 @@
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

# Checklist:

- [ ] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have run tests (npm run test & npm run e2e) that prove my fix is effective or that my feature works
17 changes: 17 additions & 0 deletions examples-standalone/electron-dashboard/.github/stale.yml
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 15
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
58 changes: 58 additions & 0 deletions examples-standalone/electron-dashboard/.github/workflows/macos.yml
@@ -0,0 +1,58 @@
# This is a basic workflow to help you get started with Actions
name: 'MacOS Build'

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
permissions:
contents: read

jobs:
build:
strategy:
matrix:
node-version: [20]

# The type of runner that the job will run on
runs-on: macos-12

steps:
- uses: actions/checkout@v3

- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm i && npm i -D cli-truncate iconv-corefoundation

- name: Check lint
run: npm run lint

- name: Build the app
run: npm run electron:build

0 comments on commit bb6a770

Please sign in to comment.