代码拉取完成,页面将自动刷新
I did Skytoop to learn Ajax, Web2Py and Jquery intensively.
You can check a demo version on http://www.skytoop.com
username = demo@skytoop.com
password = 123456
The "Parent widget" (this is not a real inheritance, todo) is located in static/widgets/widgetsGen/jquery.widgetsGen.js
To add a new widget :
Add the name (represented by his name in syncType) of the widget in
── $.fn.widgetGen.select
The parent widget has a CRUD for child widgets
── $.fn.widgetGen.save
── $.fn.widgetGen.update
── $.fn.widgetGen.remove
── $.fn.widgetGen.send
Datas you can syncronize with the server are all fields begining with the prefix sync:
$.fn.widgetGen.defaults = {
syncType : '',
syncX : 0,
syncY : 0,
syncWidth : 0,
syncHeight : 0,
syncData1 : '',
syncData2 : '',
syncData3 : '',
syncTitle : '',
syncId : 0
};
For an example refer to static/widgets/notes/jquery.stickynote.js or static/widgets/widgetsGen/sample-widget.js
controllers/
├── appadmin.py # Appadmin
├── custom.py # To change wallpaper and to switch on a public Skytoop
├── default.py # Desktop main controllers
├── filemanager.py # Filemanager
├── get_list.py # On the index when you click on left bottom Skytoop c, get desktop list
├── icons.py # CRUD for icons + favicon.ico grabbing
├── note_log.py # On the index page for displaying recent changes
├── public.py # For search bar + public Skytoops
├── vote_log.py # Vote log, for voting for features
└── widget.py # CRUD widgets
static/
├── color-picker # Color picker when customizing wallpaper
├── css # CSS Files
├── desk # Main folder for JS/CSS Desktop
│ └── assets
│ ├── images
│ │ ├── gui
│ │ ├── icons
│ │ └── misc
│ ├── javascripts # @@@ Here are the most important files for Desktop
│ ├── scroll # Customization of the scroll bar
│ └── stylesheets # CSS files
├── filemanager # For the filemanager
│ ├── css
│ ├── images
│ │ └── fileicons
│ ├── jquery_contextmenu
│ │ └── images
│ ├── jquery_filetree
│ │ └── images
│ └── js
├── html5
├── images
├── js
├── multifile-upload # For the multiple file upload
├── pres-images
├── speed-bar # Images for the "speed bar" at the right of desktops
├── svg
├── tmp
├── vote_log # For the vote log
│ ├── css
│ └── js
├── wallpapers -> ../uploads/ # to avoid downloading wallpaper each time (not very secure)
└── widgets # Widgets
├── drawZone
├── notes
│ ├── css
│ └── images
├── template
├── widgetsGen
└── winamp
Skytoop is under MIT license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。