All Projects → TELstatic → xayah

TELstatic / xayah

Licence: MIT License
WEB文件管理器

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to xayah

Uptoc
A static file deployment tool that supports multiple platforms./ 一个支持多家云厂商的静态文件部署工具
Stars: ✭ 159 (+736.84%)
Mutual labels:  oss, storage, qiniu
Ali Oss
Aliyun OSS(open storage service) JavaScript SDK for the browser and Node.js
Stars: ✭ 1,579 (+8210.53%)
Mutual labels:  oss, aliyun
Xdupdate
Android 自动更新 / 阿里云 OSS 一键上传更新 (Android auto update / upload update by aliyun OSS)
Stars: ✭ 92 (+384.21%)
Mutual labels:  oss, aliyun
Go Fastdfs
go-fastdfs 是一个简单的分布式文件系统(私有云存储),具有无中心、高性能,高可靠,免维护等优点,支持断点续传,分块上传,小文件合并,自动同步,自动修复。Go-fastdfs is a simple distributed file system (private cloud storage), with no center, high performance, high reliability, maintenance free and other advantages, support breakpoint continuation, block upload, small file merge, automatic synchronization, automatic r…
Stars: ✭ 2,923 (+15284.21%)
Mutual labels:  oss, storage
Rocketz
Upload and distribute assets to OSS providers
Stars: ✭ 9 (-52.63%)
Mutual labels:  oss, qiniu
Aliyun Oss
Aliyun oss for Laravel5, also support flysystem adapter
Stars: ✭ 31 (+63.16%)
Mutual labels:  oss, aliyun
tiny-oss
A tiny aliyun oss sdk for browser which focus on uploading.
Stars: ✭ 25 (+31.58%)
Mutual labels:  oss, aliyun
Aliyunoss
阿里云 OSS 官方 SDK 的 Composer 封装,支持任何 PHP 项目,包括 Laravel、Symfony、TinyLara 等等。
Stars: ✭ 481 (+2431.58%)
Mutual labels:  oss, aliyun
aliyun-oss-laravel
Laravel 的 Aliyun OSS 扩展, 支持 Laravel 9. Alibaba Cloud Object Storage Service For Laravel.
Stars: ✭ 91 (+378.95%)
Mutual labels:  oss, aliyun
free-fs
✨Free-Fs 开源文件管理系统:基于 SpringBoot2.x + MyBatisPlus + MySQL + Shiro+ Layui 等搭配七牛云,阿里云OSS实现的云存储管理系统。包含文件上传、删除、预览、云资源列表查询、下载、文件移动、重命名、目录管理、登录、注册、以及权限控制等功能。
Stars: ✭ 49 (+157.89%)
Mutual labels:  oss, qiniu
file-storage-system
一个基于 Go 语言实现的分布式云存储服务,慕课网实战仿百度网盘项目。
Stars: ✭ 149 (+684.21%)
Mutual labels:  oss, storage
Aliyungo
Go SDK for Aliyun (Alibaba Cloud) - Golang API for ECS, OSS, DNS, SLB, RDS, RAM, MNS, STS, SLS, MQ, Push, OpenSearch, DM, Container Service etc.
Stars: ✭ 756 (+3878.95%)
Mutual labels:  oss, aliyun
Aliyun Sdk Js
阿里云 SDK for Javascript,支持在浏览器和 Nodejs 环境使用,支持大部分阿里云服务。
Stars: ✭ 727 (+3726.32%)
Mutual labels:  oss, aliyun
Waliyun
阿里云Node.js Open API SDK(完整版)
Stars: ✭ 40 (+110.53%)
Mutual labels:  oss, aliyun
Oneblog
👽 OneBlog,一个简洁美观、功能强大并且自适应的Java博客
Stars: ✭ 678 (+3468.42%)
Mutual labels:  oss, qiniu
ali-img
阿里云图像处理工具包
Stars: ✭ 16 (-15.79%)
Mutual labels:  oss, aliyun
Flysystem Qiniu
💾 Flysystem adapter for the Qiniu storage.
Stars: ✭ 192 (+910.53%)
Mutual labels:  storage, qiniu
aliyun-oss-deploy
🙈 一个 nodejs 命令行工具,用于部署静态资源到 aliyun oss,支持代码方式和 CLI 方式!
Stars: ✭ 31 (+63.16%)
Mutual labels:  oss, aliyun
laravel-admin
LaravelAdmin是基于PHP开发的基础管理后台系统,做到开箱即用,为新项目开发省去了基础功能开发的步骤;此系统采用前后端分离模式,后端使用Laravel,前端使用vue;主要包含:登录、注销、可视化数据大屏、管理员、角色管理、菜单管理、权限管理、错误日志、登录日志、访问日志、获取服务器CPU使用率、内存使用率等功能。后端主要使用Artisan命令行、Jobs消息队列、 Rules验证规则、Restful API、Composer扩展包、Redis秒杀、Extend自定义扩展类:微信授权、钉钉告警推送、MongoDB、阿里云OSS、七牛云存储、七牛云直播、php-jwt TOKEN、Phpoffice、MySql数据库字典、Elasticsearch等技术。
Stars: ✭ 45 (+136.84%)
Mutual labels:  oss, aliyun
vue-oss
基于vue2+plupload的阿里云OSS上传组件(支持断点续传,可上传size>100M的文件)
Stars: ✭ 33 (+73.68%)
Mutual labels:  oss, aliyun

xayah

阿里云上传配套组件(iView)

npm version licence downloads downloads JS Gzip Size

安装

npm install xayah

使用

app.js

import iView from 'iview';
Vue.use(iView); //xayah 依赖iView 此代码必须
import 'iview/dist/styles/iview.css';

import xayah from 'xayah';
vue.use(xayah);

demo.vue

<template>
    <div>
        <xayah
            v-model="images"
            :urls="urls"
            :id="id"
            :max="5"
            :config="config"
            @callback="callback"
        >
        </xayah>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                images: [
                    {
                        url: ''
                    }
                ],
                urls:{
                    index: '',    //获取文件地址
                    upload: '',   //上传地址
                    create: '',   //创建目录地址
                    check: '',    //检查文件唯一
                    policy: '',   //获取上传策略地址
                    delete: '',   //删除文件或目录地址
                    return: '',   //本地回调地址
                },
                id:'editorImage',
                max:5,
                config:{
                    random:false,
                    size:0,
                    format:[
                        'jpg','png','jpeg'
                    ],
                    style:'?x-oss-process=style/thumb',
                    key:'id',
                    gateway:'oss'
                }
            }
        },
        methods: {
            callback(val){
                console.log(val);
            }
        }
    }
</script>

属性

name type required default memo
value mixed true [] 可以使用 v-model 双向绑定数据
urls.index string true '' 获取文件
urls.upload string true '' 上传地址
urls.alias string false '' 文件显示地址 或 自定义域名 (七牛上传地址与显示地址不一致问题)
urls.create string true '' 创建目录
urls.check string true '' 检查文件唯一
urls.policy string true '' 获取上传策略
urls.delete string true '' 删除文件或目录
urls.return string true '' 本地回调地址
id string false null Dom ID
max int false 1 限制插入图片数量
simple string false '' 简单上传模式 默认上传目录 填写即为启用
type string false 'object' 默认返回类型
config.random bool false false 使用随机文件名
config.size int false 0 限制上传文件大小
config.format array false ['jpg','png','jpeg'] 限制上传文件格式
config.style string false '' 图片格式化 示例: ?x-oss-process=style/thumb
config.key string false 'id' 兼容 MongoDB
config.folder bool false false 是否允许上传目录
config.gateway string false 'oss' 多网关
config.resource bool false false 是否隐藏源码链接
config.document bool false false 是否隐藏文档链接
config.debug bool false false 是否开启调试功能
config.strict bool false false 是否开启严格模式
config.last bool false false 是否显示最新版本
config.current bool false false 是否显示当前版本
config.check bool false false 是否检查图片宽高
config.formatValue function false 详见代码 格式化 value 值
config.formatReturn function false 详见代码 格式化返回值

事件

name return memo
callback 形如:[{url:'//demo.oss.com/demo.jpg'}] 返回选中的图片

使用说明

配置ID说明

用途:富文本编辑器插入图片 示例:以quill富文本编辑器为例

    demo.vue

    <template>
           <div>
               <xayah
                   style="display:none;"
                   v-model="[]"
                   :config="config"
                   :urls="urls"
                   :id="id"
                   :max="5"
                   @callback="callback"
               >
               </xayah>

               <quill-editor
                   v-model="content"
                   ref="myQuillEditor">
                </quill-editor>
           </div>
       </template>
       <script>
           export default {
               data() {
                   return {
                       content:null,
                       images: [
                           {
                               url: ''
                           }
                       ],
                       urls:{
                            index: '',    //获取文件地址
                            upload: '',   //上传地址
                            create: '',   //创建目录地址
                            check: '',    //检查文件唯一
                            policy: '',   //获取上传策略地址
                            delete: '',   //删除文件或目录地址
                            return: '',   //本地回调地址
                       },
                       id:'editorImage',
                       max:5,
                       config:{
                            random:false,
                            size:0,
                            format:[
                                'jpg','png','jpeg'
                            ],
                            key:'id',
                            style:'',
                            gateway:'oss'
                       }
                   }
               },
               mounted(){
                    this.initEditor();
               },
               methods: {
                   callback(val){
                       console.log(val);
                       let that=this;
                        $.each(res, function (index, value, array) {
                           that.$refs.myQuillEditor.quill.insertEmbed(10, 'image', value.url);
                        });
                   },
                   imageHandler() {
                       document.getElementById('editorImage').click();
                   },
                   initEditor(){
                        this.$refs.myQuillEditor.quill.getModule('toolbar').addHandler('image', this.imageHandler);
                   }
               }
           }
       </script>

配套后台

https://github.com/TELstatic/rakan https://kodos.cn

TODO

1. 优化样式,去除内联样式

Buy me a coffee

Liked some of my work? Buy me a coffee (or more likely a beer)

代码贡献

如果您有其它需求,或者发现本项目中需要改进的代码,欢迎 Fork 并提交 PR!
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].