Skip to content

Commit

Permalink
add eitaa driver
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa-nematpour committed Feb 14, 2023
1 parent 897dd13 commit fa525fa
Show file tree
Hide file tree
Showing 13 changed files with 163 additions and 97 deletions.
149 changes: 87 additions & 62 deletions dist/Sharee.533a3269.js → dist/Sharee.9ccd06e5.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions dist/en.30716096.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const t = "ltr", e = "Copied successfully", i = "Telegram", n = "Copy Link", s = "Whatsapp", o = "Twitter", a = "Linkedin", c = "Eitaa", p = {
Direction: t,
CopiedSuccessfully: e,
Telegram: i,
Copy_Link: n,
Whatsapp: s,
Twitter: o,
Linkedin: a,
Eitaa: c
};
export {
e as CopiedSuccessfully,
n as Copy_Link,
t as Direction,
c as Eitaa,
a as Linkedin,
i as Telegram,
o as Twitter,
s as Whatsapp,
p as default
};
19 changes: 0 additions & 19 deletions dist/en.7ffedfe0.js

This file was deleted.

2 changes: 1 addition & 1 deletion dist/sharee-react.js.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useRef as n, useEffect as u } from "react";
import { S as o } from "./Sharee.533a3269.js";
import { S as o } from "./Sharee.9ccd06e5.js";
import { jsx as f } from "react/jsx-runtime";
import "lodash.merge";
function m(e) {
Expand Down
2 changes: 1 addition & 1 deletion dist/sharee-vue.js.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineComponent as a, ref as o, onMounted as u, onUnmounted as s, openBlock as p, createElementBlock as i } from "vue";
import { S as m } from "./Sharee.533a3269.js";
import { S as m } from "./Sharee.9ccd06e5.js";
import "lodash.merge";
const _ = /* @__PURE__ */ a({
__name: "Sharee",
Expand Down
2 changes: 1 addition & 1 deletion dist/sharee.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { S as a } from "./Sharee.533a3269.js";
import { S as a } from "./Sharee.9ccd06e5.js";
import "lodash.merge";
export {
a as default
Expand Down
24 changes: 15 additions & 9 deletions dist/sharee.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/assets/icons/Eitaa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions src/lib/drivers/EitaaDriver.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Driver from './Driver';
import DriverOptions from "../../common/DriverOptions";
import EitaaSvg from '../../assets/icons/Eitaa.svg?raw';
import Lang from "../../common/Lang";
import hasLink from "./HasLink";

export default class TelegramDriver extends Driver implements hasLink {
public buttonText: string = 'Eitaa';
public icon: string = EitaaSvg;
public backgroundColor: string = '#e3791c';
public backgroundHoverColor: string = '#d5721a';
public textColor: string = '#fff';
public textHoverColor: string = '#fff';

constructor(lang: Lang, options: DriverOptions) {
super(lang, options);
}

getLink(): string {
return `https://eitaa.com/share/url?url=${this.options?.shareLink}&text=${encodeURIComponent(this.options?.shareText!)}`
}
}
2 changes: 2 additions & 0 deletions src/lib/drivers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import CopyDriver from "./CopyDriver";
import TwitterDriver from "./TwitterDriver";
import LinkedinDriver from "./LinkedinDriver";
import FacebookDriver from "./FacebookDriver";
import EitaaDriver from "./EitaaDriver";

export default new Object({
telegram: TelegramDriver,
Expand All @@ -12,4 +13,5 @@ export default new Object({
twitter: TwitterDriver,
linkedin: LinkedinDriver,
facebook: FacebookDriver,
eitaa: EitaaDriver,
})
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"Copy_Link": "Copy Link",
"Whatsapp": "Whatsapp",
"Twitter": "Twitter",
"Linkedin": "Linkedin"
"Linkedin": "Linkedin",
"Eitaa": "Eitaa"
}
3 changes: 2 additions & 1 deletion src/locales/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"Whatsapp": "اشتراک در واتساپ",
"Twitter": "اشتراک در توییتر",
"Linkedin": "اشتراک در لینکدین",
"Facebook": "اشتراک در فیسبوک"
"Facebook": "اشتراک در فیسبوک",
"Eitaa": "اشتراک در ایتا"
}

0 comments on commit fa525fa

Please sign in to comment.