@timus-networks/theme 1.0.183 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/TimusIcons.vue +54 -0
- package/generate-icon.js +22 -0
- package/module.ts +84 -0
- package/package.json +17 -18
- package/pages/icons.vue +46 -0
- package/plugins/sample-plugin.ts +5 -0
- package/public/isax/fonts/iconsax.svg +927 -0
- package/public/isax/fonts/iconsax.ttf +0 -0
- package/public/isax/fonts/iconsax.woff +0 -0
- package/public/isax/icons.json +899 -0
- package/public/isax/selection.json +1 -0
- package/public/isax/style.css +1 -0
- package/public/isax/style.scss +5435 -0
- package/public/isax/variables.scss +900 -0
- package/README.md +0 -119
- package/components-js/ThemeAlert.vue +0 -78
- package/components-js/ThemeAvatar.vue +0 -55
- package/components-js/ThemeBadge.vue +0 -106
- package/components-js/ThemeBreadcrumb.vue +0 -44
- package/components-js/ThemeButtons.vue +0 -148
- package/components-js/ThemeCascader.vue +0 -390
- package/components-js/ThemeCheckbox.d.ts +0 -2
- package/components-js/ThemeCheckbox.vue +0 -197
- package/components-js/ThemeCollapse.vue +0 -73
- package/components-js/ThemeDialog.vue +0 -49
- package/components-js/ThemeForm.d.ts +0 -2
- package/components-js/ThemeForm.vue +0 -134
- package/components-js/ThemeInformation.vue +0 -127
- package/components-js/ThemeInputNumbers.vue +0 -74
- package/components-js/ThemeInputs.vue +0 -316
- package/components-js/ThemeLink.vue +0 -110
- package/components-js/ThemeLogo.vue +0 -57
- package/components-js/ThemeMessage.vue +0 -55
- package/components-js/ThemeMessageBox.vue +0 -47
- package/components-js/ThemePopover.vue +0 -557
- package/components-js/ThemeRadio.d.ts +0 -2
- package/components-js/ThemeRadio.vue +0 -164
- package/components-js/ThemeSelect.vue +0 -237
- package/components-js/ThemeSidebar.d.ts +0 -2
- package/components-js/ThemeSidebar.vue +0 -275
- package/components-js/ThemeTable.vue +0 -305
- package/components-js/ThemeTag.vue +0 -145
- package/components-js/ThemeToggle.vue +0 -123
- package/components-js/ThemeTooltip.vue +0 -191
- package/components-js/ThemeTypo.vue +0 -65
- package/components-js/ThemeUpload.vue +0 -92
- package/components-js/TimusSamples.vue +0 -54
- package/components-js/exporter.js +0 -19
- package/components-js/interfaces.d.ts +0 -10
- package/components-js/interfaces.js +0 -1
- package/components-js/utils.d.ts +0 -6
- package/components-js/utils.js +0 -17
- package/components-ts/ThemeAlert.vue +0 -78
- package/components-ts/ThemeAvatar.vue +0 -55
- package/components-ts/ThemeBadge.vue +0 -106
- package/components-ts/ThemeBreadcrumb.vue +0 -44
- package/components-ts/ThemeButtons.vue +0 -148
- package/components-ts/ThemeCascader.vue +0 -390
- package/components-ts/ThemeCheckbox.vue +0 -202
- package/components-ts/ThemeCollapse.vue +0 -73
- package/components-ts/ThemeDialog.vue +0 -49
- package/components-ts/ThemeForm.vue +0 -137
- package/components-ts/ThemeInformation.vue +0 -127
- package/components-ts/ThemeInputNumbers.vue +0 -74
- package/components-ts/ThemeInputs.vue +0 -316
- package/components-ts/ThemeLink.vue +0 -110
- package/components-ts/ThemeLogo.vue +0 -57
- package/components-ts/ThemeMessage.vue +0 -55
- package/components-ts/ThemeMessageBox.vue +0 -47
- package/components-ts/ThemePopover.vue +0 -557
- package/components-ts/ThemeRadio.vue +0 -169
- package/components-ts/ThemeSelect.vue +0 -237
- package/components-ts/ThemeSidebar.vue +0 -277
- package/components-ts/ThemeTable.vue +0 -305
- package/components-ts/ThemeTag.vue +0 -145
- package/components-ts/ThemeToggle.vue +0 -123
- package/components-ts/ThemeTooltip.vue +0 -191
- package/components-ts/ThemeTypo.vue +0 -65
- package/components-ts/ThemeUpload.vue +0 -92
- package/components-ts/TimusSamples.vue +0 -54
- package/components-ts/exporter.js +0 -19
- package/components-ts/interfaces.ts +0 -11
- package/components-ts/utils.ts +0 -20
- package/convert-js.js +0 -112
- package/convert-sass.js +0 -26
- package/fonts/poppins-font-face/files/Poppins-Black.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Black.svg +0 -3099
- package/fonts/poppins-font-face/files/Poppins-Black.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Black.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Black.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-BlackItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Bold.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Bold.svg +0 -3131
- package/fonts/poppins-font-face/files/Poppins-Bold.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Bold.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Bold.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-BoldItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraBold.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraBold.svg +0 -3120
- package/fonts/poppins-font-face/files/Poppins-ExtraBold.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraBoldItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraLight.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraLight.svg +0 -3245
- package/fonts/poppins-font-face/files/Poppins-ExtraLight.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraLightItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Italic.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Italic.svg +0 -3414
- package/fonts/poppins-font-face/files/Poppins-Italic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Italic.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Italic.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-Light.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Light.svg +0 -3244
- package/fonts/poppins-font-face/files/Poppins-Light.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Light.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Light.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-LightItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Medium.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Medium.svg +0 -3190
- package/fonts/poppins-font-face/files/Poppins-Medium.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Medium.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Medium.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-MediumItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Regular.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Regular.svg +0 -3213
- package/fonts/poppins-font-face/files/Poppins-Regular.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Regular.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Regular.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-SemiBold.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-SemiBold.svg +0 -3174
- package/fonts/poppins-font-face/files/Poppins-SemiBold.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-SemiBold.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-SemiBold.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-SemiBoldItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Thin.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Thin.svg +0 -3266
- package/fonts/poppins-font-face/files/Poppins-Thin.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Thin.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Thin.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-ThinItalic.ttf +0 -0
- package/fonts/poppins-font-face/stylesheet.css +0 -81
- package/images/applications/apple.png +0 -0
- package/images/applications/apple_icloud.png +0 -0
- package/images/applications/apple_itunes.png +0 -0
- package/images/applications/apple_store.png +0 -0
- package/images/applications/bloomberg.png +0 -0
- package/images/applications/chrome.png +0 -0
- package/images/applications/csgo.png +0 -0
- package/images/applications/dns.png +0 -0
- package/images/applications/dropbox.png +0 -0
- package/images/applications/evil.png +0 -0
- package/images/applications/facebook-messenger.png +0 -0
- package/images/applications/facebook.png +0 -0
- package/images/applications/ftp.png +0 -0
- package/images/applications/gmail.png +0 -0
- package/images/applications/google.png +0 -0
- package/images/applications/google_maps.png +0 -0
- package/images/applications/instagram.png +0 -0
- package/images/applications/linkedin.svg +0 -5
- package/images/applications/messenger.png +0 -0
- package/images/applications/mysql.png +0 -0
- package/images/applications/netflix.png +0 -0
- package/images/applications/nintendo.png +0 -0
- package/images/applications/sap.png +0 -0
- package/images/applications/skype.png +0 -0
- package/images/applications/slack.png +0 -0
- package/images/applications/smtp.png +0 -0
- package/images/applications/snapchat.png +0 -0
- package/images/applications/spotify.png +0 -0
- package/images/applications/ssh.png +0 -0
- package/images/applications/teamspeak.png +0 -0
- package/images/applications/tiktok.png +0 -0
- package/images/applications/twitch.png +0 -0
- package/images/applications/twitter.png +0 -0
- package/images/applications/ubuntuone.png +0 -0
- package/images/applications/utorrent.png +0 -0
- package/images/applications/website.png +0 -0
- package/images/applications/whatsapp.png +0 -0
- package/images/applications/windows-update.png +0 -0
- package/images/applications/youtube.png +0 -0
- package/images/backgrounds/login-icon.png +0 -0
- package/images/backgrounds/login.jpg +0 -0
- package/images/backgrounds/login.png +0 -0
- package/images/cards/amex.svg +0 -20
- package/images/cards/default.svg +0 -18
- package/images/cards/dina.svg +0 -12
- package/images/cards/diners.svg +0 -30
- package/images/cards/discover.svg +0 -28
- package/images/cards/eftpos.svg +0 -21
- package/images/cards/jcb.svg +0 -41
- package/images/cards/mastercard.svg +0 -5
- package/images/cards/unionpay.svg +0 -6
- package/images/cards/visa.svg +0 -3
- package/images/devices/os-android.png +0 -0
- package/images/devices/os-android.svg +0 -6
- package/images/devices/os-apple.svg +0 -4
- package/images/devices/os-default.svg +0 -5
- package/images/devices/os-ios.png +0 -0
- package/images/devices/os-ios.svg +0 -4
- package/images/devices/os-linux-debian.png +0 -0
- package/images/devices/os-linux-ubuntu.png +0 -0
- package/images/devices/os-linux.svg +0 -3
- package/images/devices/os-osx.png +0 -0
- package/images/devices/os-unknown.png +0 -0
- package/images/devices/os-windows.png +0 -0
- package/images/devices/os-windows.svg +0 -3
- package/images/devices/type-laptop-ubuntu.png +0 -0
- package/images/devices/type-laptop.png +0 -0
- package/images/devices/type-printer.png +0 -0
- package/images/devices/type-switch-cisco.png +0 -0
- package/images/logos/timus-favicon.png +0 -0
- package/images/logos/timus-icon.svg +0 -17
- package/images/logos/timus-logo-manager.svg +0 -29
- package/images/logos/timus-logo-partner.svg +0 -35
- package/images/logos/timus-logo.svg +0 -22
- package/index.d.ts +0 -6
- package/loader.js +0 -50
- package/module.js +0 -77
- package/output/main.css +0 -1
- package/plugins/html-to-string.js +0 -36
- package/plugins/js-components-installer.js +0 -22
- package/plugins/theme-provider.js +0 -72
- package/plugins/ts-components-installer.js +0 -22
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Usage:
|
|
5
|
-
* <code v-str="'<el-button>Primary</el-button>'"></code>
|
|
6
|
-
*
|
|
7
|
-
* @param {*} str
|
|
8
|
-
* @returns
|
|
9
|
-
*/
|
|
10
|
-
const StringConverter = function (str) {
|
|
11
|
-
console.log('convertera geldi', this, str);
|
|
12
|
-
// `str` parametresini HTML olarak kabul edip onu güvenli bir string'e dönüştürmelisiniz
|
|
13
|
-
|
|
14
|
-
return str.replace(/</g, '<').replace(/>/g, '>');
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
Vue.directive('str', {
|
|
18
|
-
bind: (el, binding) => {
|
|
19
|
-
// `binding.value` ile elementin içeriğini alabilirsiniz
|
|
20
|
-
const convertedString = StringConverter(binding.value);
|
|
21
|
-
|
|
22
|
-
el.innerHTML = convertedString; // İçeriği güncelleyin
|
|
23
|
-
el.style.opacity = '0';
|
|
24
|
-
console.log('bind', el);
|
|
25
|
-
},
|
|
26
|
-
inserted: (el) => {
|
|
27
|
-
el.style.opacity = '1';
|
|
28
|
-
console.log('insert', el);
|
|
29
|
-
},
|
|
30
|
-
update: (el, binding) => {
|
|
31
|
-
const convertedString = StringConverter(binding.value);
|
|
32
|
-
|
|
33
|
-
el.innerHTML = convertedString;
|
|
34
|
-
console.log('update', el);
|
|
35
|
-
},
|
|
36
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue';
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line no-restricted-imports
|
|
4
|
-
import components from '../components-js/exporter';
|
|
5
|
-
|
|
6
|
-
// get options passed from module.js
|
|
7
|
-
const options = JSON.parse(`<%= JSON.stringify(options) %>`);
|
|
8
|
-
|
|
9
|
-
// loop through components and register them
|
|
10
|
-
for (const name in components) {
|
|
11
|
-
Vue.component(name, {
|
|
12
|
-
// extend the original component
|
|
13
|
-
extends: components[name],
|
|
14
|
-
// add a _customCounterOptions prop to gain access to the options in the component
|
|
15
|
-
props: {
|
|
16
|
-
timus: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default: () => ({ ...options }),
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Helper functions to handle localStorage safely
|
|
5
|
-
*/
|
|
6
|
-
function getDarkModeFromLocalStorage() {
|
|
7
|
-
return process.client && localStorage.getItem('darkMode') === 'true';
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function setDarkModeToLocalStorage(value) {
|
|
11
|
-
if (process.client) {
|
|
12
|
-
localStorage.setItem('darkMode', value.toString());
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function setHtmlDarkClass(isDark) {
|
|
17
|
-
if (process.client) {
|
|
18
|
-
const htmlElement = document.documentElement;
|
|
19
|
-
|
|
20
|
-
if (isDark) {
|
|
21
|
-
htmlElement.classList.add('dark');
|
|
22
|
-
} else {
|
|
23
|
-
htmlElement.classList.remove('dark');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* ThemeProvider: A Vue instance to provide theme related functionalities.
|
|
30
|
-
*
|
|
31
|
-
* Usage:
|
|
32
|
-
* - Change the theme on button click:
|
|
33
|
-
* this.$theme.setDarkMode(!this.$theme.isDark);
|
|
34
|
-
*
|
|
35
|
-
* - Register the theme change listener:
|
|
36
|
-
* this.$theme.$on('darkMode', (value) => { console.log('darkMode:', value); });
|
|
37
|
-
*/
|
|
38
|
-
export const ThemeProvider = new Vue({
|
|
39
|
-
data() {
|
|
40
|
-
return {
|
|
41
|
-
isDarkMode: getDarkModeFromLocalStorage(),
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
computed: {
|
|
45
|
-
isDark: {
|
|
46
|
-
get() {
|
|
47
|
-
return this.isDarkMode;
|
|
48
|
-
},
|
|
49
|
-
set(value) {
|
|
50
|
-
this.isDarkMode = value;
|
|
51
|
-
setDarkModeToLocalStorage(value);
|
|
52
|
-
this.$emit('darkMode', value);
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
watch: {
|
|
57
|
-
isDark(newVal) {
|
|
58
|
-
setHtmlDarkClass(newVal);
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
created() {
|
|
62
|
-
setHtmlDarkClass(this.isDark); // Sayfa yüklendiğinde fonksiyonu manuel olarak tetikle
|
|
63
|
-
},
|
|
64
|
-
methods: {
|
|
65
|
-
setDarkMode(value) {
|
|
66
|
-
this.isDark = value; // This will trigger the setter of isDark.
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
});
|
|
70
|
-
export default (context, inject) => {
|
|
71
|
-
inject('theme', ThemeProvider);
|
|
72
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue';
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line no-restricted-imports
|
|
4
|
-
import components from '../components-ts/exporter';
|
|
5
|
-
|
|
6
|
-
// get options passed from module.js
|
|
7
|
-
const options = JSON.parse(`<%= JSON.stringify(options) %>`);
|
|
8
|
-
|
|
9
|
-
// loop through components and register them
|
|
10
|
-
for (const name in components) {
|
|
11
|
-
Vue.component(name, {
|
|
12
|
-
// extend the original component
|
|
13
|
-
extends: components[name],
|
|
14
|
-
// add a _customCounterOptions prop to gain access to the options in the component
|
|
15
|
-
props: {
|
|
16
|
-
timus: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default: () => ({ ...options }),
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
}
|