Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MurhafSousli committed Jan 8, 2025
1 parent d8c3365 commit 9b15a63
Show file tree
Hide file tree
Showing 92 changed files with 5,554 additions and 5,164 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": {}
}
]
}
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: murhafsousli
patreon: murhaf
open_collective: # Replace with open collective project name
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
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Bug Report
about: Report a bug found in ngx-sharebuttons
about: Report a bug found
---


Expand All @@ -9,10 +9,10 @@ about: Report a bug found in ngx-sharebuttons
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/ngx-sharebuttons

Steps to reproduce:
1.
2.


1.
2.
#### Expected Behavior

What behavior were you expecting to see?
Expand Down
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Documentation
about: Suggest an improvement to our documentation
labels: docs
---

#### Documentation Feedback

Provide a brief summary of what you would like to see changed in our documentation.

Feel free to provide any suggestions of content or examples you’d like us to include.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Feature
about: Propose a new feature for ngx-sharebuttons
about: Propose a new feature
labels: feature
---

#### Feature Description

Provide a brief summary of the feature you would like to see.
Expand Down
43 changes: 40 additions & 3 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,60 @@
name: tests
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-sharebuttons

- 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
4 changes: 1 addition & 3 deletions .github/workflows/netlify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ jobs:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build library
run: npm run build-lib
- name: Build demo
run: npm run build-demo
run: npm run build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@master
with:
Expand Down
4 changes: 0 additions & 4 deletions .vscode/extensions.json

This file was deleted.

20 changes: 0 additions & 20 deletions .vscode/launch.json

This file was deleted.

42 changes: 0 additions & 42 deletions .vscode/tasks.json

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 16.0.0

- Upgrade to Angular 19.
- refactor(themes): Replace `@import` functions with `@use`.
- refactor(themes): Replace deprecated sass function with the new ones.
- feat: add `--sb-expand-button-color` CSS variable to easily change the color of the expand button in share buttons component.

### Breaking changes

- Remove the deprecated `withIcons()` function, use `shareIcons()` instead.

## 15.0.6

- Add link in message body even if description was not provided, closes [#697](https://github.com/MurhafSousli/ngx-sharebuttons/issues/697) and [#610](https://github.com/MurhafSousli/ngx-sharebuttons/issues/610).
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
[![npm](https://img.shields.io/badge/stackblitz-online-orange.svg)](https://stackblitz.com/edit/ngx-sharebuttons)
[![NPM](https://img.shields.io/npm/v/ngx-sharebuttons.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/ngx-sharebuttons)
[![tests](https://github.com/MurhafSousli/ngx-sharebuttons/workflows/tests/badge.svg)](https://github.com/MurhafSousli/ngx-sharebuttons/actions?query=workflow%3Atests)
[![codecov](https://codecov.io/gh/MurhafSousli/ngx-sharebuttons/graph/badge.svg?token=MXLhZ5krk9)](https://codecov.io/gh/MurhafSousli/ngx-sharebuttons)
[![npm](https://img.shields.io/npm/dt/ngx-sharebuttons.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/ngx-sharebuttons)
[![npm](https://img.shields.io/npm/dm/ngx-sharebuttons.svg)](https://www.npmjs.com/package/ngx-sharebuttons)
[![LICENSE](https://img.shields.io/npm/l/express.svg?maxAge=2592000)](https://github.com/MurhafSousli/ngx-sharebuttons/blob/master/LICENSE)
Expand Down
Loading

0 comments on commit 9b15a63

Please sign in to comment.