Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MurhafSousli committed Jan 17, 2025
1 parent 32219d2 commit ce57c7e
Show file tree
Hide file tree
Showing 59 changed files with 11,047 additions and 19,998 deletions.
47 changes: 47 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {}
}
]
}
11 changes: 11 additions & 0 deletions .github/FUNDING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# These are supported funding model platforms

github: murhafsousli
patreon: murhaf
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: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with a single custom sponsorship URL
45 changes: 18 additions & 27 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,31 @@
---
name: Bug report
about: Create a report to help us improve

name: Bug Report
about: Report a bug found in ngx-bar-rating
---

<!--
1. Please make sure that you have searched in the older issues before submitting a new one!
2. Please fill out all the required information!
-->

#### I am submitting a

- [x] Bug Report

#### What is the expected behavior?


#### What is the current behavior?


#### What are the steps to reproduce?
#### Reproduction

<!--
Providing a StackBlitz reproduction is the *best* way to share your issue. <br/>
StackBlitz starter: https://stackblitz.com/edit/ngx-bar-rating<br/>
-->
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/ngx-bar-rating

Steps to reproduce:
1.
2.


#### Expected Behavior

#### What is the use-case or motivation for changing an existing behavior?
What behavior were you expecting to see?


#### Actual Behavior

#### Which versions are you using for the following packages?
What behavior did you actually see?

Angular:
ngx-bar-rating:

#### Environment

#### Is there anything else we should know?
- Angular:
- ngx-bar-rating:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Feature
about: Propose a new feature for ngx-bar-rating
labels: feature
---

#### Feature Description

Provide a brief summary of the feature you would like to see.

#### Use Case

Describe the use case(s) that the proposed feature would enable.
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI Build

on:
pull_request:
branches: [ master ]
push:
branches: [ master ]

jobs:
build:
# Machine environment:
# We specify the Node.js version manually below, and use versioned Chrome from Puppeteer.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Use Node.js 20
uses: actions/setup-node@master
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build-lib

- name: Lint
run: npm run lint-lib

- name: Test
run: npm run test-lib-headless

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@main
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: MurhafSousli/ngx-bar-rating

- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@master
with:
filename: coverage/**/cobertura-coverage.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@main
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
continue-on-error: true # Allow this step to fail

- name: Build demo (ssr)
run: npm run build-ssr
36 changes: 36 additions & 0 deletions .github/workflows/netlify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy Demo

on:
push:
branches: [ deploy-netlify ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 20
uses: actions/setup-node@master
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build demo
run: npm run build
env:
GIST_CLIENT_ID: ${{ secrets.GIST_CLIENT_ID }}
GIST_CLIENT_SECRET: ${{ secrets.GIST_CLIENT_SECRET }}
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@master
with:
publish-dir: './dist/ngx-bar-rating-demo/browser'
production-branch: deploy-netlify
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: true
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
23 changes: 9 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,47 +1,42 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
# Compiled output
/dist
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
# Node
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json
npm-debug.log
yarn-error.log

# IDEs and editors
/.idea
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
# Miscellaneous
/.angular/cache
/.sass-cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
# System files
.DS_Store
Thumbs.db
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 8.0.0

- Upgrade to Angular 19.
- Add unit tests.
- feat: Add `provideBarRatingOptions` to override the default options.
- feat: Add accessibility support such as focus and keys listeners to increase/decrease the rating.
- feat: Ability to override CSS variables from `:root` selector.
- feat: Add `effect` directive that adds click scale-fade effect.
- feat: Add CSS variable `--br-effect-scale`, `--br-effect-duration` and `--br-effect-ease` to customize the effect.
- fix: When used as a form control, the required validator is always true, closes [#116](https://github.com/MurhafSousli/ngx-bar-rating/issues/116).

## 7.0.1

- fix: readonly attribute is not working in v7.0.0, closes [#111](https://github.com/MurhafSousli/ngx-bar-rating/issues/111).
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016-2024 Murhaf Sousli
Copyright (c) 2016-2025 Murhaf Sousli

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

1 comment on commit ce57c7e

@github-actions
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.