mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
imagesimilarity Update
This commit is contained in:
parent
187056380e
commit
2ad0a5d0dc
10 changed files with 221 additions and 27 deletions
|
|
@ -42,7 +42,7 @@ export const MENU_ITEMS: NbMenuItem[] = [
|
||||||
{
|
{
|
||||||
title: 'Image Similarity',
|
title: 'Image Similarity',
|
||||||
icon: 'image-outline',
|
icon: 'image-outline',
|
||||||
link: '/pages/ui-features/icons',
|
link: '/pages/settings/imagesimilarity',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'SERP',
|
title: 'SERP',
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
<nb-card>
|
||||||
|
<nb-card-header>
|
||||||
|
Image Similarity (Sentisight AI Pre-Training Dataset)
|
||||||
|
</nb-card-header>
|
||||||
|
|
||||||
|
<nb-card-body>
|
||||||
|
<ng2-smart-table [settings]="settings" [source]="source" (deleteConfirm)="onDeleteConfirm($event)">
|
||||||
|
</ng2-smart-table>
|
||||||
|
</nb-card-body>
|
||||||
|
</nb-card>
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
@import '../../../@theme/styles/themes';
|
||||||
|
|
||||||
|
@include nb-install-component() {
|
||||||
|
nb-card {
|
||||||
|
transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,9 +1,29 @@
|
||||||
<nb-card>
|
<nb-card>
|
||||||
|
<nb-card-header>
|
||||||
|
keyword Dictionary Library
|
||||||
|
</nb-card-header>
|
||||||
<nb-card-body>
|
<nb-card-body>
|
||||||
|
|
||||||
<label class="search-label" for="search">Search:</label>
|
<label class="search-label" for="search">Search:</label>
|
||||||
<input nbInput [nbFilterInput]="dataSource" id="search" class="search-input">
|
<input nbInput [nbFilterInput]="dataSource" id="search" class="search-input">
|
||||||
|
<nb-card>
|
||||||
|
<nb-card-body>
|
||||||
|
<nb-actions size="medium" fullWidth>
|
||||||
|
<nb-action>
|
||||||
|
<nb-icon class="action-icon" icon="plus-circle-outline" onclick="alert('123')"></nb-icon>
|
||||||
|
<span>Add New Keyword</span>
|
||||||
|
</nb-action>
|
||||||
|
<nb-action>
|
||||||
|
<nb-icon class="action-icon" icon="edit-outline"></nb-icon>
|
||||||
|
<span>Edit Selected Keyword</span>
|
||||||
|
</nb-action>
|
||||||
|
<nb-action>
|
||||||
|
<nb-icon class="action-icon" icon="close-circle-outline"></nb-icon>
|
||||||
|
<span>Deactivate Selected Keyword</span>
|
||||||
|
</nb-action>
|
||||||
|
</nb-actions>
|
||||||
|
</nb-card-body>
|
||||||
|
</nb-card>
|
||||||
<table [nbTreeGrid]="dataSource" [nbSort]="dataSource" (sort)="updateSort($event)">
|
<table [nbTreeGrid]="dataSource" [nbSort]="dataSource" (sort)="updateSort($event)">
|
||||||
|
|
||||||
<tr nbTreeGridHeaderRow *nbTreeGridHeaderRowDef="allColumns"></tr>
|
<tr nbTreeGridHeaderRow *nbTreeGridHeaderRowDef="allColumns"></tr>
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nb-column-name {
|
.nb-column-Title {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -28,14 +28,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 400px) {
|
@media screen and (min-width: 400px) {
|
||||||
.nb-column-name,
|
.nb-column-Title,
|
||||||
.nb-column-size {
|
.nb-column-size {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 500px) {
|
@media screen and (min-width: 500px) {
|
||||||
.nb-column-name,
|
.nb-column-Title,
|
||||||
.nb-column-size,
|
.nb-column-size,
|
||||||
.nb-column-kind {
|
.nb-column-kind {
|
||||||
width: 33.333%;
|
width: 33.333%;
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 600px) {
|
@media screen and (min-width: 600px) {
|
||||||
.nb-column-name {
|
.nb-column-Title {
|
||||||
width: 31%;
|
width: 31%;
|
||||||
}
|
}
|
||||||
.nb-column-size,
|
.nb-column-size,
|
||||||
|
|
@ -52,4 +52,6 @@
|
||||||
width: 23%;
|
width: 23%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ interface TreeNode<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface FSEntry {
|
interface FSEntry {
|
||||||
name: string;
|
Title: string;
|
||||||
size: string;
|
Level: string;
|
||||||
kind: string;
|
Parent: string;
|
||||||
items?: number;
|
Score?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
@ -20,8 +20,8 @@ interface FSEntry {
|
||||||
styleUrls: ['./keywordsdictionary.component.scss'],
|
styleUrls: ['./keywordsdictionary.component.scss'],
|
||||||
})
|
})
|
||||||
export class KeywordsDictionaryComponent {
|
export class KeywordsDictionaryComponent {
|
||||||
customColumn = 'name';
|
customColumn = 'Title';
|
||||||
defaultColumns = [ 'size', 'kind', 'items' ];
|
defaultColumns = [ 'Level', 'Parent', 'Score' ];
|
||||||
allColumns = [ this.customColumn, ...this.defaultColumns ];
|
allColumns = [ this.customColumn, ...this.defaultColumns ];
|
||||||
|
|
||||||
dataSource: NbTreeGridDataSource<FSEntry>;
|
dataSource: NbTreeGridDataSource<FSEntry>;
|
||||||
|
|
@ -47,26 +47,101 @@ export class KeywordsDictionaryComponent {
|
||||||
|
|
||||||
private data: TreeNode<FSEntry>[] = [
|
private data: TreeNode<FSEntry>[] = [
|
||||||
{
|
{
|
||||||
data: { name: 'Projects', size: '1.8 MB', items: 5, kind: 'dir' },
|
data: { Title: 'Promotioon', Level: '0', Parent: '0', Score: 108 },
|
||||||
children: [
|
children: [
|
||||||
{ data: { name: 'project-1.doc', kind: 'doc', size: '240 KB' } },
|
{
|
||||||
{ data: { name: 'project-2.doc', kind: 'doc', size: '290 KB' } },
|
data: { Title: 'Bonus', Level: '1', Parent: '0', Score: 43 },
|
||||||
{ data: { name: 'project-3', kind: 'txt', size: '466 KB' } },
|
children: [
|
||||||
{ data: { name: 'project-4.docx', kind: 'docx', size: '900 KB' } },
|
{ data: { Title: 'Welcome Bonus', Level: '2', Parent: '1', Score: 9} },
|
||||||
|
{ data: { Title: 'Daily Bonus', Level: '2', Parent: '1', Score: 9} },
|
||||||
|
{ data: { Title: 'Topup Bonus', Level: '2', Parent: '1', Score: 9} },
|
||||||
|
{ data: { Title: 'Extra Bonus', Level: '2', Parent: '1', Score: 9} },
|
||||||
|
{ data: { Title: 'Free Angpao', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
data: { Title: 'Jackpot', Level: '1', Parent: '0', Score: 24 },
|
||||||
|
children: [
|
||||||
|
{ data: { Title: 'Daily Jackpots', Level: '2', Parent: '1', Score: 8} },
|
||||||
|
{ data: { Title: 'Progressive Jackpot', Level: '2', Parent: '1', Score: 8} },
|
||||||
|
{ data: { Title: 'Pooled Jackpot', Level: '2', Parent: '1', Score: 8} },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
data: { Title: 'Rebate', Level: '1', Parent: '0', Score: 41 },
|
||||||
|
children: [
|
||||||
|
{ data: { Title: 'Friend Refer', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Free Credit', Level: '2', Parent: '1', Score: 8} },
|
||||||
|
{ data: { Title: 'New Member', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Deposit', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Affiliate', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Redeem Point', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Cashout', Level: '2', Parent: '1', Score: 8} },
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
data: { name: 'Reports', kind: 'dir', size: '400 KB', items: 2 },
|
data: { Title: 'Advertisement', Level: '0', Parent: '0', Score: 137 },
|
||||||
children: [
|
children: [
|
||||||
{ data: { name: 'Report 1', kind: 'doc', size: '100 KB' } },
|
{ data: { Title: 'Slogan', Level: '1', Parent: '0', Score: 137 },
|
||||||
{ data: { name: 'Report 2', kind: 'doc', size: '300 KB' } },
|
children: [
|
||||||
|
{ data: { Title: 'Most Trusted Comapany', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'Trusted Agent', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'Top Slot ', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'Betting & Gambling', Level: '2', Parent: '1', Score: 10} },
|
||||||
|
{ data: { Title: 'HOT', Level: '2', Parent: '1', Score: 3} },
|
||||||
|
{ data: { Title: 'Fast Processing', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Real Money', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Fast Withdrawal', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'Play Now', Level: '2', Parent: '1', Score: 2} },
|
||||||
|
{ data: { Title: 'Download Now', Level: '2', Parent: '1', Score: 2} },
|
||||||
|
{ data: { Title: 'Available Now', Level: '2', Parent: '1', Score: 2} },
|
||||||
|
{ data: { Title: 'Rollover', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Turnover', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Lucky Win', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Easy Win', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'Big Win', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'ID Ong', Level: '2', Parent: '1', Score: 9} },
|
||||||
|
{ data: { Title: 'Money Fever', Level: '2', Parent: '1', Score: 8} },
|
||||||
|
{ data: { Title: 'Safety Gaming Platform', Level: '2', Parent: '1', Score: 8} },
|
||||||
|
{ data: { Title: 'High Payout', Level: '2', Parent: '1', Score: 8} },
|
||||||
|
{ data: { Title: 'Games Tips', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'Ambassadors', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Collaborate Partners', Level: '2', Parent: '1', Score: 3} },
|
||||||
|
{ data: { Title: 'Crypto Currency', Level: '2', Parent: '1', Score: 3} },
|
||||||
|
|
||||||
|
],},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
data: { name: 'Other', kind: 'dir', size: '109 MB', items: 2 },
|
data: { Title: 'Common', Level: '0', Parent: '0', Score: 88 },
|
||||||
children: [
|
children: [
|
||||||
{ data: { name: 'backup.bkp', kind: 'bkp', size: '107 MB' } },
|
{
|
||||||
{ data: { name: 'secret-note.txt', kind: 'txt', size: '2 MB' } },
|
data: { Title: 'Game Related', Level: '1', Parent: '0', Score: 88 },
|
||||||
|
children: [
|
||||||
|
{ data: { Title: 'Balance', Level: '2', Parent: '1', Score: 3} },
|
||||||
|
{ data: { Title: 'Bet', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'Lines', Level: '2', Parent: '1', Score: 2} },
|
||||||
|
{ data: { Title: 'Spin', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Auto Spin', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Mini', Level: '2', Parent: '1', Score: 3} },
|
||||||
|
{ data: { Title: 'Minor', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Major', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Mega', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Random', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Ultimate', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
{ data: { Title: 'Wild', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'Free Spin', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'Scatter', Level: '2', Parent: '1', Score: 7} },
|
||||||
|
{ data: { Title: 'Lucky Draw', Level: '2', Parent: '1', Score: 6} },
|
||||||
|
{ data: { Title: 'Bank Account', Level: '2', Parent: '1', Score: 3} },
|
||||||
|
{ data: { Title: 'Payment Gateway', Level: '2', Parent: '1', Score: 3} },
|
||||||
|
{ data: { Title: '24 / 7', Level: '2', Parent: '1', Score: 5} },
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { SettingsComponent } from './settings.component';
|
import { SettingsComponent } from './settings.component';
|
||||||
import { KeywordsDictionaryComponent } from './keywordsdictionary/keywordsdictionary.component';
|
import { KeywordsDictionaryComponent } from './keywordsdictionary/keywordsdictionary.component';
|
||||||
|
import { ImageSimilarityComponent } from './imagesimilarity/imagesimilarity.component';
|
||||||
|
|
||||||
const routes: Routes = [{
|
const routes: Routes = [{
|
||||||
path: '',
|
path: '',
|
||||||
|
|
@ -12,6 +13,10 @@ const routes: Routes = [{
|
||||||
path: 'keywordsdictionary',
|
path: 'keywordsdictionary',
|
||||||
component: KeywordsDictionaryComponent,
|
component: KeywordsDictionaryComponent,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'imagesimilarity',
|
||||||
|
component: ImageSimilarityComponent,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|
@ -24,4 +29,5 @@ export class SettingsRoutingModule { }
|
||||||
export const routedComponents = [
|
export const routedComponents = [
|
||||||
SettingsComponent,
|
SettingsComponent,
|
||||||
KeywordsDictionaryComponent,
|
KeywordsDictionaryComponent,
|
||||||
|
ImageSimilarityComponent,
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { NbCardModule, NbIconModule, NbInputModule, NbTreeGridModule } from '@nebular/theme';
|
import { NbCardModule, NbIconModule, NbInputModule, NbTreeGridModule,NbActionsModule } from '@nebular/theme';
|
||||||
import { Ng2SmartTableModule } from 'ng2-smart-table';
|
import { Ng2SmartTableModule } from 'ng2-smart-table';
|
||||||
|
import { FormsModule as ngFormsModule } from '@angular/forms';
|
||||||
import { ThemeModule } from '../../@theme/theme.module';
|
import { ThemeModule } from '../../@theme/theme.module';
|
||||||
import { SettingsRoutingModule, routedComponents } from './settings-routing.module';
|
import { SettingsRoutingModule, routedComponents } from './settings-routing.module';
|
||||||
import { FsIconComponent } from './keywordsdictionary/keywordsdictionary.component';
|
import { FsIconComponent } from './keywordsdictionary/keywordsdictionary.component';
|
||||||
|
|
@ -15,6 +15,8 @@ import { FsIconComponent } from './keywordsdictionary/keywordsdictionary.compone
|
||||||
ThemeModule,
|
ThemeModule,
|
||||||
SettingsRoutingModule,
|
SettingsRoutingModule,
|
||||||
Ng2SmartTableModule,
|
Ng2SmartTableModule,
|
||||||
|
NbActionsModule,
|
||||||
|
ngFormsModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...routedComponents,
|
...routedComponents,
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Klikx SEO Admin Portal</title>
|
<title>Klikx SEO Admin Portal</title>
|
||||||
|
|
||||||
<base href="/SEO/">
|
<!-- <base href="/SEO/"> -->
|
||||||
<!-- <base href="/"> -->
|
<base href="/">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" type="image/png" href="favicon.png">
|
<link rel="icon" type="image/png" href="favicon.png">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue