code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
<template>
<div>
<!-- auto refresh row -->
<el-row>
<el-col>
<div style="float: right;">
<el-tag type="info">
<i class="el-icon-refresh"></i>
{{ $t('message.auto_refresh') }}
</el-tag>
<el-tooltip class="item" effect="dark" :content="$t('message.auto_refresh_ti... | 2301_77204479/AnotherRedisDesktopManager | src/components/Status.vue | Vue | mit | 12,008 |
<template>
<div>
<el-tabs ref="tabs" class='tabs-container' v-model="selectedTabName" type="card" closable @tab-remove="removeTab" @tab-click="tabClick">
<el-tab-pane
v-for="(item) in tabs"
:key="item.name"
:name="item.name">
<span slot="label" :title="item.title">
... | 2301_77204479/AnotherRedisDesktopManager | src/components/Tabs.vue | Vue | mit | 12,671 |
<template>
</template>
<script type="text/javascript">
import { ipcRenderer } from 'electron';
export default {
data() {
return {
manual: false,
updateChecking: false,
downloadProcessShow: false,
};
},
created() {
this.$bus.$on('update-check', (manual = false) => {
this.manua... | 2301_77204479/AnotherRedisDesktopManager | src/components/UpdateCheck.vue | Vue | mit | 4,062 |
<template>
<div>
<!-- table toolbar -->
<div>
<!-- add button -->
<el-button type="primary" @click="showEditDialog({})">{{ $t('message.add_new_line') }}</el-button>
<!-- edit & add dialog -->
<el-dialog :title="dialogTitle" :visible.sync="editDialog" @open="openDialog" :close-on-click... | 2301_77204479/AnotherRedisDesktopManager | src/components/contents/KeyContentHash.vue | Vue | mit | 10,828 |
<template>
<div>
<!-- table toolbar -->
<div>
<!-- add button -->
<el-button type="primary" @click="showEditDialog({})">{{ $t('message.add_new_line') }}</el-button>
<!-- edit & add dialog -->
<el-dialog :title="dialogTitle" :visible.sync="editDialog" @open="openDialog" :close-on-click... | 2301_77204479/AnotherRedisDesktopManager | src/components/contents/KeyContentList.vue | Vue | mit | 9,257 |
<template>
<el-form class='key-content-string'>
<!-- key content textarea -->
<el-form-item>
<FormatViewer
ref='formatViewer'
:content='content'
:binary='binary'
:redisKey='redisKey'
float=''>
</FormatViewer>
</el-form-item>
<!-- save btn -->
<el-button ref='saveBtn' typ... | 2301_77204479/AnotherRedisDesktopManager | src/components/contents/KeyContentReJson.vue | Vue | mit | 2,613 |
<template>
<div>
<!-- table toolbar -->
<div>
<!-- add button -->
<el-button type="primary" @click="showEditDialog({})">{{ $t('message.add_new_line') }}</el-button>
<!-- edit & add dialog -->
<el-dialog :title="dialogTitle" :visible.sync="editDialog" @open="openDialog" :close-on-click... | 2301_77204479/AnotherRedisDesktopManager | src/components/contents/KeyContentSet.vue | Vue | mit | 8,729 |
<template>
<div class="key-content-stream">
<!-- table toolbar -->
<div>
<el-form :inline="true">
<el-form-item>
<!-- add button -->
<el-button type="primary" @click='showEditDialog({id:"*"})'>{{ $t('message.add_new_line') }}</el-button>
<!-- groups info -->
... | 2301_77204479/AnotherRedisDesktopManager | src/components/contents/KeyContentStream.vue | Vue | mit | 13,470 |
<template>
<el-form class='key-content-string'>
<!-- key content textarea -->
<el-form-item>
<FormatViewer
ref='formatViewer'
:content='content'
:binary='binary'
:redisKey='redisKey'
float=''>
</FormatViewer>
</el-form-item>
<!-- save btn -->
<el-button ref='saveBtn' typ... | 2301_77204479/AnotherRedisDesktopManager | src/components/contents/KeyContentString.vue | Vue | mit | 2,580 |
<template>
<div>
<!-- table toolbar -->
<div>
<!-- add button -->
<el-button type="primary" @click="showEditDialog({})">{{ $t('message.add_new_line') }}</el-button>
<!-- edit & add dialog -->
<el-dialog :title="dialogTitle" :visible.sync="editDialog" @open="openDialog" :close-on-click... | 2301_77204479/AnotherRedisDesktopManager | src/components/contents/KeyContentZset.vue | Vue | mit | 9,931 |
<template>
<div>
<!-- </textarea> -->
<el-input ref='textInput' :disabled='disabled' type='textarea' v-model='contentDisplay'></el-input>
</div>
</template>
<script type="text/javascript">
export default {
data() {
return {
contentDisplay: '',
};
},
props: ['content', 'contentVisible', ... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerBinary.vue | Vue | mit | 656 |
<template>
<JsonEditor ref='editor' :content='newContent' :readOnly='false'></JsonEditor>
</template>
<script type="text/javascript">
import JsonEditor from '@/components/JsonEditor';
const JSONbig = require('@qii404/json-bigint')({ useNativeBigInt: false });
const zlib = require('zlib');
export default {
compon... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerBrotli.vue | Vue | mit | 972 |
<template>
<JsonEditor ref='editor' :content='newContent' class='viewer-custom-editor'>
<p :title="fullCommand" class="command-preview">
<el-button size="mini" class="viewer-custom-copy-raw"
:title='$t("message.copy")' icon="el-icon-document" type="text"
@click="$util.copyToClipboard(fullCom... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerCustom.vue | Vue | mit | 4,834 |
<template>
<JsonEditor ref='editor' :content='newContent' :readOnly='false'></JsonEditor>
</template>
<script type="text/javascript">
import JsonEditor from '@/components/JsonEditor';
const JSONbig = require('@qii404/json-bigint')({ useNativeBigInt: false });
const zlib = require('zlib');
export default {
compon... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerDeflate.vue | Vue | mit | 967 |
<template>
<JsonEditor ref='editor' :content='newContent' :readOnly='false'></JsonEditor>
</template>
<script type="text/javascript">
import JsonEditor from '@/components/JsonEditor';
const JSONbig = require('@qii404/json-bigint')({ useNativeBigInt: false });
const zlib = require('zlib');
export default {
compon... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerDeflateRaw.vue | Vue | mit | 976 |
<template>
<JsonEditor ref='editor' :content='newContent' :readOnly='false'></JsonEditor>
</template>
<script type="text/javascript">
import JsonEditor from '@/components/JsonEditor';
const JSONbig = require('@qii404/json-bigint')({ useNativeBigInt: false });
const zlib = require('zlib');
export default {
compon... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerGzip.vue | Vue | mit | 958 |
<template>
<div>
<!-- </textarea> -->
<el-input ref='textInput' :disabled='disabled' type='textarea' v-model='contentDisplay'></el-input>
</div>
</template>
<script type="text/javascript">
export default {
data() {
return {
contentDisplay: '',
};
},
props: ['content', 'contentVisible', ... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerHex.vue | Vue | mit | 645 |
<template>
<JsonEditor ref='editor' :content='newContent' :readOnly='true'></JsonEditor>
</template>
<script type="text/javascript">
import JsonEditor from '@/components/JsonEditor';
import { ObjectInputStream } from 'java-object-serialization';
export default {
props: ['content'],
components: { JsonEditor },
... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerJavaSerialize.vue | Vue | mit | 975 |
<template>
<JsonEditor ref='editor' :content='newContent' :readOnly='disabled||false'></JsonEditor>
</template>
<script type="text/javascript">
import JsonEditor from '@/components/JsonEditor';
const JSONbig = require('@qii404/json-bigint')({ useNativeBigInt: false });
export default {
props: ['content', 'disabl... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerJson.vue | Vue | mit | 1,203 |
<template>
<JsonEditor ref='editor' :content='newContent' :readOnly='false'></JsonEditor>
</template>
<script type="text/javascript">
import JsonEditor from '@/components/JsonEditor';
import { decode, encode } from 'algo-msgpack-with-bigint';
const JSONbig = require('@qii404/json-bigint')({ useNativeBigInt: true })... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerMsgpack.vue | Vue | mit | 1,323 |
<template>
<div class="size-too-large-viewer">
<el-alert
:closable='false'
:title='alertTitle'
type="error">
</el-alert>
<el-input :disabled='true' type='textarea' :value='contentDisplay'></el-input>
</div>
</template>
<script type="text/javascript">
export default {
data() {
re... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerOverSize.vue | Vue | mit | 1,067 |
<template>
<JsonEditor ref='editor' :content='newContent' :readOnly='isPHPClass'></JsonEditor>
</template>
<script type="text/javascript">
import JsonEditor from '@/components/JsonEditor';
import { unserialize, serialize } from 'php-serialize';
export default {
props: ['content'],
data() {
return {
i... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerPHPSerialize.vue | Vue | mit | 1,288 |
<template>
<JsonEditor ref='editor' :content='newContent' :readOnly='true'></JsonEditor>
</template>
<script type="text/javascript">
import JsonEditor from '@/components/JsonEditor';
import { Parser } from 'pickleparser';
export default {
props: ['content'],
components: { JsonEditor },
computed: {
newCont... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerPickle.vue | Vue | mit | 677 |
<template>
<JsonEditor ref='editor' :content='newContent' :readOnly='false' class='protobuf-viewer'>
<div class="viewer-protobuf-header">
<!-- type selector -->
<el-select v-model="selectedType" filterable placeholder="Select Type" size="mini" class="type-selector">
<el-option
v-for=... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerProtobuf.vue | Vue | mit | 4,171 |
<template>
<div>
<!-- </textarea> -->
<el-input ref='textInput' :disabled='disabled' type='textarea' v-model='contentDisplay' @input='inputContent'>
</el-input>
</div>
</template>
<script type="text/javascript">
export default {
data() {
return {
confirmChange: false,
contentDisplay: ... | 2301_77204479/AnotherRedisDesktopManager | src/components/viewers/ViewerText.vue | Vue | mit | 1,355 |
import Vue from 'vue';
import VueI18n from 'vue-i18n';
import locale from 'element-ui/lib/locale';
import enLocale from 'element-ui/lib/locale/lang/en';
import zhLocale from 'element-ui/lib/locale/lang/zh-CN';
import zhTwLocale from 'element-ui/lib/locale/lang/zh-TW';
import trTrLocale from 'element-ui/lib/locale/lang... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/i18n.js | JavaScript | mit | 1,812 |
const cn = {
message: {
new_connection: '新建连接',
refresh_connection: '刷新',
edit_connection: '编辑连接',
duplicate_connection: '复制连接',
del_connection: '删除连接',
close_connection: '关闭连接',
add_new_line: '添加新行',
dump_to_clipboard: '复制为命令',
redis_version: 'Redis版本',
process_id: '进程ID',
... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/cn.js | JavaScript | mit | 8,382 |
const de = {
message: {
new_connection: 'Neue Verbindung',
refresh_connection: 'Aktualisieren',
edit_connection: 'Verbindung bearbeiten',
duplicate_connection: 'Verbindung kopieren',
del_connection: 'Verbindung löschen',
close_connection: 'Verbindung schließen',
add_new_line: 'Neue Zeile h... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/de.js | JavaScript | mit | 10,234 |
const en = {
message: {
new_connection: 'New Connection',
refresh_connection: 'Refresh',
edit_connection: 'Edit Connection',
duplicate_connection: 'Duplicate Connection',
del_connection: 'Delete Connection',
close_connection: 'Close Connection',
add_new_line: 'Add New Line',
dump_to_cl... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/en.js | JavaScript | mit | 8,795 |
const es = {
message: {
new_connection: 'Nueva Conexión',
refresh_connection: 'Refrescar',
edit_connection: 'Editar Conexión',
duplicate_connection: 'Copiar Conexión',
del_connection: 'Eliminar Conexión',
close_connection: 'Cerrar Conexión',
add_new_line: 'Añadir Nueva Linea',
dump_to_... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/es.js | JavaScript | mit | 9,782 |
const fr = {
message: {
new_connection: 'Nouvelle connexion',
refresh_connection: 'Actualiser',
edit_connection: 'Éditer connexion',
duplicate_connection: 'Copier la connexion',
del_connection: 'Supprimer connexion',
close_connection: 'Fermer connexion',
add_new_line: 'Ajouter nouvelle lig... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/fr.js | JavaScript | mit | 10,319 |
const it = {
message: {
new_connection: 'Nuova Connessione',
refresh_connection: 'Ricaricare',
edit_connection: 'Modificare Connessione',
duplicate_connection: 'Copia connessione',
del_connection: 'Elimina Connessione',
close_connection: 'Chiudere Connessione',
add_new_line: 'Inserisci Nuo... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/it.js | JavaScript | mit | 10,153 |
const ko = {
message: {
new_connection: '새 연결',
refresh_connection: '새로고침',
edit_connection: '연결 편집',
duplicate_connection: '연결 복제',
del_connection: '연결 삭제',
close_connection: '연결 해제',
add_new_line: '새 행 추가',
dump_to_clipboard: '명령어 복사',
redis_version: '레디스 버전',
process_id: '프로... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/ko.js | JavaScript | mit | 10,087 |
const pt = {
message: {
new_connection: 'Nova Conexão',
refresh_connection: 'Atualizar',
edit_connection: 'Editar Conexão',
del_connection: 'Deletar Conexão',
duplicate_connection: 'Copiar Conexão',
close_connection: 'Encerrar Conexão',
add_new_line: 'Adicionar nova linha',
dump_to_cli... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/pt.js | JavaScript | mit | 9,914 |
const ru = {
message: {
new_connection: 'Новое подключение',
refresh_connection: 'Обновить',
edit_connection: 'Редактировать подключение',
duplicate_connection: 'Копировать соединение',
del_connection: 'Удалить подключение',
close_connection: 'Закрыть соединение',
add_new_line: 'Добавить н... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/ru.js | JavaScript | mit | 14,716 |
const tr = {
message: {
new_connection: 'Yeni Bağlantı',
refresh_connection: 'Yenile',
edit_connection: 'Bağlantıyı Düzenle',
duplicate_connection: 'Bağlantıyı Kopyala',
del_connection: 'Bağlantıyı Sil',
close_connection: 'Bağlantıyı Kapat',
add_new_line: 'Yeni Satır Ekle',
dump_to_cli... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/tr.js | JavaScript | mit | 9,922 |
const tw = {
message: {
new_connection: '新增連線',
refresh_connection: '重新整理',
edit_connection: '編輯連線',
duplicate_connection: '複製連接',
del_connection: '刪除連線',
close_connection: '關閉連線',
add_new_line: '新增行',
dump_to_clipboard: '複製為命令',
redis_version: 'Redis 版本',
process_id: '處理程序 ID'... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/tw.js | JavaScript | mit | 8,478 |
const ua = {
message: {
new_connection: 'Нове з`єднання',
refresh_connection: 'Оновити',
edit_connection: 'Редагувати з`єднання',
duplicate_connection: 'Копіювати підключення',
del_connection: 'Видалити з`єднання',
close_connection: 'Закрити з`єднання',
add_new_line: 'Додати новий рядок',
... | 2301_77204479/AnotherRedisDesktopManager | src/i18n/langs/ua.js | JavaScript | mit | 14,191 |
import Vue from 'vue';
import ElementUI from 'element-ui';
import 'font-awesome/css/font-awesome.css';
import App from './App';
import i18n from './i18n/i18n';
import bus from './bus';
import util from './util';
import storage from './storage';
import shortcut from './shortcut';
// vxe-table
// import VxeUITable from ... | 2301_77204479/AnotherRedisDesktopManager | src/main.js | JavaScript | mit | 979 |
import Redis from 'ioredis';
import { createTunnel } from 'tunnel-ssh';
import vue from '@/main.js';
import { remote } from 'electron';
import { writeCMD } from '@/commands.js';
const fs = require('fs');
const { sendCommand } = Redis.prototype;
// redis command log
Redis.prototype.sendCommand = function (...options)... | 2301_77204479/AnotherRedisDesktopManager | src/redisClient.js | JavaScript | mit | 11,464 |
import Vue from 'vue';
import Router from 'vue-router';
import Tabs from '@/components/Tabs';
Vue.use(Router);
export default new Router({
routes: [
{
path: '/',
name: 'Tabs',
component: Tabs,
},
],
});
| 2301_77204479/AnotherRedisDesktopManager | src/router/index.js | JavaScript | mit | 235 |
import keymaster from 'keymaster';
import { ipcRenderer } from 'electron';
// enable shortcut in input, textarea, select
keymaster.filter = e => true;
// prevent ctrl+r
keymaster('ctrl+r, ⌘+r', e => false);
// minimize window
keymaster('ctrl+h, ctrl+m, ⌘+m', (e) => {
ipcRenderer.send('minimizeWindow');
return fa... | 2301_77204479/AnotherRedisDesktopManager | src/shortcut.js | JavaScript | mit | 683 |
import utils from './util';
const { randomString } = utils;
export default {
getSetting(key) {
let settings = localStorage.getItem('settings');
settings = settings ? JSON.parse(settings) : {};
return key ? settings[key] : settings;
},
saveSettings(settings) {
settings = JSON.stringify(settings)... | 2301_77204479/AnotherRedisDesktopManager | src/storage.js | JavaScript | mit | 5,446 |
export default {
data: {},
get(name) {
return this.data[name];
},
set(name, value) {
this.data[name] = value;
},
bufVisible(buf) {
if (typeof buf === 'string') {
return true;
}
return buf.equals(Buffer.from(buf.toString()));
},
bufToString(buf, forceHex = false) {
// if (t... | 2301_77204479/AnotherRedisDesktopManager | src/util.js | JavaScript | mit | 9,916 |
<script>
export default {
onLaunch: function() {
// 检测网络状态
this.checkNetworkStatus();
// 获取token
const token = uni.getStorageSync('token');
if(token){
uni.switchTab({ url: '/pages/tabs/chat' })
}
},
onShow: function() {
},
onHide: function() {
},
methods: {
checkNetwo... | 2301_77169380/aionix-2 | App.vue | Vue | mit | 2,865 |
// 配置基础URL
// export const baseURL = 'http://47.97.254.154:8080/api'
// test
export const baseURL = 'http://47.97.254.154:8080/api'
export const clientId = '428a8310cd442757ae699df5d894f051'
export const appName = "Sider"
export const appVersion = 'V1.0.0' | 2301_77169380/aionix-2 | config/config.js | JavaScript | mit | 268 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width... | 2301_77169380/aionix-2 | index.html | HTML | mit | 672 |
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import { http } from './utils/request'
Vue.config.productionTip = false
Vue.prototype.$http = http
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'... | 2301_77169380/aionix-2 | main.js | JavaScript | mit | 500 |
<template>
<view class="page-container">
<view class="status_bar"></view>
<view style="display: flex; align-items: center; height: 88rpx; position: relative;">
<image src="/static/indicator-back.png" style="width: 48rpx; height: 48rpx; position: absolute; top: 20rpx; left: 32rpx;" @tap="navBack"></image>
<vi... | 2301_77169380/aionix-2 | pages/common/feedback.vue | Vue | mit | 4,009 |
<template>
<view class="page-container">
<view class="status_bar"></view>
<view style="display: flex; align-items: center; height: 88rpx; position: relative;">
<image src="/static/indicator-back.png" style="width: 48rpx; height: 48rpx; position: absolute; top: 20rpx; left: 32rpx;" @tap="navBack"></image>
<vi... | 2301_77169380/aionix-2 | pages/common/invite.vue | Vue | mit | 3,703 |
<template>
<view>
<web-view :src="webData.url"></web-view>
</view>
</template>
<script setup>
import { reactive } from 'vue'
import { http } from '@/utils/request'
import { onLoad,onShow } from "@dcloudio/uni-app";
const webData = reactive({
url: '',
title: '',
})
const webViewStyle = reactive({
... | 2301_77169380/aionix-2 | pages/common/web.vue | Vue | mit | 551 |
<template>
<view class="login-page flex flex-column">
<view class="login-page-header flex flex-column">
<input type="number" :maxlength="11" placeholder="请输入手机账号" class="login-input-phone" v-model="loginForm.username" />
<input type="password" placeholder="请输入密码" class="login-input-password" v-model="loginForm... | 2301_77169380/aionix-2 | pages/login.vue | Vue | mit | 2,338 |
<template>
<view class="page-container">
<view class="status_bar"></view>
<view style="display: flex; align-items: center; height: 88rpx; position: relative;">
<image src="/static/indicator-back.png" style="width: 48rpx; height: 48rpx; position: absolute; top: 20rpx; left: 32rpx;" @tap="navBack"></image>
<vi... | 2301_77169380/aionix-2 | pages/my/about.vue | Vue | mit | 2,856 |
<template>
<view>
<view style="display: flex; padding-top: 48rpx; padding-bottom: 48rpx; justify-content: center;">
<image src="/static/my/avatar-default.png" style="width: 168rpx; height: 168rpx; border-radius: 84rpx;"></image>
</view>
<view class="item-box" @tap="navToUpdateNickname">
<view class="ite... | 2301_77169380/aionix-2 | pages/my/account.vue | Vue | mit | 2,756 |
<template>
<view>
<view class="status_bar"></view>
<view style="display: flex; align-items: center; height: 88rpx; position: relative;">
<image src="/static/indicator-back.png" style="width: 48rpx; height: 48rpx; position: absolute; top: 20rpx; left: 32rpx;" @tap="navBack"></image>
<view style="font-size: 36... | 2301_77169380/aionix-2 | pages/my/update_nickname.vue | Vue | mit | 2,035 |
<template>
<view class="register-page flex flex-column">
<view class="register-page-header flex flex-column">
<input type="number" :maxlength="11" placeholder="请输入手机账号" class="register-input-phone" v-model="registerForm.account" />
<input type="password" placeholder="请输入密码" class="register-input-password" v-mo... | 2301_77169380/aionix-2 | pages/register.vue | Vue | mit | 2,504 |
<template>
<view class="container">
<!-- 自定义状态栏高度 -->
<view class="status_bar"></view>
<view class="flex-between flex header">
<view>
<view class="flex-center flex">
<uni-icons type="bars" size="24" color="#999" @tap="showLeftPopup"></uni-icons>
<view class="flex-column-center flex left" @tap="s... | 2301_77169380/aionix-2 | pages/tabs/chat.vue | Vue | mit | 9,979 |
<template>
<view>
</view>
</template>
<script setup>
</script>
<style>
</style>
| 2301_77169380/aionix-2 | pages/tabs/community.vue | Vue | mit | 98 |
<template>
<view class="mine-page">
<view class="page-title">个人中心</view>
<view class="box main-box">
<view class="head">
<view class="vip">{{user.userType == 2 ? "全端版" : (user.userType == 1 ? "口袋版" : "基础版")}}</view>
<view class="tips">每日重置</view>
</view>
<view class="grade-box">
<view class="g... | 2301_77169380/aionix-2 | pages/tabs/my.vue | Vue | mit | 5,526 |
<template>
<view>
</view>
</template>
<script setup>
</script>
<style>
</style>
| 2301_77169380/aionix-2 | pages/tabs/sessionList.vue | Vue | mit | 98 |
<template>
<view></view>
</template>
<script setup>
import { reactive } from 'vue'
import { http } from '@/utils/request'
</script>
<style lang="scss" scoped>
</style> | 2301_77169380/aionix-2 | pages/template.vue | Vue | mit | 172 |
@import '@/uni_modules/uni-scss/variables.scss';
| 2301_77169380/aionix-2 | uni.scss | SCSS | mit | 49 |
<template>
<view class="uni-badge--x">
<slot />
<text v-if="text" :class="classNames" :style="[positionStyle, customStyle, dotStyle]"
class="uni-badge" @click="onClick()">{{displayValue}}</text>
</view>
</template>
<script>
/**
* Badge 数字角标
* @description 数字角标一般和其它控件(列表、9宫格等)配合使用,用于进行数量提示,默认为实心灰色背景
* @... | 2301_77169380/aionix-2 | uni_modules/uni-badge/components/uni-badge/uni-badge.vue | Vue | mit | 5,483 |
<template>
<view class="uni-breadcrumb">
<slot />
</view>
</template>
<script>
/**
* Breadcrumb 面包屑导航父组件
* @description 显示当前页面的路径,快速返回之前的任意页面
* @tutorial https://ext.dcloud.net.cn/plugin?id=xxx
* @property {String} separator 分隔符,默认为斜杠'/'
* @property {String} separatorClass 图标分隔符 class
*/
export defaul... | 2301_77169380/aionix-2 | uni_modules/uni-breadcrumb/components/uni-breadcrumb/uni-breadcrumb.vue | Vue | mit | 822 |
<template>
<view class="uni-breadcrumb-item">
<view :class="{
'uni-breadcrumb-item--slot': true,
'uni-breadcrumb-item--slot-link': to && currentPage !== to
}" @click="navTo">
<slot />
</view>
<i v-if="separatorClass" class="uni-breadcrumb-item--separator" :class="separatorClass" />
<text v-else cla... | 2301_77169380/aionix-2 | uni_modules/uni-breadcrumb/components/uni-breadcrumb-item/uni-breadcrumb-item.vue | Vue | mit | 2,305 |
/**
* @1900-2100区间内的公历、农历互转
* @charset UTF-8
* @github https://github.com/jjonline/calendar.js
* @Author Jea杨(JJonline@JJonline.Cn)
* @Time 2014-7-21
* @Time 2016-8-13 Fixed 2033hex、Attribution Annals
* @Time 2016-9-25 Fixed lunar LeapMonth Param Bug
* @Time 2017-7-24 Fixed use getTerm Func Param Error.us... | 2301_77169380/aionix-2 | uni_modules/uni-calendar/components/uni-calendar/calendar.js | JavaScript | mit | 24,849 |
import en from './en.json'
import zhHans from './zh-Hans.json'
import zhHant from './zh-Hant.json'
export default {
en,
'zh-Hans': zhHans,
'zh-Hant': zhHant
}
| 2301_77169380/aionix-2 | uni_modules/uni-calendar/components/uni-calendar/i18n/index.js | JavaScript | mit | 162 |
<template>
<view class="uni-calendar-item__weeks-box" :class="{
'uni-calendar-item--disable':weeks.disable,
'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
'uni-calendar-item--checked':(calendar.fullDate === weeks.fullDate && !weeks.isDay) ,
'uni-calendar-item--before-checked':w... | 2301_77169380/aionix-2 | uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue | Vue | mit | 5,445 |
<template>
<view class="uni-calendar">
<view v-if="!insert&&show" class="uni-calendar__mask" :class="{'uni-calendar--mask-show':aniMaskShow}" @click="clean"></view>
<view v-if="insert || show" class="uni-calendar__content" :class="{'uni-calendar--fixed':!insert,'uni-calendar--ani-show':aniMaskShow}">
<view v-if... | 2301_77169380/aionix-2 | uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue | Vue | mit | 13,205 |
import CALENDAR from './calendar.js'
class Calendar {
constructor({
date,
selected,
startDate,
endDate,
range
} = {}) {
// 当前日期
this.date = this.getDate(new Date()) // 当前初入日期
// 打点信息
this.selected = selected || [];
// 范围开始
this.startDate = startDate
// 范围结束
this.endDate = endDate
this.ran... | 2301_77169380/aionix-2 | uni_modules/uni-calendar/components/uni-calendar/util.js | JavaScript | mit | 8,931 |
<template>
<view class="uni-card" :class="{ 'uni-card--full': isFull, 'uni-card--shadow': isShadow,'uni-card--border':border}"
:style="{'margin':isFull?0:margin,'padding':spacing,'box-shadow':isShadow?shadow:''}">
<!-- 封面 -->
<slot name="cover">
<view v-if="cover" class="uni-card__cover">
<image class="un... | 2301_77169380/aionix-2 | uni_modules/uni-card/components/uni-card/uni-card.vue | Vue | mit | 6,362 |
<template>
<view class="uni-collapse">
<slot />
</view>
</template>
<script>
/**
* Collapse 折叠面板
* @description 展示可以折叠 / 展开的内容区域
* @tutorial https://ext.dcloud.net.cn/plugin?id=23
* @property {String|Array} value 当前激活面板改变时触发(如果是手风琴模式,参数类型为string,否则为array)
* @property {Boolean} accordion = [true|false] 是否... | 2301_77169380/aionix-2 | uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue | Vue | mit | 3,358 |
<template>
<view class="uni-collapse-item">
<!-- onClick(!isOpen) -->
<view @click="onClick(!isOpen)" class="uni-collapse-item__title"
:class="{'is-open':isOpen &&titleBorder === 'auto' ,'uni-collapse-item-border':titleBorder !== 'none'}">
<view class="uni-collapse-item__title-wrap">
<slot name="title">
... | 2301_77169380/aionix-2 | uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue | Vue | mit | 9,003 |
<template>
<view class="uni-combox" :class="border ? '' : 'uni-combox__no-border'">
<view v-if="label" class="uni-combox__label" :style="labelStyle">
<text>{{label}}</text>
</view>
<view class="uni-combox__input-box">
<input class="uni-combox__input" type="text" :placeholder="placeholder"
placeholder-c... | 2301_77169380/aionix-2 | uni_modules/uni-combox/components/uni-combox/uni-combox.vue | Vue | mit | 5,806 |
import en from './en.json'
import zhHans from './zh-Hans.json'
import zhHant from './zh-Hant.json'
export default {
en,
'zh-Hans': zhHans,
'zh-Hant': zhHant
}
| 2301_77169380/aionix-2 | uni_modules/uni-countdown/components/uni-countdown/i18n/index.js | JavaScript | mit | 162 |
<template>
<view class="uni-countdown">
<text v-if="showDay" :style="[timeStyle]" class="uni-countdown__number">{{ d }}</text>
<text v-if="showDay" :style="[splitorStyle]" class="uni-countdown__splitor">{{dayText}}</text>
<text v-if="showHour" :style="[timeStyle]" class="uni-countdown__number">{{ h }}</text>
<... | 2301_77169380/aionix-2 | uni_modules/uni-countdown/components/uni-countdown/uni-countdown.vue | Vue | mit | 6,506 |
<template>
<view class="uni-data-checklist" :style="{'margin-top':isTop+'px'}">
<template v-if="!isLocal">
<view class="uni-data-loading">
<uni-load-more v-if="!mixinDatacomErrorMessage" status="loading" iconType="snow" :iconSize="18"
:content-text="contentText"></uni-load-more>
<text v-else>{{mixinD... | 2301_77169380/aionix-2 | uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue | Vue | mit | 20,446 |
// #ifdef H5
export default {
name: 'Keypress',
props: {
disable: {
type: Boolean,
default: false
}
},
mounted () {
const keyNames = {
esc: ['Esc', 'Escape'],
tab: 'Tab',
enter: 'Enter',
space: [' ', 'Spacebar'],
up: ['Up', 'ArrowUp'],
left: ['Left', '... | 2301_77169380/aionix-2 | uni_modules/uni-data-picker/components/uni-data-picker/keypress.js | JavaScript | mit | 1,110 |
<template>
<view class="uni-data-tree">
<view class="uni-data-tree-input" @click="handleInput">
<slot :options="options" :data="inputSelected" :error="errorMessage">
<view class="input-value" :class="{'input-value-border': border}">
<text v-if="errorMessage" class="selected-area error-text... | 2301_77169380/aionix-2 | uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue | Vue | mit | 13,919 |
export default {
props: {
localdata: {
type: [Array, Object],
default () {
return []
}
},
spaceInfo: {
type: Object,
default () {
return {}
}
},
collection: {
type: String,
default: ''
},
action: {
type: String,
de... | 2301_77169380/aionix-2 | uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js | JavaScript | mit | 14,230 |
.uni-data-pickerview {
position: relative;
flex-direction: column;
overflow: hidden;
}
.loading-cover {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
align-items: center;
justify-content: center;
background-color: rgba(150, 150, 150, .1);
}
.error {
background-color: #fff;
paddin... | 2301_77169380/aionix-2 | uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.css | CSS | mit | 1,115 |
<template>
<view class="uni-data-pickerview">
<scroll-view v-if="!isCloudDataList" class="selected-area" scroll-x="true">
<view class="selected-list">
<view
class="selected-item"
v-for="(item,index) in selected"
:key="index"
:class="{
... | 2301_77169380/aionix-2 | uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue | Vue | mit | 7,713 |
<template>
<view class="uni-stat__select">
<span v-if="label" class="uni-label-text hide-on-phone">{{label + ':'}}</span>
<view class="uni-stat-box" :class="{'uni-stat__actived': current}">
<view class="uni-select" :class="{'uni-select--disabled':disabled}">
<view class="uni-select__input-box" @click="toggl... | 2301_77169380/aionix-2 | uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue | Vue | mit | 12,377 |
// yyyy-MM-dd hh:mm:ss.SSS 所有支持的类型
function pad(str, length = 2) {
str += ''
while (str.length < length) {
str = '0' + str
}
return str.slice(-length)
}
const parser = {
yyyy: (dateObj) => {
return pad(dateObj.year, 4)
},
yy: (dateObj) => {
return pad(dateObj.year)
},
MM: (dateObj) => {
return pad(dat... | 2301_77169380/aionix-2 | uni_modules/uni-dateformat/components/uni-dateformat/date-format.js | JavaScript | mit | 3,847 |
<template>
<text>{{dateShow}}</text>
</template>
<script>
import {friendlyDate} from './date-format.js'
/**
* Dateformat 日期格式化
* @description 日期格式化组件
* @tutorial https://ext.dcloud.net.cn/plugin?id=3279
* @property {Object|String|Number} date 日期对象/日期字符串/时间戳
* @property {String} locale 格式化使用的语言
* @value... | 2301_77169380/aionix-2 | uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue | Vue | mit | 1,698 |
<template>
<view class="uni-calendar-item__weeks-box" :class="{
'uni-calendar-item--disable':weeks.disable,
'uni-calendar-item--before-checked-x':weeks.beforeMultiple,
'uni-calendar-item--multiple': weeks.multiple,
'uni-calendar-item--after-checked-x':weeks.afterMultiple,
}" @click="choiceDate(weeks)" @mouse... | 2301_77169380/aionix-2 | uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue | Vue | mit | 4,112 |
<template>
<view class="uni-calendar" @mouseleave="leaveCale">
<view v-if="!insert && show" class="uni-calendar__mask" :class="{'uni-calendar--mask-show':aniMaskShow}"
@click="maskClick"></view>
<view v-if="insert || show" class="uni-calendar__content"
:class="{'uni-calendar--fixed':!insert,'uni-calendar--... | 2301_77169380/aionix-2 | uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue | Vue | mit | 22,102 |
import en from './en.json'
import zhHans from './zh-Hans.json'
import zhHant from './zh-Hant.json'
export default {
en,
'zh-Hans': zhHans,
'zh-Hant': zhHant
}
| 2301_77169380/aionix-2 | uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js | JavaScript | mit | 162 |
<template>
<view class="uni-datetime-picker">
<view @click="initTimePicker">
<slot>
<view class="uni-datetime-picker-timebox-pointer"
:class="{'uni-datetime-picker-disabled': disabled, 'uni-datetime-picker-timebox': border}">
<text class="uni-datetime-picker-text">{{time}}</text>
<view v-if="!t... | 2301_77169380/aionix-2 | uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue | Vue | mit | 22,881 |
<template>
<view class="uni-date">
<view class="uni-date-editor" @click="show">
<slot>
<view class="uni-date-editor--x"
:class="{'uni-date-editor--x__disabled': disabled,'uni-date-x--border': border}">
<view v-if="!isRange" class="uni-date-x uni-date-single">
<uni-icons class="icon-calendar" t... | 2301_77169380/aionix-2 | uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue | Vue | mit | 28,776 |
class Calendar {
constructor({
selected,
startDate,
endDate,
range,
} = {}) {
// 当前日期
this.date = this.getDateObj(new Date()) // 当前初入日期
// 打点信息
this.selected = selected || [];
// 起始时间
this.startDate = startDate
// 终止时间
this.endDate = endDate
// 是否范围选择
this.range = range
// 多选状态
this.cl... | 2301_77169380/aionix-2 | uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js | JavaScript | mit | 10,060 |
// #ifdef H5
export default {
name: 'Keypress',
props: {
disable: {
type: Boolean,
default: false
}
},
mounted () {
const keyNames = {
esc: ['Esc', 'Escape'],
tab: 'Tab',
enter: 'Enter',
space: [' ', 'Spacebar'],
up: ['Up', 'ArrowUp'],
left: ['Left', '... | 2301_77169380/aionix-2 | uni_modules/uni-drawer/components/uni-drawer/keypress.js | JavaScript | mit | 1,119 |
<template>
<view v-if="visibleSync" :class="{ 'uni-drawer--visible': showDrawer }" class="uni-drawer" @touchmove.stop.prevent="clear">
<view class="uni-drawer__mask" :class="{ 'uni-drawer__mask--visible': showDrawer && mask }" @tap="close('mask')" />
<view class="uni-drawer__content" :class="{'uni-drawer--right': ... | 2301_77169380/aionix-2 | uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue | Vue | mit | 3,988 |
/**
* @desc 函数防抖
* @param func 目标函数
* @param wait 延迟执行毫秒数
* @param immediate true - 立即执行, false - 延迟执行
*/
export const debounce = function(func, wait = 1000, immediate = true) {
let timer;
return function() {
let context = this,
args = arguments;
if (timer) clearTimeout(timer);
if (immediate) {
let c... | 2301_77169380/aionix-2 | uni_modules/uni-easyinput/components/uni-easyinput/common.js | JavaScript | mit | 1,251 |
<template>
<view class="uni-easyinput" :class="{ 'uni-easyinput-error': msg }" :style="boxStyle">
<view class="uni-easyinput__content" :class="inputContentClass" :style="inputContentStyle">
<uni-icons v-if="prefixIcon" class="content-clear-icon" :type="prefixIcon" color="#c0c4cc"
@click="onClickIcon('prefix')... | 2301_77169380/aionix-2 | uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue | Vue | mit | 18,079 |
<template>
<view class="uni-cursor-point">
<view v-if="popMenu && (leftBottom||rightBottom||leftTop||rightTop) && content.length > 0" :class="{
'uni-fab--leftBottom': leftBottom,
'uni-fab--rightBottom': rightBottom,
'uni-fab--leftTop': leftTop,
'uni-fab--rightTop': rightTop
}" c... | 2301_77169380/aionix-2 | uni_modules/uni-fab/components/uni-fab/uni-fab.vue | Vue | mit | 11,160 |
import en from './en.json'
import zhHans from './zh-Hans.json'
import zhHant from './zh-Hant.json'
export default {
en,
'zh-Hans': zhHans,
'zh-Hant': zhHant
}
| 2301_77169380/aionix-2 | uni_modules/uni-fav/components/uni-fav/i18n/index.js | JavaScript | mit | 162 |
<template>
<view :class="[circle === true || circle === 'true' ? 'uni-fav--circle' : '']" :style="[{ backgroundColor: checked ? bgColorChecked : bgColor }]"
@click="onClick" class="uni-fav">
<!-- #ifdef MP-ALIPAY -->
<view class="uni-fav-star" v-if="!checked && (star === true || star === 'true')">
<uni-icons ... | 2301_77169380/aionix-2 | uni_modules/uni-fav/components/uni-fav/uni-fav.vue | Vue | mit | 3,847 |
'use strict';
const ERR_MSG_OK = 'chooseAndUploadFile:ok';
const ERR_MSG_FAIL = 'chooseAndUploadFile:fail';
function chooseImage(opts) {
const {
count,
sizeType = ['original', 'compressed'],
sourceType,
extension
} = opts
return new Promise((resolve, reject) => {
// 微信由于旧接口不再维护,针对微信小程序平台改用chooseMedia接口
... | 2301_77169380/aionix-2 | uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js | JavaScript | mit | 6,017 |
<template>
<view class="uni-file-picker">
<view v-if="title" class="uni-file-picker__header">
<text class="file-title">{{ title }}</text>
<text class="file-count">{{ filesList.length }}/{{ limitLength }}</text>
</view>
<upload-image v-if="fileMediatype === 'image' && showType === 'grid'" :readonly="readonl... | 2301_77169380/aionix-2 | uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue | Vue | mit | 16,857 |