Skip to content

Commit 0befef6

Browse files
authored
Merge pull request #33 from joshivaibhavs/feature/twitter-x-logo-change
Feature/twitter x logo change
2 parents 390954d + 32652d0 commit 0befef6

File tree

7 files changed

+5486
-3717
lines changed

7 files changed

+5486
-3717
lines changed

.github/workflows/npm-publish.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish Package to NPM
2+
on:
3+
release:
4+
types: [created]
5+
push:
6+
branches:
7+
- master
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-and-publish:
13+
runs-on: ubuntu-latest
14+
# Only run this job when on the master branch
15+
if: github.ref == 'refs/heads/master'
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: '18.x'
24+
# This line sets up authentication for npm
25+
# You'll need to add NPM_TOKEN secret in your repository settings
26+
# Generate a token at https://www.npmjs.com/settings/[your-username]/tokens
27+
registry-url: 'https://registry.npmjs.org'
28+
29+
- name: Install dependencies
30+
run: npm ci || npm install
31+
32+
# If you have any build or test steps, add them here
33+
- name: Build package
34+
run: npm run build
35+
36+
# Publish to npm
37+
- name: Publish to npm
38+
run: npm publish --access public
39+
env:
40+
# This uses the NPM_TOKEN secret you need to set up in your repository
41+
# Create this secret in your repo: Settings > Secrets and variables > Actions > New repository secret
42+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

components/shareIt.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ export default {
146146
switch (key) {
147147
case 'twitter':
148148
baseConfig[key].platform = 'twitter';
149-
baseConfig[key].defaultIcon = 'twitter';
150-
baseConfig[key].defaultLabel = 'Twitter';
149+
baseConfig[key].defaultIcon = 'x-twitter';
150+
baseConfig[key].defaultLabel = 'X';
151151
baseConfig[key].defaultColor = '#FFFFFF';
152-
baseConfig[key].defaultBackground = '#1DA1F2';
153-
baseConfig[key].defaultIconColor = '#1DA1F2';
152+
baseConfig[key].defaultBackground = '#000000';
153+
baseConfig[key].defaultIconColor = '#000000';
154154
break;
155155
156156
case 'linkedin':

dist/vue-share-it.js

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-share-it.js.gz

30.8 KB
Binary file not shown.

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import shareIt from './components/shareIt.vue';
22
import shareButton from './components/shareButton.vue';
33
import { library } from '@fortawesome/fontawesome-svg-core';
4-
import { faTwitter, faFacebookF, faWhatsapp, faLinkedin, faRedditAlien } from '@fortawesome/free-brands-svg-icons';
4+
import { faXTwitter, faFacebookF, faWhatsapp, faLinkedin, faRedditAlien } from '@fortawesome/free-brands-svg-icons';
55
import { faEnvelope } from '@fortawesome/free-solid-svg-icons';
66
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
77

88
const shareItPlugin = {
99
install (Vue, options) {
10-
library.add(faTwitter, faFacebookF, faWhatsapp, faLinkedin, faRedditAlien, faEnvelope);
10+
library.add(faXTwitter, faFacebookF, faWhatsapp, faLinkedin, faRedditAlien, faEnvelope);
1111
Vue.component('font-awesome-icon', FontAwesomeIcon);
1212
Vue.component('share-it', shareIt);
1313
Vue.component('share-button', shareButton);

0 commit comments

Comments
 (0)