@timus-networks/theme 1.0.184 → 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.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 -5
- 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,19 +0,0 @@
|
|
|
1
|
-
const components = {};
|
|
2
|
-
const requireComponent = require.context(
|
|
3
|
-
'.', // read from current directory
|
|
4
|
-
false, // don't look in subdirectories
|
|
5
|
-
/[A-Z]\w+\.(vue)$/, // only look for Vue files
|
|
6
|
-
// EXPERIMENTAL: /[A-Z]\w+\.(vue|js)$/, // only look for Vue or JS files
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
requireComponent.keys().forEach((fileName) => {
|
|
10
|
-
const componentConfig = requireComponent(fileName);
|
|
11
|
-
const componentName = fileName
|
|
12
|
-
.split('/')
|
|
13
|
-
.pop()
|
|
14
|
-
.replace(/\.\w+$/, ''); // remove file extension and set file name as component name
|
|
15
|
-
|
|
16
|
-
components[componentName] = componentConfig.default || componentConfig;
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export default components;
|
package/components-ts/utils.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export class Utils {
|
|
2
|
-
private timeout: ReturnType<typeof setTimeout> | null = null;
|
|
3
|
-
|
|
4
|
-
debounce(func: Function, delay: number) {
|
|
5
|
-
return (...args: any[]) => {
|
|
6
|
-
if (this.timeout !== null) {
|
|
7
|
-
clearTimeout(this.timeout);
|
|
8
|
-
}
|
|
9
|
-
this.timeout = setTimeout(() => {
|
|
10
|
-
func(...args);
|
|
11
|
-
}, delay);
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
generateRandomId(): string {
|
|
16
|
-
return Date.now().toString(36) + Math.random().toString(36).slice(2, 9);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const utils = new Utils();
|
package/convert-js.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const { execSync } = require('child_process');
|
|
4
|
-
const glob = require('glob');
|
|
5
|
-
|
|
6
|
-
// Eğer 'components-js' klasörü varsa sil
|
|
7
|
-
if (fs.existsSync('components-js')) {
|
|
8
|
-
fs.rmSync('components-js', { recursive: true, force: true });
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// Yeni bir 'components-js' klasörü oluştur
|
|
12
|
-
fs.mkdirSync('components-js');
|
|
13
|
-
|
|
14
|
-
// components'in içerisindeki her şeyi output'a kopyala
|
|
15
|
-
const copyRecursiveSync = function (src, dest) {
|
|
16
|
-
const exists = fs.existsSync(src);
|
|
17
|
-
const stats = exists && fs.statSync(src);
|
|
18
|
-
const isDirectory = exists && stats.isDirectory();
|
|
19
|
-
|
|
20
|
-
if (exists && isDirectory) {
|
|
21
|
-
if (!fs.existsSync(dest)) { fs.mkdirSync(dest); }
|
|
22
|
-
fs.readdirSync(src).forEach((childItemName) => {
|
|
23
|
-
copyRecursiveSync(path.join(src, childItemName), path.join(dest, childItemName));
|
|
24
|
-
});
|
|
25
|
-
} else {
|
|
26
|
-
fs.copyFileSync(src, dest);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
copyRecursiveSync('./components-ts', './components-js');
|
|
31
|
-
|
|
32
|
-
// output klasöründeki .vue dosyalarını bul
|
|
33
|
-
const vueFiles = glob.sync('./components-js/**/*.{vue,ts}');
|
|
34
|
-
|
|
35
|
-
vueFiles.forEach((file) => {
|
|
36
|
-
const content = fs.readFileSync(file, 'utf-8');
|
|
37
|
-
const scriptMatch = content.match(/<script lang="ts">(.*?)<\/script>/s);
|
|
38
|
-
let tsFilePath;
|
|
39
|
-
|
|
40
|
-
if (content) {
|
|
41
|
-
if (scriptMatch) {
|
|
42
|
-
let tsCode = scriptMatch[1];
|
|
43
|
-
|
|
44
|
-
tsCode = tsCode.replace(/import .*?from '.*?.vue';/g, (match) => `// ${match}`);
|
|
45
|
-
|
|
46
|
-
tsFilePath = file.replace('.vue', '.temp.ts');
|
|
47
|
-
fs.writeFileSync(tsFilePath, tsCode, 'utf-8');
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
let hasError = false;
|
|
51
|
-
const tscPath = path.resolve(__dirname, '../../../node_modules/.bin/tsc');
|
|
52
|
-
|
|
53
|
-
try {
|
|
54
|
-
execSync(`${tscPath} ${scriptMatch ? tsFilePath : file} --allowJs false --module esnext --target esnext --declaration true`, {
|
|
55
|
-
encoding: 'utf8',
|
|
56
|
-
});
|
|
57
|
-
} catch (e) {
|
|
58
|
-
// console.error("### Derleme hatası:", tsFilePath, e);
|
|
59
|
-
// console.error('DERLEME HATASI: ', e.stdout.toString());
|
|
60
|
-
hasError = true;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (tsFilePath && hasError) {
|
|
64
|
-
// temp.d.ts dosyasını yeniden oluştur ve adını
|
|
65
|
-
const tsOutputFilePath = tsFilePath.replace('.temp.ts', '.temp.d.ts');
|
|
66
|
-
const desiredOutputFilePath = tsFilePath.replace('.temp.ts', '.d.ts');
|
|
67
|
-
|
|
68
|
-
if (fs.existsSync(tsOutputFilePath)) {
|
|
69
|
-
fs.renameSync(tsOutputFilePath, desiredOutputFilePath);
|
|
70
|
-
}
|
|
71
|
-
const jsCode = fs.readFileSync(tsFilePath.replace('.ts', '.js'), 'utf-8');
|
|
72
|
-
const finalJsCode = jsCode.replace(/\/\/ import/g, 'import');
|
|
73
|
-
const newContent = content.replace(/<script lang="ts">(.*?)<\/script>/s, `<script>${finalJsCode}</script>`);
|
|
74
|
-
|
|
75
|
-
fs.writeFileSync(file, newContent, 'utf-8');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (scriptMatch) {
|
|
79
|
-
// Dosyaları sil
|
|
80
|
-
if (fs.existsSync(tsFilePath)) { fs.unlinkSync(tsFilePath); }
|
|
81
|
-
if (fs.existsSync(tsFilePath.replace('.ts', '.js'))) { fs.unlinkSync(tsFilePath.replace('.ts', '.js')); }
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
// vueFiles.forEach döngüsünden sonra
|
|
87
|
-
const declarationFiles = glob.sync('./components-js/**/*.d.ts');
|
|
88
|
-
// Bu dosyaları import eden bir index.d.ts oluştur
|
|
89
|
-
const imports = declarationFiles
|
|
90
|
-
.map((file) => {
|
|
91
|
-
// Dosya yolundan modül adını elde etmek için gereken işlemler
|
|
92
|
-
let modulePath = path.relative('.', file);
|
|
93
|
-
|
|
94
|
-
modulePath = modulePath.replace('.d.ts', '');
|
|
95
|
-
modulePath = modulePath.replace(/\\/g, '/'); // Windows için ters eğik çizgileri düzelt
|
|
96
|
-
|
|
97
|
-
return `export * from './${modulePath}';`;
|
|
98
|
-
})
|
|
99
|
-
.join('\n');
|
|
100
|
-
|
|
101
|
-
fs.writeFileSync('./index.d.ts', imports);
|
|
102
|
-
|
|
103
|
-
const tsFiles = glob.sync('./components-js/**/*.ts');
|
|
104
|
-
|
|
105
|
-
tsFiles.forEach((file) => {
|
|
106
|
-
if (!file.endsWith('.d.ts') && fs.existsSync(file)) {
|
|
107
|
-
fs.unlinkSync(file);
|
|
108
|
-
console.log(`### Ts dosyası silindi: ${file}`);
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
console.log('### index.d.ts dosyası oluşturuldu.');
|
package/convert-sass.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const sass = require('sass');
|
|
4
|
-
// SCSS dosyasını oku
|
|
5
|
-
const importScssPath = path.resolve(__dirname, 'scss/main.scss');
|
|
6
|
-
const outputCssPath = path.resolve(__dirname, 'output/main.css');
|
|
7
|
-
|
|
8
|
-
// Yeni API kullanarak SCSS dosyasını compile edin
|
|
9
|
-
function compileSass() {
|
|
10
|
-
try {
|
|
11
|
-
const result = sass.compile(importScssPath, { style: 'compressed' });
|
|
12
|
-
|
|
13
|
-
// Eğer output klasörü yoksa oluştur
|
|
14
|
-
if (!fs.existsSync(path.dirname(outputCssPath))) {
|
|
15
|
-
fs.mkdirSync(path.dirname(outputCssPath), { recursive: true });
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// CSS dosyasını kaydedin
|
|
19
|
-
fs.writeFileSync(outputCssPath, result.css);
|
|
20
|
-
console.log('### @timus-networks/theme SCSS compiled successfully.');
|
|
21
|
-
} catch (err) {
|
|
22
|
-
console.error('### @timus-networks/theme SCSS compile error:', err);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
compileSass();
|
|
Binary file
|