├── .gitignore
├── api.php
├── api
└── qqnews.json
├── http.php
├── jsonp.php
├── student
├── craweled.js
├── index.html
└── upload_more.js
├── template.html
├── template.php
├── 第一天
├── 1.第一个nodejs程序
│ ├── 1.客户端运行JS.html
│ ├── js
│ │ └── test.js
│ ├── node.js
│ └── node.txt
├── 2.模块系统
│ ├── index.html
│ └── js
│ │ ├── module1.js
│ │ ├── module2.js
│ │ └── tool.js
├── 3.内置模块
│ ├── ajax.html
│ ├── diy.js
│ ├── fs.js
│ ├── http.js
│ ├── input.txt
│ └── os.js
├── 4.第三方模块
│ ├── dist
│ │ └── test.js
│ ├── gulpfile.js
│ ├── index.html
│ ├── package.json
│ └── test.js
├── 5.回调函数
│ ├── fs.js
│ ├── input.txt
│ ├── sync.js
│ └── syncc.js
└── day1.md
├── 第七天
├── 富文本编辑器
│ ├── server.js
│ └── ueditor-1.4.3.3
│ │ ├── .editorconfig
│ │ ├── .gitignore
│ │ ├── Gruntfile.js
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── _examples
│ │ ├── addCustomizeButton.js
│ │ ├── addCustomizeCombox.js
│ │ ├── addCustomizeDialog.js
│ │ ├── completeDemo.html
│ │ ├── editor_api.js
│ │ └── server
│ │ │ ├── getContent.ashx
│ │ │ ├── getContent.asp
│ │ │ ├── getContent.jsp
│ │ │ └── getContent.php
│ │ ├── _parse
│ │ ├── background.js
│ │ ├── charts.js
│ │ ├── insertcode.js
│ │ ├── list.js
│ │ ├── parse.js
│ │ ├── table.js
│ │ └── video.js
│ │ ├── _src
│ │ ├── adapter
│ │ │ ├── autosave.js
│ │ │ ├── editor.js
│ │ │ ├── editorui.js
│ │ │ └── message.js
│ │ ├── api.js
│ │ ├── core
│ │ │ ├── Editor.defaultoptions.js
│ │ │ ├── Editor.js
│ │ │ ├── EventBase.js
│ │ │ ├── Range.js
│ │ │ ├── Selection.js
│ │ │ ├── ajax.js
│ │ │ ├── browser.js
│ │ │ ├── domUtils.js
│ │ │ ├── dtd.js
│ │ │ ├── filternode.js
│ │ │ ├── filterword.js
│ │ │ ├── htmlparser.js
│ │ │ ├── keymap.js
│ │ │ ├── loadconfig.js
│ │ │ ├── localstorage.js
│ │ │ ├── node.js
│ │ │ ├── plugin.js
│ │ │ └── utils.js
│ │ ├── editor.js
│ │ ├── plugins
│ │ │ ├── anchor.js
│ │ │ ├── autofloat.js
│ │ │ ├── autoheight.js
│ │ │ ├── autolink.js
│ │ │ ├── autosave.js
│ │ │ ├── autosubmit.js
│ │ │ ├── autotypeset.js
│ │ │ ├── autoupload.js
│ │ │ ├── background.js
│ │ │ ├── basestyle.js
│ │ │ ├── blockquote.js
│ │ │ ├── catchremoteimage.js
│ │ │ ├── charts.js
│ │ │ ├── cleardoc.js
│ │ │ ├── contextmenu.js
│ │ │ ├── convertcase.js
│ │ │ ├── copy.js
│ │ │ ├── customstyle.js
│ │ │ ├── defaultfilter.js
│ │ │ ├── directionality.js
│ │ │ ├── dragdrop.js
│ │ │ ├── elementpath.js
│ │ │ ├── enterkey.js
│ │ │ ├── fiximgclick.js
│ │ │ ├── font.js
│ │ │ ├── formatmatch.js
│ │ │ ├── horizontal.js
│ │ │ ├── iframe.js
│ │ │ ├── image.js
│ │ │ ├── indent.js
│ │ │ ├── insertcode.js
│ │ │ ├── insertfile.js
│ │ │ ├── inserthtml.js
│ │ │ ├── insertparagraph.js
│ │ │ ├── justify.js
│ │ │ ├── keystrokes.js
│ │ │ ├── lineheight.js
│ │ │ ├── link.js
│ │ │ ├── list.js
│ │ │ ├── music.js
│ │ │ ├── pagebreak.js
│ │ │ ├── paragraph.js
│ │ │ ├── paste.js
│ │ │ ├── preview.js
│ │ │ ├── print.js
│ │ │ ├── puretxtpaste.js
│ │ │ ├── removeformat.js
│ │ │ ├── rowspacing.js
│ │ │ ├── scrawl.js
│ │ │ ├── searchreplace.js
│ │ │ ├── section.js
│ │ │ ├── selectall.js
│ │ │ ├── serverparam.js
│ │ │ ├── shortcutmenu.js
│ │ │ ├── simpleupload.js
│ │ │ ├── snapscreen.js
│ │ │ ├── source.js
│ │ │ ├── table.action.js
│ │ │ ├── table.cmds.js
│ │ │ ├── table.core.js
│ │ │ ├── table.sort.js
│ │ │ ├── template.js
│ │ │ ├── time.js
│ │ │ ├── undo.js
│ │ │ ├── video.js
│ │ │ ├── webapp.js
│ │ │ ├── wordcount.js
│ │ │ ├── wordimage.js
│ │ │ └── xssFilter.js
│ │ └── ui
│ │ │ ├── autotypesetbutton.js
│ │ │ ├── autotypesetpicker.js
│ │ │ ├── breakline.js
│ │ │ ├── button.js
│ │ │ ├── cellalignpicker.js
│ │ │ ├── colorbutton.js
│ │ │ ├── colorpicker.js
│ │ │ ├── combox.js
│ │ │ ├── dialog.js
│ │ │ ├── mask.js
│ │ │ ├── menu.js
│ │ │ ├── menubutton.js
│ │ │ ├── message.js
│ │ │ ├── multiMenu.js
│ │ │ ├── pastepicker.js
│ │ │ ├── popup.js
│ │ │ ├── separator.js
│ │ │ ├── shortcutmenu.js
│ │ │ ├── splitbutton.js
│ │ │ ├── stateful.js
│ │ │ ├── tablebutton.js
│ │ │ ├── tablepicker.js
│ │ │ ├── toolbar.js
│ │ │ ├── ui.js
│ │ │ ├── uibase.js
│ │ │ └── uiutils.js
│ │ ├── _test
│ │ ├── core
│ │ │ ├── Editor.js
│ │ │ ├── EventBase.js
│ │ │ ├── Range.js
│ │ │ ├── Selection.js
│ │ │ ├── ajax.js
│ │ │ ├── ajax.php
│ │ │ ├── browser.js
│ │ │ ├── domUtils.js
│ │ │ ├── filternode.js
│ │ │ ├── filterword.js
│ │ │ ├── htmlparser.js
│ │ │ ├── localstorage.js
│ │ │ ├── node.js
│ │ │ ├── plugin.js
│ │ │ ├── tools.js
│ │ │ └── utils.js
│ │ ├── coverage
│ │ │ ├── api.js
│ │ │ ├── commands.js
│ │ │ ├── core
│ │ │ │ ├── Editor.js
│ │ │ │ ├── EventBase.js
│ │ │ │ ├── Range.js
│ │ │ │ ├── Selection.js
│ │ │ │ ├── ajax.js
│ │ │ │ ├── browser.js
│ │ │ │ ├── domUtils.js
│ │ │ │ ├── dtd.js
│ │ │ │ ├── filternode.js
│ │ │ │ ├── filterword.js
│ │ │ │ ├── htmlparser.js
│ │ │ │ ├── node.js
│ │ │ │ └── utils.js
│ │ │ ├── customEvent.js
│ │ │ ├── editor.js
│ │ │ ├── jscoverage-highlight.css
│ │ │ ├── jscoverage-ie.css
│ │ │ ├── jscoverage-throbber.gif
│ │ │ ├── jscoverage.css
│ │ │ ├── jscoverage.html
│ │ │ ├── jscoverage.js
│ │ │ ├── plugins
│ │ │ │ ├── anchor.js
│ │ │ │ ├── autofloat.js
│ │ │ │ ├── autoheight.js
│ │ │ │ ├── autolink.js
│ │ │ │ ├── autosubmit.js
│ │ │ │ ├── autotypeset.js
│ │ │ │ ├── background.js
│ │ │ │ ├── basestyle.js
│ │ │ │ ├── blockquote.js
│ │ │ │ ├── catchremoteimage.js
│ │ │ │ ├── cleardoc.js
│ │ │ │ ├── contextmenu.js
│ │ │ │ ├── convertcase.js
│ │ │ │ ├── customstyle.js
│ │ │ │ ├── defaultfilter.js
│ │ │ │ ├── directionality.js
│ │ │ │ ├── dragdrop.js
│ │ │ │ ├── elementpath.js
│ │ │ │ ├── enterkey.js
│ │ │ │ ├── fiximgclick.js
│ │ │ │ ├── font.js
│ │ │ │ ├── formatmatch.js
│ │ │ │ ├── horizontal.js
│ │ │ │ ├── iframe.js
│ │ │ │ ├── image.js
│ │ │ │ ├── indent.js
│ │ │ │ ├── insertcode.js
│ │ │ │ ├── inserthtml.js
│ │ │ │ ├── insertparagraph.js
│ │ │ │ ├── justify.js
│ │ │ │ ├── keystrokes.js
│ │ │ │ ├── lineheight.js
│ │ │ │ ├── link.js
│ │ │ │ ├── list.js
│ │ │ │ ├── music.js
│ │ │ │ ├── pagebreak.js
│ │ │ │ ├── paragraph.js
│ │ │ │ ├── paste.js
│ │ │ │ ├── preview.js
│ │ │ │ ├── print.js
│ │ │ │ ├── puretxtpaste.js
│ │ │ │ ├── removeformat.js
│ │ │ │ ├── rowspacing.js
│ │ │ │ ├── scrawl.js
│ │ │ │ ├── searchreplace.js
│ │ │ │ ├── selectall.js
│ │ │ │ ├── shortcutmenu.js
│ │ │ │ ├── snapscreen.js
│ │ │ │ ├── source.js
│ │ │ │ ├── table.action.js
│ │ │ │ ├── table.cmds.js
│ │ │ │ ├── table.core.js
│ │ │ │ ├── template.js
│ │ │ │ ├── time.js
│ │ │ │ ├── undo.js
│ │ │ │ ├── video.js
│ │ │ │ ├── webapp.js
│ │ │ │ ├── wordcount.js
│ │ │ │ └── wordimage.js
│ │ │ └── ui
│ │ │ │ ├── autotypesetbutton.js
│ │ │ │ ├── autotypesetpicker.js
│ │ │ │ ├── breakline.js
│ │ │ │ ├── button.js
│ │ │ │ ├── cellalignpicker.js
│ │ │ │ ├── colorbutton.js
│ │ │ │ ├── colorpicker.js
│ │ │ │ ├── combox.js
│ │ │ │ ├── dialog.js
│ │ │ │ ├── editor.js
│ │ │ │ ├── editorui.js
│ │ │ │ ├── mask.js
│ │ │ │ ├── menu.js
│ │ │ │ ├── menubutton.js
│ │ │ │ ├── multiMenu.js
│ │ │ │ ├── pastepicker.js
│ │ │ │ ├── popup.js
│ │ │ │ ├── separator.js
│ │ │ │ ├── shortcutmenu.js
│ │ │ │ ├── splitbutton.js
│ │ │ │ ├── stateful.js
│ │ │ │ ├── tablebutton.js
│ │ │ │ ├── tablepicker.js
│ │ │ │ ├── toolbar.js
│ │ │ │ ├── ui.js
│ │ │ │ ├── uibase.js
│ │ │ │ └── uiutils.js
│ │ ├── editor_config.js
│ │ ├── editor_config_src.js
│ │ ├── import.js
│ │ ├── index.php
│ │ ├── plugins
│ │ │ ├── anchor.js
│ │ │ ├── auto.js
│ │ │ ├── autofloat.js
│ │ │ ├── autoheight.js
│ │ │ ├── autolink.js
│ │ │ ├── autosave.js
│ │ │ ├── autotypeset.js
│ │ │ ├── autoupload.js
│ │ │ ├── background.js
│ │ │ ├── basestyle.js
│ │ │ ├── blockquote.js
│ │ │ ├── catchremoteimage.js
│ │ │ ├── charts.js
│ │ │ ├── cleardoc.js
│ │ │ ├── contextmenu.js
│ │ │ ├── convertcase.js
│ │ │ ├── copy.js
│ │ │ ├── customstyle.js
│ │ │ ├── defaultfilter.js
│ │ │ ├── directionality.js
│ │ │ ├── dragdrop.js
│ │ │ ├── elementpath.js
│ │ │ ├── enterkey.js
│ │ │ ├── fiximgclick.js
│ │ │ ├── font.js
│ │ │ ├── formatmatch.js
│ │ │ ├── horizontal.js
│ │ │ ├── iframe.js
│ │ │ ├── image.js
│ │ │ ├── indent.js
│ │ │ ├── insertcode.js
│ │ │ ├── inserthtml.js
│ │ │ ├── insertparagraph.js
│ │ │ ├── justify.js
│ │ │ ├── keystrokes.js
│ │ │ ├── lineheight.js
│ │ │ ├── link.js
│ │ │ ├── list.js
│ │ │ ├── music.js
│ │ │ ├── pagebreak.js
│ │ │ ├── paragraph.js
│ │ │ ├── paste.js
│ │ │ ├── preview.js
│ │ │ ├── print.js
│ │ │ ├── removeformat.js
│ │ │ ├── rowspacing.js
│ │ │ ├── scrawl.js
│ │ │ ├── searchreplace.js
│ │ │ ├── section.js
│ │ │ ├── selectall.js
│ │ │ ├── serverparam.js
│ │ │ ├── shortcutkeys.js
│ │ │ ├── shortcutmenu.js
│ │ │ ├── snapscreen.js
│ │ │ ├── source.js
│ │ │ ├── table.action.js
│ │ │ ├── table.cmds.js
│ │ │ ├── table.core.js
│ │ │ ├── table.sort.js
│ │ │ ├── template.js
│ │ │ ├── time.js
│ │ │ ├── tools.js
│ │ │ ├── ueditor.config.js
│ │ │ ├── undo.js
│ │ │ ├── video.js
│ │ │ ├── webapp.js
│ │ │ ├── wordcount.js
│ │ │ └── wordimage.js
│ │ ├── qunit
│ │ │ ├── jquery-1.5.1.js
│ │ │ ├── qunit.css
│ │ │ ├── qunit.js
│ │ │ └── tools.js
│ │ ├── testDesign
│ │ │ ├── 8eaccbef76094b364e2cfddaa1cc7cd98d109d49.jpg
│ │ │ ├── Manual regression cases.xmind
│ │ │ ├── VersionUpdate
│ │ │ │ ├── readme.txt
│ │ │ │ ├── test list for 1.3.0.xmind
│ │ │ │ ├── test list for 1.3.6.xmind
│ │ │ │ ├── test list for 1.4.0.xmind
│ │ │ │ └── test list for 1.4.3.xmind
│ │ │ ├── demo_1.3.0
│ │ │ │ ├── IEAutolinkFalse_demo.html
│ │ │ │ └── uparse.html
│ │ │ ├── demo_1.3.6
│ │ │ │ ├── Demo_3831.html
│ │ │ │ └── Demo_contentchange.html
│ │ │ ├── demo_1.4.0
│ │ │ │ └── uparsedemo.html
│ │ │ └── offical site.xmind
│ │ ├── tools
│ │ │ ├── br
│ │ │ │ ├── analysis.php
│ │ │ │ ├── batchrun.sh
│ │ │ │ ├── case.class.php
│ │ │ │ ├── config.php
│ │ │ │ ├── coverage
│ │ │ │ │ ├── jscov.php
│ │ │ │ │ ├── jscoverage-highlight.css
│ │ │ │ │ ├── jscoverage-ie.css
│ │ │ │ │ ├── jscoverage-throbber.gif
│ │ │ │ │ ├── jscoverage.css
│ │ │ │ │ ├── jscoverage.html
│ │ │ │ │ ├── jscoverage.js
│ │ │ │ │ └── readCoverage.js
│ │ │ │ ├── css
│ │ │ │ │ ├── bg_button_a.gif
│ │ │ │ │ ├── bg_button_span.gif
│ │ │ │ │ ├── qunit.css
│ │ │ │ │ ├── tangramtest.css
│ │ │ │ │ └── testsuite.css
│ │ │ │ ├── filehelper.php
│ │ │ │ ├── geneHTML.php
│ │ │ │ ├── geneHistory.php
│ │ │ │ ├── geneXML.php
│ │ │ │ ├── import.php
│ │ │ │ ├── js
│ │ │ │ │ ├── UserAction manual.rar
│ │ │ │ │ ├── UserAction.js
│ │ │ │ │ ├── ext_qunit.js
│ │ │ │ │ ├── jquery-1.5.1.js
│ │ │ │ │ ├── run.js
│ │ │ │ │ ├── tangram.js
│ │ │ │ │ ├── testrunner.js
│ │ │ │ │ └── tools.js
│ │ │ │ ├── lib
│ │ │ │ │ ├── Staf.php
│ │ │ │ │ └── StafResult.php
│ │ │ │ ├── list.php
│ │ │ │ ├── log.php
│ │ │ │ ├── mail.php
│ │ │ │ ├── read.php
│ │ │ │ ├── record.php
│ │ │ │ ├── report.php
│ │ │ │ ├── run.php
│ │ │ │ ├── runC.php
│ │ │ │ ├── runall.php
│ │ │ │ └── txt
│ │ │ │ │ ├── test1_1.txt
│ │ │ │ │ ├── test1_2.txt
│ │ │ │ │ ├── test1_3.txt
│ │ │ │ │ ├── test2_1.txt
│ │ │ │ │ ├── test2_2.txt
│ │ │ │ │ ├── test2_3.txt
│ │ │ │ │ └── test3_1.txt
│ │ │ ├── coverage
│ │ │ │ ├── cov.bat
│ │ │ │ └── jscoverage.exe
│ │ │ ├── data
│ │ │ │ ├── frame.html
│ │ │ │ ├── frame.php
│ │ │ │ ├── test.JPG
│ │ │ │ ├── test.html
│ │ │ │ └── testReady.html
│ │ │ └── lib
│ │ │ │ ├── ant_tangram_ext.jar
│ │ │ │ ├── js.jar
│ │ │ │ ├── jshunter_1.2.0.1
│ │ │ │ └── jshunter_dev
│ │ │ │ │ └── jshunter
│ │ │ │ │ ├── conf
│ │ │ │ │ ├── check.cfg
│ │ │ │ │ ├── custcheck.conf
│ │ │ │ │ ├── ignore.list
│ │ │ │ │ └── omitfiles.conf
│ │ │ │ │ ├── core
│ │ │ │ │ ├── customcheck
│ │ │ │ │ │ └── cust.sh
│ │ │ │ │ ├── jshint
│ │ │ │ │ │ ├── js.jar
│ │ │ │ │ │ └── jshint-rhino.js
│ │ │ │ │ └── tpl
│ │ │ │ │ │ ├── htmlpart.html
│ │ │ │ │ │ └── toggle_tpl.html
│ │ │ │ │ ├── hint.py
│ │ │ │ │ ├── jshint.js
│ │ │ │ │ └── version
│ │ │ │ ├── jslint4java-2.0.2.jar
│ │ │ │ ├── jslint4java-ant-1.4.2.jar
│ │ │ │ └── npPlugintest.dll
│ │ ├── ui
│ │ │ ├── autotypesetbutton.js
│ │ │ ├── button.js
│ │ │ ├── colorbutton.js
│ │ │ ├── combox.js
│ │ │ ├── css
│ │ │ │ └── DEFAULT.css
│ │ │ ├── editor.js
│ │ │ ├── editorui.js
│ │ │ ├── mask.js
│ │ │ ├── menu.js
│ │ │ ├── menubutton.js
│ │ │ ├── popup.js
│ │ │ ├── separator.js
│ │ │ ├── splitbutton.js
│ │ │ ├── stateful.js
│ │ │ ├── tablebutton.js
│ │ │ ├── toolbar.js
│ │ │ ├── tools.js
│ │ │ ├── uibase.js
│ │ │ └── uiutils.js
│ │ └── 关键字.txt
│ │ ├── asp
│ │ ├── ASPJson.class.asp
│ │ ├── MultiformProcessor.class.asp
│ │ ├── PathFormatter.class.asp
│ │ ├── README.md
│ │ ├── Uploader.Class.asp
│ │ ├── action_config.asp
│ │ ├── action_crawler.asp
│ │ ├── action_list.asp
│ │ ├── action_upload.asp
│ │ ├── config.json
│ │ ├── config_loader.asp
│ │ └── controller.asp
│ │ ├── changelog.md
│ │ ├── dialogs
│ │ ├── anchor
│ │ │ └── anchor.html
│ │ ├── attachment
│ │ │ ├── attachment.css
│ │ │ ├── attachment.html
│ │ │ ├── attachment.js
│ │ │ ├── fileTypeImages
│ │ │ │ ├── icon_chm.gif
│ │ │ │ ├── icon_default.png
│ │ │ │ ├── icon_doc.gif
│ │ │ │ ├── icon_exe.gif
│ │ │ │ ├── icon_jpg.gif
│ │ │ │ ├── icon_mp3.gif
│ │ │ │ ├── icon_mv.gif
│ │ │ │ ├── icon_pdf.gif
│ │ │ │ ├── icon_ppt.gif
│ │ │ │ ├── icon_psd.gif
│ │ │ │ ├── icon_rar.gif
│ │ │ │ ├── icon_txt.gif
│ │ │ │ └── icon_xls.gif
│ │ │ └── images
│ │ │ │ ├── alignicon.gif
│ │ │ │ ├── alignicon.png
│ │ │ │ ├── bg.png
│ │ │ │ ├── file-icons.gif
│ │ │ │ ├── file-icons.png
│ │ │ │ ├── icons.gif
│ │ │ │ ├── icons.png
│ │ │ │ ├── image.png
│ │ │ │ ├── progress.png
│ │ │ │ ├── success.gif
│ │ │ │ └── success.png
│ │ ├── background
│ │ │ ├── background.css
│ │ │ ├── background.html
│ │ │ ├── background.js
│ │ │ └── images
│ │ │ │ ├── bg.png
│ │ │ │ └── success.png
│ │ ├── charts
│ │ │ ├── chart.config.js
│ │ │ ├── charts.css
│ │ │ ├── charts.html
│ │ │ ├── charts.js
│ │ │ └── images
│ │ │ │ ├── charts0.png
│ │ │ │ ├── charts1.png
│ │ │ │ ├── charts2.png
│ │ │ │ ├── charts3.png
│ │ │ │ ├── charts4.png
│ │ │ │ └── charts5.png
│ │ ├── emotion
│ │ │ ├── emotion.css
│ │ │ ├── emotion.html
│ │ │ ├── emotion.js
│ │ │ └── images
│ │ │ │ ├── 0.gif
│ │ │ │ ├── bface.gif
│ │ │ │ ├── cface.gif
│ │ │ │ ├── fface.gif
│ │ │ │ ├── jxface2.gif
│ │ │ │ ├── neweditor-tab-bg.png
│ │ │ │ ├── tface.gif
│ │ │ │ ├── wface.gif
│ │ │ │ └── yface.gif
│ │ ├── gmap
│ │ │ └── gmap.html
│ │ ├── help
│ │ │ ├── help.css
│ │ │ ├── help.html
│ │ │ └── help.js
│ │ ├── image
│ │ │ ├── image.css
│ │ │ ├── image.html
│ │ │ ├── image.js
│ │ │ └── images
│ │ │ │ ├── alignicon.jpg
│ │ │ │ ├── bg.png
│ │ │ │ ├── icons.gif
│ │ │ │ ├── icons.png
│ │ │ │ ├── image.png
│ │ │ │ ├── progress.png
│ │ │ │ ├── success.gif
│ │ │ │ └── success.png
│ │ ├── insertframe
│ │ │ └── insertframe.html
│ │ ├── internal.js
│ │ ├── link
│ │ │ └── link.html
│ │ ├── map
│ │ │ ├── map.html
│ │ │ └── show.html
│ │ ├── music
│ │ │ ├── music.css
│ │ │ ├── music.html
│ │ │ └── music.js
│ │ ├── preview
│ │ │ └── preview.html
│ │ ├── scrawl
│ │ │ ├── images
│ │ │ │ ├── addimg.png
│ │ │ │ ├── brush.png
│ │ │ │ ├── delimg.png
│ │ │ │ ├── delimgH.png
│ │ │ │ ├── empty.png
│ │ │ │ ├── emptyH.png
│ │ │ │ ├── eraser.png
│ │ │ │ ├── redo.png
│ │ │ │ ├── redoH.png
│ │ │ │ ├── scale.png
│ │ │ │ ├── scaleH.png
│ │ │ │ ├── size.png
│ │ │ │ ├── undo.png
│ │ │ │ └── undoH.png
│ │ │ ├── scrawl.css
│ │ │ ├── scrawl.html
│ │ │ └── scrawl.js
│ │ ├── searchreplace
│ │ │ ├── searchreplace.html
│ │ │ └── searchreplace.js
│ │ ├── snapscreen
│ │ │ └── snapscreen.html
│ │ ├── spechars
│ │ │ ├── spechars.html
│ │ │ └── spechars.js
│ │ ├── table
│ │ │ ├── dragicon.png
│ │ │ ├── edittable.css
│ │ │ ├── edittable.html
│ │ │ ├── edittable.js
│ │ │ ├── edittd.html
│ │ │ └── edittip.html
│ │ ├── template
│ │ │ ├── config.js
│ │ │ ├── images
│ │ │ │ ├── bg.gif
│ │ │ │ ├── pre0.png
│ │ │ │ ├── pre1.png
│ │ │ │ ├── pre2.png
│ │ │ │ ├── pre3.png
│ │ │ │ └── pre4.png
│ │ │ ├── template.css
│ │ │ ├── template.html
│ │ │ └── template.js
│ │ ├── video
│ │ │ ├── images
│ │ │ │ ├── bg.png
│ │ │ │ ├── center_focus.jpg
│ │ │ │ ├── file-icons.gif
│ │ │ │ ├── file-icons.png
│ │ │ │ ├── icons.gif
│ │ │ │ ├── icons.png
│ │ │ │ ├── image.png
│ │ │ │ ├── left_focus.jpg
│ │ │ │ ├── none_focus.jpg
│ │ │ │ ├── progress.png
│ │ │ │ ├── right_focus.jpg
│ │ │ │ ├── success.gif
│ │ │ │ └── success.png
│ │ │ ├── video.css
│ │ │ ├── video.html
│ │ │ └── video.js
│ │ ├── webapp
│ │ │ └── webapp.html
│ │ └── wordimage
│ │ │ ├── fClipboard_ueditor.swf
│ │ │ ├── imageUploader.swf
│ │ │ ├── tangram.js
│ │ │ ├── wordimage.html
│ │ │ └── wordimage.js
│ │ ├── jsp
│ │ ├── config.json
│ │ ├── controller.jsp
│ │ ├── lib
│ │ │ ├── commons-codec-1.9.jar
│ │ │ ├── commons-fileupload-1.3.1.jar
│ │ │ ├── commons-io-2.4.jar
│ │ │ ├── json.jar
│ │ │ └── ueditor-1.1.2.jar
│ │ └── src
│ │ │ └── com
│ │ │ └── baidu
│ │ │ └── ueditor
│ │ │ ├── ActionEnter.java
│ │ │ ├── ConfigManager.java
│ │ │ ├── Encoder.java
│ │ │ ├── PathFormat.java
│ │ │ ├── define
│ │ │ ├── ActionMap.java
│ │ │ ├── ActionState.java
│ │ │ ├── AppInfo.java
│ │ │ ├── BaseState.java
│ │ │ ├── FileType.java
│ │ │ ├── MIMEType.java
│ │ │ ├── MultiState.java
│ │ │ └── State.java
│ │ │ ├── hunter
│ │ │ ├── FileManager.java
│ │ │ └── ImageHunter.java
│ │ │ └── upload
│ │ │ ├── Base64Uploader.java
│ │ │ ├── BinaryUploader.java
│ │ │ ├── StorageManager.java
│ │ │ └── Uploader.java
│ │ ├── lang
│ │ ├── en
│ │ │ ├── en.js
│ │ │ └── images
│ │ │ │ ├── addimage.png
│ │ │ │ ├── alldeletebtnhoverskin.png
│ │ │ │ ├── alldeletebtnupskin.png
│ │ │ │ ├── background.png
│ │ │ │ ├── button.png
│ │ │ │ ├── copy.png
│ │ │ │ ├── deletedisable.png
│ │ │ │ ├── deleteenable.png
│ │ │ │ ├── listbackground.png
│ │ │ │ ├── localimage.png
│ │ │ │ ├── music.png
│ │ │ │ ├── rotateleftdisable.png
│ │ │ │ ├── rotateleftenable.png
│ │ │ │ ├── rotaterightdisable.png
│ │ │ │ ├── rotaterightenable.png
│ │ │ │ └── upload.png
│ │ └── zh-cn
│ │ │ ├── images
│ │ │ ├── copy.png
│ │ │ ├── localimage.png
│ │ │ ├── music.png
│ │ │ └── upload.png
│ │ │ └── zh-cn.js
│ │ ├── net
│ │ ├── App_Code
│ │ │ ├── Config.cs
│ │ │ ├── ConfigHandler.cs
│ │ │ ├── CrawlerHandler.cs
│ │ │ ├── Handler.cs
│ │ │ ├── ListFileHandler.cs
│ │ │ ├── NotSupportedHandler.cs
│ │ │ ├── PathFormater.cs
│ │ │ └── UploadHandler.cs
│ │ ├── README.md
│ │ ├── Web.config
│ │ ├── config.json
│ │ ├── controller.ashx
│ │ └── net.sln
│ │ ├── package.json
│ │ ├── php
│ │ ├── Uploader.class.php
│ │ ├── action_crawler.php
│ │ ├── action_list.php
│ │ ├── action_upload.php
│ │ ├── config.json
│ │ └── controller.php
│ │ ├── themes
│ │ ├── default
│ │ │ ├── _css
│ │ │ │ ├── autotypesetpicker.css
│ │ │ │ ├── button.css
│ │ │ │ ├── buttonicon.css
│ │ │ │ ├── cellalignpicker.css
│ │ │ │ ├── colorbutton.css
│ │ │ │ ├── colorpicker.css
│ │ │ │ ├── combox.css
│ │ │ │ ├── contextmenu.css
│ │ │ │ ├── dialog.css
│ │ │ │ ├── editor.css
│ │ │ │ ├── menu.css
│ │ │ │ ├── menubutton.css
│ │ │ │ ├── message.css
│ │ │ │ ├── multiMenu.css
│ │ │ │ ├── paragraphpicker.css
│ │ │ │ ├── pastepicker.css
│ │ │ │ ├── popup.css
│ │ │ │ ├── separtor.css
│ │ │ │ ├── shortcutmenu.css
│ │ │ │ ├── splitbutton.css
│ │ │ │ ├── tablepicker.css
│ │ │ │ ├── toolbar.css
│ │ │ │ ├── ueditor.css
│ │ │ │ └── uibase.css
│ │ │ ├── dialogbase.css
│ │ │ └── images
│ │ │ │ ├── anchor.gif
│ │ │ │ ├── arrow.png
│ │ │ │ ├── arrow_down.png
│ │ │ │ ├── arrow_up.png
│ │ │ │ ├── button-bg.gif
│ │ │ │ ├── cancelbutton.gif
│ │ │ │ ├── charts.png
│ │ │ │ ├── cursor_h.gif
│ │ │ │ ├── cursor_h.png
│ │ │ │ ├── cursor_v.gif
│ │ │ │ ├── cursor_v.png
│ │ │ │ ├── dialog-title-bg.png
│ │ │ │ ├── filescan.png
│ │ │ │ ├── highlighted.gif
│ │ │ │ ├── icons-all.gif
│ │ │ │ ├── icons.gif
│ │ │ │ ├── icons.png
│ │ │ │ ├── loaderror.png
│ │ │ │ ├── loading.gif
│ │ │ │ ├── lock.gif
│ │ │ │ ├── neweditor-tab-bg.png
│ │ │ │ ├── pagebreak.gif
│ │ │ │ ├── scale.png
│ │ │ │ ├── sortable.png
│ │ │ │ ├── spacer.gif
│ │ │ │ ├── sparator_v.png
│ │ │ │ ├── table-cell-align.png
│ │ │ │ ├── tangram-colorpicker.png
│ │ │ │ ├── toolbar_bg.png
│ │ │ │ ├── unhighlighted.gif
│ │ │ │ ├── upload.png
│ │ │ │ ├── videologo.gif
│ │ │ │ ├── word.gif
│ │ │ │ └── wordpaste.png
│ │ └── iframe.css
│ │ ├── third-party
│ │ ├── SyntaxHighlighter
│ │ │ ├── shCore.js
│ │ │ └── shCoreDefault.css
│ │ ├── codemirror
│ │ │ ├── codemirror.css
│ │ │ └── codemirror.js
│ │ ├── highcharts
│ │ │ ├── adapters
│ │ │ │ ├── mootools-adapter.js
│ │ │ │ ├── mootools-adapter.src.js
│ │ │ │ ├── prototype-adapter.js
│ │ │ │ ├── prototype-adapter.src.js
│ │ │ │ ├── standalone-framework.js
│ │ │ │ └── standalone-framework.src.js
│ │ │ ├── highcharts-more.js
│ │ │ ├── highcharts-more.src.js
│ │ │ ├── highcharts.js
│ │ │ ├── highcharts.src.js
│ │ │ ├── modules
│ │ │ │ ├── annotations.js
│ │ │ │ ├── annotations.src.js
│ │ │ │ ├── canvas-tools.js
│ │ │ │ ├── canvas-tools.src.js
│ │ │ │ ├── data.js
│ │ │ │ ├── data.src.js
│ │ │ │ ├── drilldown.js
│ │ │ │ ├── drilldown.src.js
│ │ │ │ ├── exporting.js
│ │ │ │ ├── exporting.src.js
│ │ │ │ ├── funnel.js
│ │ │ │ ├── funnel.src.js
│ │ │ │ ├── heatmap.js
│ │ │ │ ├── heatmap.src.js
│ │ │ │ ├── map.js
│ │ │ │ ├── map.src.js
│ │ │ │ ├── no-data-to-display.js
│ │ │ │ └── no-data-to-display.src.js
│ │ │ └── themes
│ │ │ │ ├── dark-blue.js
│ │ │ │ ├── dark-green.js
│ │ │ │ ├── gray.js
│ │ │ │ ├── grid.js
│ │ │ │ └── skies.js
│ │ ├── jquery-1.10.2.js
│ │ ├── jquery-1.10.2.min.js
│ │ ├── jquery-1.10.2.min.map
│ │ ├── snapscreen
│ │ │ └── UEditorSnapscreen.exe
│ │ ├── video-js
│ │ │ ├── font
│ │ │ │ ├── vjs.eot
│ │ │ │ ├── vjs.svg
│ │ │ │ ├── vjs.ttf
│ │ │ │ └── vjs.woff
│ │ │ ├── video-js.css
│ │ │ ├── video-js.min.css
│ │ │ ├── video-js.swf
│ │ │ ├── video.dev.js
│ │ │ └── video.js
│ │ ├── webuploader
│ │ │ ├── Uploader.swf
│ │ │ ├── webuploader.css
│ │ │ ├── webuploader.custom.js
│ │ │ ├── webuploader.custom.min.js
│ │ │ ├── webuploader.flashonly.js
│ │ │ ├── webuploader.flashonly.min.js
│ │ │ ├── webuploader.html5only.js
│ │ │ ├── webuploader.html5only.min.js
│ │ │ ├── webuploader.js
│ │ │ ├── webuploader.min.js
│ │ │ ├── webuploader.withoutimage.js
│ │ │ └── webuploader.withoutimage.min.js
│ │ ├── xss.min.js
│ │ └── zeroclipboard
│ │ │ ├── ZeroClipboard.js
│ │ │ ├── ZeroClipboard.min.js
│ │ │ └── ZeroClipboard.swf
│ │ ├── ueditor.config.js
│ │ └── ueditor.parse.js
└── 拉勾网
│ ├── img
│ └── default.jpg
│ ├── js
│ ├── base.js
│ └── jquery.js
│ ├── server.js
│ ├── 拉勾网.html
│ └── 拉勾网_files
│ ├── Cgo8PFTUV_qAG3JDAAAgU5IO21M910.png
│ ├── Cgo8PFW6zMuAUtu4AAA02B-6fVE006.png
│ ├── Cgo8PFWuBQ-AXTETAAAtKFFKGAg517.jpg
│ ├── Cgp3O1cwXzWAPpvjAAAYnaMmScM575.png
│ ├── CgpEMllwVRmABsFtAAAJ_HaibK0019.gif
│ ├── CgpEMllwVZOAL2ACAAARG1NwZTA036.jpg
│ ├── CgpFT1ldsNmABTLVAAAqfrj_rjI113.png
│ ├── CgpFT1mpHKCAF5oKAABeE95QxFk132.png
│ ├── CgqKkVfqBfWAL_59AAIoyA78eo4677.png
│ ├── a.js.下载
│ ├── analytics.js(1).下载
│ ├── analytics.js.下载
│ ├── download_btn_close.png
│ ├── download_btn_new.png
│ ├── download_logo_new.png
│ ├── download_mascot.png
│ ├── download_popup_banner.png
│ ├── download_popup_btn.png
│ ├── download_txt_new.png
│ ├── esl.js.下载
│ ├── event.js.下载
│ ├── fx.js.下载
│ ├── h.js.下载
│ ├── jquery.placeholder.js.下载
│ ├── list.css
│ ├── logo_default.png
│ ├── main.js.下载
│ ├── normalize.css
│ ├── passport_mobile.js.下载
│ ├── plat_tj.js.下载
│ ├── template.min.js.下载
│ ├── v.js.下载
│ └── zepto.min.js.下载
├── 第三天
├── 1.服务器代理和爬虫
│ ├── agent.js
│ ├── agent2.js
│ ├── api.html
│ └── js
│ │ └── jquery.js
├── 2.mysql
│ ├── mysql.js
│ └── package-lock.json
├── 3.node前后端通信配合mysql
│ ├── GET请求
│ │ ├── index.html
│ │ ├── js
│ │ │ └── jquery.js
│ │ └── server.js
│ ├── node前后端通信的路线图.png
│ └── 花椒
│ │ └── server.js
├── 4.数据库增删查改
│ ├── CMS
│ │ ├── admin-table.html
│ │ ├── admin-user.html
│ │ ├── assets
│ │ │ ├── css
│ │ │ │ ├── admin.css
│ │ │ │ ├── amazeui.css
│ │ │ │ ├── amazeui.flat.css
│ │ │ │ ├── amazeui.flat.min.css
│ │ │ │ ├── amazeui.min.css
│ │ │ │ └── app.css
│ │ │ ├── fonts
│ │ │ │ ├── FontAwesome.otf
│ │ │ │ ├── fontawesome-webfont.eot
│ │ │ │ ├── fontawesome-webfont.ttf
│ │ │ │ ├── fontawesome-webfont.woff
│ │ │ │ └── fontawesome-webfont.woff2
│ │ │ ├── i
│ │ │ │ ├── app-icon72x72@2x.png
│ │ │ │ ├── examples
│ │ │ │ │ ├── admin-chrome.png
│ │ │ │ │ ├── admin-firefox.png
│ │ │ │ │ ├── admin-ie.png
│ │ │ │ │ ├── admin-opera.png
│ │ │ │ │ ├── admin-safari.png
│ │ │ │ │ ├── adminPage.png
│ │ │ │ │ ├── blogPage.png
│ │ │ │ │ ├── landing.png
│ │ │ │ │ ├── landingPage.png
│ │ │ │ │ ├── loginPage.png
│ │ │ │ │ └── sidebarPage.png
│ │ │ │ ├── favicon.png
│ │ │ │ └── startup-640x1096.png
│ │ │ └── js
│ │ │ │ ├── amazeui.ie8polyfill.js
│ │ │ │ ├── amazeui.ie8polyfill.min.js
│ │ │ │ ├── amazeui.js
│ │ │ │ ├── amazeui.min.js
│ │ │ │ ├── amazeui.widgets.helper.js
│ │ │ │ ├── amazeui.widgets.helper.min.js
│ │ │ │ ├── app.js
│ │ │ │ ├── handlebars.min.js
│ │ │ │ └── jquery.js
│ │ └── js
│ │ │ └── jquery.js
│ └── POST请求
│ │ ├── index.html
│ │ ├── js
│ │ └── jquery.js
│ │ ├── route
│ │ └── insert.js
│ │ └── server.js
└── day3.md
├── 第二天
├── 1.event
│ └── event.js
├── 2.buffer
│ ├── buffer.js
│ └── index.html
├── 3.stream
│ ├── input.txt
│ ├── invideo
│ │ └── 1.jpg
│ ├── output.txt
│ ├── outvideo
│ │ └── 2.jpg.gz
│ ├── pipe.js
│ ├── readerstream.js
│ └── writestream.js
├── 4.模块系统
│ ├── base.js
│ ├── module1.js
│ └── 模块系统.png
├── 5.函数
│ ├── close.js
│ ├── func.js
│ └── index.html
├── 6.路由
│ ├── GET请求
│ │ ├── index.html
│ │ ├── js
│ │ │ └── jquery.js
│ │ └── server.js
│ ├── JSONP请求
│ │ ├── index.html
│ │ ├── js
│ │ │ └── jquery.js
│ │ └── server.js
│ ├── POST请求
│ │ ├── index.html
│ │ ├── js
│ │ │ └── jquery.js
│ │ └── server.js
│ └── 原生JSONP
│ │ ├── index.html
│ │ └── js
│ │ └── jsonp.js
└── day2.md
├── 第五天
├── 1.HTML5本地存储
│ ├── localstorage.html
│ ├── sessionstorage.html
│ └── 两者区别.html
├── 2.node中间件+php
│ ├── POST请求
│ │ ├── index.html
│ │ └── js
│ │ │ └── jquery.js
│ └── server.js
├── 3.HTML5定位
│ ├── 1.定位.html
│ ├── 2.根据经纬度转换.html
│ ├── 3.百度定位.html
│ ├── 4.百度地图公交车查询.html
│ └── 判断移动端或者PC端.html
└── day5.md
├── 第六天
├── day6.md
├── express
│ └── 单图上传
│ │ ├── express.js
│ │ ├── jquery+formdata.html
│ │ ├── js
│ │ ├── jquery.js
│ │ ├── socket.js
│ │ └── test.js
│ │ └── uploads
│ │ ├── logo-1505716474559.jpg
│ │ ├── logo-1505716568455.jpg
│ │ ├── logo-1505716728805.jpg
│ │ ├── logo-1505716845931.jpg
│ │ └── logo-1505716881196.jpg
├── socket.io公共聊天
│ ├── js
│ │ └── socket.js
│ ├── socket.html
│ └── socket.js
├── socket.io私人聊天
│ ├── js
│ │ └── socket.js
│ ├── socket.html
│ └── socket.js
├── 你画我猜
│ ├── index.html
│ ├── js
│ │ └── socket.js
│ └── socket.js
└── 进度条
│ ├── js
│ └── socket.js
│ ├── socket.html
│ ├── socket.js
│ └── socket2.js
└── 第四天
├── day4.md
└── express
├── COOKIE
├── app.js
└── public
│ ├── index.html
│ └── js
│ └── jquery.js
├── GET
└── get.js
├── JSONP
└── jsonp.js
├── POST
├── package.json
└── post.js
├── multer上传文件
├── 单图上传
│ ├── ajax+formdata.html
│ ├── express.js
│ ├── formdata.html
│ ├── jquery+Noformdata.html
│ ├── jquery+formdata.html
│ ├── js
│ │ ├── jquery.js
│ │ └── test.js
│ └── uploads
│ │ └── logo-1497886283213.jpg
├── 单文件上传
│ ├── multer.js
│ └── 原生ajax上传.html
├── 多图上传
│ ├── express.js
│ ├── jquery+formdata+morepic.html
│ ├── js
│ │ ├── jquery.js
│ │ └── test.js
│ └── uploads
│ │ └── logo-1497962748625.jpg
└── 多文件上传
│ ├── jquery上传图片.html
│ ├── js
│ └── jquery.js
│ ├── multer.js
│ └── 原生ajax上传.html
├── 安装和路由处理
├── app.js
└── package.json
├── 模板引擎
├── package-lock.json
├── package.json
├── public
│ └── js
│ │ └── jquery.js
├── server.js
├── server2.js
└── views
│ └── laoyao.jade
└── 静态文件
├── file
└── qqnews.json
├── static.js
└── www
├── img
├── 1.jpg
├── abc.png
└── public.jpg
├── index.html
└── js
└── jquery.js
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
--------------------------------------------------------------------------------
/api.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/http.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/jsonp.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/student/craweled.js:
--------------------------------------------------------------------------------
1 | for(let i = 0; i < imgs.length; i++) {
2 | var imgStream = fs.createWriteStream(`./img/vks${i}.jpg`);
3 | download(imgs, i, imgStream)
4 | }
--------------------------------------------------------------------------------
/student/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/student/upload_more.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | 多文件文件上传
4 | */
5 | var express = require("express");
6 | var multer = require("multer");
7 |
8 |
9 | //配置文件存放信息
10 |
11 | var storage = multer.diskStorage({
12 | //设置存放目录
13 | destination:function(request,file,cb){
14 | cb(null,"./loading")
15 | },
16 | //设置文件名
17 | filename:function(request,file,cb){
18 | //截取原始文件的后缀
19 | var format = file.originalname.split(".");
20 | cb(null,file.fieldname + "-" + Date.now() + "." + format[format.length-1])
21 | }
22 | })
23 | //配置存放文件信息 这里的参数还可以限制文件数 文件大小!!!!
24 | var uploader = multer({
25 | storage:storage
26 | })
27 |
28 | //(配置http服务) 初始化express应用
29 | var app = express();
30 | app.use(express.static('../src'));
31 | //多文件上传
32 | app.post("/file",uploader.any(),function(request,response,next){
33 | response.setHeader("Access-Control-Allow-Origin","*");//设置请求头访问类型,解决跨域
34 | console.log(request.file,request.body);
35 | response.send("ok")
36 | })
37 | app.listen(10044);
38 | console.log("server is start")
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
11 |
12 |
24 |
25 |
--------------------------------------------------------------------------------
/template.php:
--------------------------------------------------------------------------------
1 |
2 | ".$data[$i]."";
7 | }*/
8 | ?>
9 |
10 |
--------------------------------------------------------------------------------
/第一天/1.第一个nodejs程序/1.客户端运行JS.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/第一天/1.第一个nodejs程序/js/test.js:
--------------------------------------------------------------------------------
1 | //这是服务端的JS,宿主环境就是nodejs
2 | console.log("hello world")
--------------------------------------------------------------------------------
/第一天/1.第一个nodejs程序/node.js:
--------------------------------------------------------------------------------
1 | console.log("Hello World");
2 | function a(){
3 | setTimeout(function(){
4 | console.log("延时器");
5 | },1000)
6 | }
7 | a();
--------------------------------------------------------------------------------
/第一天/1.第一个nodejs程序/node.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第一天/1.第一个nodejs程序/node.txt
--------------------------------------------------------------------------------
/第一天/2.模块系统/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/第一天/2.模块系统/js/module1.js:
--------------------------------------------------------------------------------
1 |
2 | function add(a,b){
3 | return a+b
4 | }
5 |
6 | //如果是require.js define
7 |
8 | //导出模块
9 | module.exports = add;
--------------------------------------------------------------------------------
/第一天/2.模块系统/js/module2.js:
--------------------------------------------------------------------------------
1 | //导入模块
2 | var add = require("./module1.js");
3 | //导入tool模块
4 | var tool = require("./tool.js")
5 | console.log(tool.name)
6 |
7 | /*console.log(add)
8 | var total = add(1,2);
9 | console.log(total)*/
10 |
--------------------------------------------------------------------------------
/第一天/2.模块系统/js/tool.js:
--------------------------------------------------------------------------------
1 | //自定义模块
2 | var obj = {
3 | name: "layoyao",
4 | age: 99,
5 | skill: ["PS", "JS", "CSS"]
6 | }
7 | module.exports = obj;
--------------------------------------------------------------------------------
/第一天/3.内置模块/ajax.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/第一天/3.内置模块/diy.js:
--------------------------------------------------------------------------------
1 | var obj = {
2 | name: "laoxie"
3 | }
4 | var arr = ["a", "b", "c"];
5 | var objj = {
6 | name: obj.name,
7 | arr
8 | }
9 | module.exports = objj;
--------------------------------------------------------------------------------
/第一天/3.内置模块/fs.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 | //console.log(fs)
3 | /*fs.mkdir('./test1', function(){
4 | console.log("创建文件夹成功")
5 | })*/
6 | fs.readFile("./input.txt",(err,data)=>{
7 | console.log(data.toString());
8 | })
9 |
--------------------------------------------------------------------------------
/第一天/3.内置模块/http.js:
--------------------------------------------------------------------------------
1 | var http = require("http");//非相对路径
2 | var objj = require("./diy.js")
3 | //console.log(http)
4 | //创建服务器,在这里一直监听12345端口,并且处理相应和请求
5 | http.createServer((res,req)=>{
6 | //req.setHeader("Access-Control-Allow-Origin:*");
7 | req.setHeader("Access-Control-Allow-Origin","*");
8 | //res请求
9 | //req响应
10 | //相应结果到浏览器或者前端
11 | //req.end(JSON.stringify(objj))
12 | req.writeHead(200, {'Content-Type': 'text/html'});
13 | req.end("123
")
14 | }).listen(12345)
15 | //端口小于65536
16 |
--------------------------------------------------------------------------------
/第一天/3.内置模块/input.txt:
--------------------------------------------------------------------------------
1 | 你好
--------------------------------------------------------------------------------
/第一天/3.内置模块/os.js:
--------------------------------------------------------------------------------
1 | const os = require('os');
2 | //console.log(os)
3 | console.log(os.cpus())
4 | console.log(os.platform())
5 |
--------------------------------------------------------------------------------
/第一天/4.第三方模块/dist/test.js:
--------------------------------------------------------------------------------
1 | function abc(c,n){return console.log("abc"),c+n}
--------------------------------------------------------------------------------
/第一天/4.第三方模块/gulpfile.js:
--------------------------------------------------------------------------------
1 | //cnpm install gulp -g
2 | //第三方模块
3 | var gulp = require("gulp");
4 | var uglify = require("gulp-uglify");
5 | gulp.task("minifyjs", function() {
6 | //导入JS文件
7 | return gulp.src("./test.js")
8 | //执行压缩
9 | .pipe(uglify())
10 | //导出JS文件
11 | .pipe(gulp.dest("./dist"))
12 | });
13 |
14 | gulp.task("default", ["minifyjs"])
15 | //npm install
--------------------------------------------------------------------------------
/第一天/4.第三方模块/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/第一天/4.第三方模块/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "asd",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "gulpfile.js",
6 | "dependencies": {},
7 | "devDependencies": {
8 | "jquery": "^3.2.1"
9 | },
10 | "scripts": {
11 | "test": "echo \"Error: no test specified\" && exit 1"
12 | },
13 | "author": "",
14 | "license": "ISC"
15 | }
16 |
--------------------------------------------------------------------------------
/第一天/4.第三方模块/test.js:
--------------------------------------------------------------------------------
1 | function abc(aaa, bbb) {
2 | //asdasdasda
3 | console.log("abc")
4 | return aaa + bbb
5 | }
--------------------------------------------------------------------------------
/第一天/5.回调函数/fs.js:
--------------------------------------------------------------------------------
1 | //file system文件系统
2 | var fs = require("fs");
3 | console.log("1");
4 | //异步 非阻塞
5 | var text;
6 |
7 | function a(callback) {
8 | fs.readFile("./input.txt", function(err, data) {
9 | console.log("2");
10 | text = data.toString()
11 | console.log(data.toString())
12 | callback(text)
13 | })
14 | }
15 | a(function(text){
16 | console.log(text)
17 | })
18 |
19 | //同步 阻塞
20 | /*var data = fs.readFileSync("./input.txt");
21 | console.log("2");
22 | console.log(data.toString())
23 | console.log("3");*/
--------------------------------------------------------------------------------
/第一天/5.回调函数/input.txt:
--------------------------------------------------------------------------------
1 | asdnalskdalksdjalsdjalsdj
--------------------------------------------------------------------------------
/第一天/5.回调函数/sync.js:
--------------------------------------------------------------------------------
1 | console.log("1")
2 |
3 | function a(callback) {
4 | setTimeout(function() {
5 | console.log("2")
6 | callback()
7 | }, 10000)
8 | }
9 | a(function() {
10 | //不阻塞这个线程
11 | console.log("3")
12 | });
--------------------------------------------------------------------------------
/第一天/5.回调函数/syncc.js:
--------------------------------------------------------------------------------
1 | console.log("1")
2 |
3 | function a(callback) {
4 | console.log("2")
5 | callback()
6 | }
7 |
8 | a(function() {
9 | //不阻塞这个线程
10 | console.log("3")
11 | });
--------------------------------------------------------------------------------
/第七天/富文本编辑器/server.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/server.js
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | # Unix-style newlines with a newline ending every file
4 | [*]
5 | end_of_line = lf
6 | insert_final_newline = true
7 | charset = utf-8
8 |
9 | [*.{html,js,css,scss,xml}]
10 | indent_style = space
11 | indent_size = 4
12 | trim_trailing_whitespace = true
13 |
14 | [*.yml]
15 | indent_style = space
16 | indent_size = 2
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013 ueditor
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_examples/addCustomizeButton.js:
--------------------------------------------------------------------------------
1 | UE.registerUI('button',function(editor,uiName){
2 | //注册按钮执行时的command命令,使用命令默认就会带有回退操作
3 | editor.registerCommand(uiName,{
4 | execCommand:function(){
5 | alert('execCommand:' + uiName)
6 | }
7 | });
8 |
9 | //创建一个button
10 | var btn = new UE.ui.Button({
11 | //按钮的名字
12 | name:uiName,
13 | //提示
14 | title:uiName,
15 | //需要添加的额外样式,指定icon图标,这里默认使用一个重复的icon
16 | cssRules :'background-position: -500px 0;',
17 | //点击时执行的命令
18 | onclick:function () {
19 | //这里可以不用执行命令,做你自己的操作也可
20 | editor.execCommand(uiName);
21 | }
22 | });
23 |
24 | //当点到编辑内容上时,按钮要做的状态反射
25 | editor.addListener('selectionchange', function () {
26 | var state = editor.queryCommandState(uiName);
27 | if (state == -1) {
28 | btn.setDisabled(true);
29 | btn.setChecked(false);
30 | } else {
31 | btn.setDisabled(false);
32 | btn.setChecked(state);
33 | }
34 | });
35 |
36 | //因为你是添加button,所以需要返回这个button
37 | return btn;
38 | }/*index 指定添加到工具栏上的那个位置,默认时追加到最后,editorId 指定这个UI是那个编辑器实例上的,默认是页面上所有的编辑器都会添加这个按钮*/);
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_examples/server/getContent.ashx:
--------------------------------------------------------------------------------
1 | <%@ WebHandler Language="C#" Class="getContent" %>
2 | /**
3 | * Created by visual studio 2010
4 | * User: xuheng
5 | * Date: 12-3-6
6 | * Time: 下午21:23
7 | * To get the value of editor and output the value .
8 | */
9 | using System;
10 | using System.Web;
11 |
12 | public class getContent : IHttpHandler {
13 |
14 | public void ProcessRequest (HttpContext context) {
15 | context.Response.ContentType = "text/html";
16 |
17 | //获取数据
18 | string content = context.Server.HtmlEncode(context.Request.Form["myEditor"]);
19 |
20 |
21 | //存入数据库或者其他操作
22 | //-------------
23 |
24 | //显示
25 | context.Response.Write("");
26 | context.Response.Write(
27 |
28 | "");
32 |
33 | context.Response.Write("Content of First Editor: ");
34 | context.Response.Write("" + context.Server.HtmlDecode(content) + "
");
35 |
36 | }
37 |
38 | public bool IsReusable {
39 | get {
40 | return false;
41 | }
42 | }
43 |
44 | }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_examples/server/getContent.asp:
--------------------------------------------------------------------------------
1 | <% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
2 |
3 |
4 |
10 | <%
11 | Dim content
12 | content = Request.Form("myEditor")
13 | Response.Write("第1个编辑器的值")
14 | Response.Write("" + content + "
")
15 | %>
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_examples/server/getContent.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
2 |
3 |
4 |
9 | <%
10 | request.setCharacterEncoding("utf-8");
11 | response.setCharacterEncoding("utf-8");
12 | String content = request.getParameter("myEditor");
13 |
14 |
15 |
16 | response.getWriter().print("第1个编辑器的值");
17 | response.getWriter().print(""+content+"
");
18 |
19 | %>
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_examples/server/getContent.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 | ".htmlspecialchars_decode($content)."";
20 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_parse/background.js:
--------------------------------------------------------------------------------
1 | UE.parse.register('background', function (utils) {
2 | var me = this,
3 | root = me.root,
4 | p = root.getElementsByTagName('p'),
5 | styles;
6 |
7 | for (var i = 0,ci; ci = p[i++];) {
8 | styles = ci.getAttribute('data-background');
9 | if (styles){
10 | ci.parentNode.removeChild(ci);
11 | }
12 | }
13 |
14 | //追加默认的表格样式
15 | styles && utils.cssRule('ueditor_background', me.selector + '{' + styles + '}', document);
16 | });
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_parse/video.js:
--------------------------------------------------------------------------------
1 | UE.parse.register('vedio',function(utils){
2 | var video = this.root.getElementsByTagName('video'),
3 | audio = this.root.getElementsByTagName('audio');
4 |
5 | document.createElement('video');document.createElement('audio');
6 | if(video.length || audio.length){
7 | var sourcePath = utils.removeLastbs(this.rootPath),
8 | jsurl = sourcePath + '/third-party/video-js/video.js',
9 | cssurl = sourcePath + '/third-party/video-js/video-js.min.css',
10 | swfUrl = sourcePath + '/third-party/video-js/video-js.swf';
11 |
12 | if(window.videojs) {
13 | videojs.autoSetup();
14 | } else {
15 | utils.loadFile(document,{
16 | id : "video_css",
17 | tag : "link",
18 | rel : "stylesheet",
19 | type : "text/css",
20 | href : cssurl
21 | });
22 | utils.loadFile(document,{
23 | id : "video_js",
24 | src : jsurl,
25 | tag : "script",
26 | type : "text/javascript"
27 | },function(){
28 | videojs.options.flash.swf = swfUrl;
29 | videojs.autoSetup();
30 | });
31 | }
32 |
33 | }
34 | });
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/adapter/autosave.js:
--------------------------------------------------------------------------------
1 | UE.registerUI('autosave', function(editor) {
2 | var timer = null,uid = null;
3 | editor.on('afterautosave',function(){
4 | clearTimeout(timer);
5 |
6 | timer = setTimeout(function(){
7 | if(uid){
8 | editor.trigger('hidemessage',uid);
9 | }
10 | uid = editor.trigger('showmessage',{
11 | content : editor.getLang('autosave.success'),
12 | timeout : 2000
13 | });
14 |
15 | },2000)
16 | })
17 |
18 | });
19 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 该文件定义了API文档所使用到的本地函数的说明
3 | * @file
4 | * @module Native
5 | */
6 |
7 | /**
8 | * 辅助接口说明
9 | * @module Native
10 | * @unfile
11 | */
12 |
13 | /**
14 | * 原生String对象, 字符串
15 | * @class String
16 | */
17 |
18 | /**
19 | * 原生Function对象, 函数
20 | * @class Function
21 | */
22 |
23 | /**
24 | * 原生Object对象, 普通对象
25 | * @remind 如果某一方法的参数类型为Object时, 表示该参数应该接受一个key-value集合
26 | * @class Object
27 | */
28 |
29 | /**
30 | * 原生Boolean对象, 布尔值
31 | * @class Boolean
32 | */
33 |
34 | /**
35 | * 原生Number对象, 数值
36 | * @class Number
37 | */
38 |
39 | /**
40 | * 原生NULL对象, 空
41 | * @class NULL
42 | */
43 |
44 | /**
45 | * 原生Array对象, 数组
46 | * @class Array
47 | */
48 |
49 | /**
50 | * 浏览器Node, dom节点
51 | * @class Node
52 | */
53 |
54 | /**
55 | * 浏览器Element, dom元素
56 | * @class Element
57 | */
58 |
59 | /**
60 | * UEditor模拟dom节点对象
61 | * @class uNode
62 | */
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/core/Editor.defaultoptions.js:
--------------------------------------------------------------------------------
1 | //维护编辑器一下默认的不在插件中的配置项
2 | UE.Editor.defaultOptions = function(editor){
3 |
4 | var _url = editor.options.UEDITOR_HOME_URL;
5 | return {
6 | isShow: true,
7 | initialContent: '',
8 | initialStyle:'',
9 | autoClearinitialContent: false,
10 | iframeCssUrl: _url + 'themes/iframe.css',
11 | textarea: 'editorValue',
12 | focus: false,
13 | focusInEnd: true,
14 | autoClearEmptyNode: true,
15 | fullscreen: false,
16 | readonly: false,
17 | zIndex: 999,
18 | imagePopup: true,
19 | enterTag: 'p',
20 | customDomain: false,
21 | lang: 'zh-cn',
22 | langPath: _url + 'lang/',
23 | theme: 'default',
24 | themePath: _url + 'themes/',
25 | allHtmlEnabled: false,
26 | scaleEnabled: false,
27 | tableNativeEditInFF: false,
28 | autoSyncData : true,
29 | fileNameFormat: '{time}{rand:6}'
30 | }
31 | };
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/core/keymap.js:
--------------------------------------------------------------------------------
1 | var keymap = UE.keymap = {
2 | 'Backspace' : 8,
3 | 'Tab' : 9,
4 | 'Enter' : 13,
5 |
6 | 'Shift':16,
7 | 'Control':17,
8 | 'Alt':18,
9 | 'CapsLock':20,
10 |
11 | 'Esc':27,
12 |
13 | 'Spacebar':32,
14 |
15 | 'PageUp':33,
16 | 'PageDown':34,
17 | 'End':35,
18 | 'Home':36,
19 |
20 | 'Left':37,
21 | 'Up':38,
22 | 'Right':39,
23 | 'Down':40,
24 |
25 | 'Insert':45,
26 |
27 | 'Del':46,
28 |
29 | 'NumLock':144,
30 |
31 | 'Cmd':91,
32 |
33 | '=':187,
34 | '-':189,
35 |
36 | "b":66,
37 | 'i':73,
38 | //回退
39 | 'z':90,
40 | 'y':89,
41 | //粘贴
42 | 'v' : 86,
43 | 'x' : 88,
44 |
45 | 's' : 83,
46 |
47 | 'n' : 78
48 | };
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/editor.js:
--------------------------------------------------------------------------------
1 | UEDITOR_CONFIG = window.UEDITOR_CONFIG || {};
2 |
3 | var baidu = window.baidu || {};
4 |
5 | window.baidu = baidu;
6 |
7 | window.UE = baidu.editor = window.UE || {};
8 |
9 | UE.plugins = {};
10 |
11 | UE.commands = {};
12 |
13 | UE.instants = {};
14 |
15 | UE.I18N = {};
16 |
17 | UE._customizeUI = {};
18 |
19 | UE.version = "1.4.3";
20 |
21 | var dom = UE.dom = {};
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/plugins/autosubmit.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 快捷键提交
3 | * @file
4 | * @since 1.2.6.1
5 | */
6 |
7 | /**
8 | * 提交表单
9 | * @command autosubmit
10 | * @method execCommand
11 | * @param { String } cmd 命令字符串
12 | * @example
13 | * ```javascript
14 | * editor.execCommand( 'autosubmit' );
15 | * ```
16 | */
17 |
18 | UE.plugin.register('autosubmit',function(){
19 | return {
20 | shortcutkey:{
21 | "autosubmit":"ctrl+13" //手动提交
22 | },
23 | commands:{
24 | 'autosubmit':{
25 | execCommand:function () {
26 | var me=this,
27 | form = domUtils.findParentByTagName(me.iframe,"form", false);
28 | if (form){
29 | if(me.fireEvent("beforesubmit")===false){
30 | return;
31 | }
32 | me.sync();
33 | form.submit();
34 | }
35 | }
36 | }
37 | }
38 | }
39 | });
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/plugins/cleardoc.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 清空文档插件
3 | * @file
4 | * @since 1.2.6.1
5 | */
6 |
7 | /**
8 | * 清空文档
9 | * @command cleardoc
10 | * @method execCommand
11 | * @param { String } cmd 命令字符串
12 | * @example
13 | * ```javascript
14 | * //editor 是编辑器实例
15 | * editor.execCommand('cleardoc');
16 | * ```
17 | */
18 |
19 | UE.commands['cleardoc'] = {
20 | execCommand : function( cmdName) {
21 | var me = this,
22 | enterTag = me.options.enterTag,
23 | range = me.selection.getRange();
24 | if(enterTag == "br"){
25 | me.body.innerHTML = "
";
26 | range.setStart(me.body,0).setCursor();
27 | }else{
28 | me.body.innerHTML = ""+(ie ? "" : "
")+"
";
29 | range.setStart(me.body.firstChild,0).setCursor(false,true);
30 | }
31 | setTimeout(function(){
32 | me.fireEvent("clearDoc");
33 | },0);
34 |
35 | }
36 | };
37 |
38 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/plugins/iframe.js:
--------------------------------------------------------------------------------
1 | ///import core
2 | ///import plugins\inserthtml.js
3 | ///commands 插入框架
4 | ///commandsName InsertFrame
5 | ///commandsTitle 插入Iframe
6 | ///commandsDialog dialogs\insertframe
7 |
8 | UE.plugins['insertframe'] = function() {
9 | var me =this;
10 | function deleteIframe(){
11 | me._iframe && delete me._iframe;
12 | }
13 |
14 | me.addListener("selectionchange",function(){
15 | deleteIframe();
16 | });
17 |
18 | };
19 |
20 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/plugins/indent.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 首行缩进
3 | * @file
4 | * @since 1.2.6.1
5 | */
6 |
7 | /**
8 | * 缩进
9 | * @command indent
10 | * @method execCommand
11 | * @param { String } cmd 命令字符串
12 | * @example
13 | * ```javascript
14 | * editor.execCommand( 'indent' );
15 | * ```
16 | */
17 | UE.commands['indent'] = {
18 | execCommand : function() {
19 | var me = this,value = me.queryCommandState("indent") ? "0em" : (me.options.indentValue || '2em');
20 | me.execCommand('Paragraph','p',{style:'text-indent:'+ value});
21 | },
22 | queryCommandState : function() {
23 | var pN = domUtils.filterNodeList(this.selection.getStartElementPath(),'p h1 h2 h3 h4 h5 h6');
24 | return pN && pN.style.textIndent && parseInt(pN.style.textIndent) ? 1 : 0;
25 | }
26 |
27 | };
28 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/plugins/insertparagraph.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 插入段落
3 | * @file
4 | * @since 1.2.6.1
5 | */
6 |
7 |
8 | /**
9 | * 插入段落
10 | * @command insertparagraph
11 | * @method execCommand
12 | * @param { String } cmd 命令字符串
13 | * @example
14 | * ```javascript
15 | * //editor是编辑器实例
16 | * editor.execCommand( 'insertparagraph' );
17 | * ```
18 | */
19 |
20 | UE.commands['insertparagraph'] = {
21 | execCommand : function( cmdName,front) {
22 | var me = this,
23 | range = me.selection.getRange(),
24 | start = range.startContainer,tmpNode;
25 | while(start ){
26 | if(domUtils.isBody(start)){
27 | break;
28 | }
29 | tmpNode = start;
30 | start = start.parentNode;
31 | }
32 | if(tmpNode){
33 | var p = me.document.createElement('p');
34 | if(front){
35 | tmpNode.parentNode.insertBefore(p,tmpNode)
36 | }else{
37 | tmpNode.parentNode.insertBefore(p,tmpNode.nextSibling)
38 | }
39 | domUtils.fillNode(me.document,p);
40 | range.setStart(p,0).setCursor(false,true);
41 | }
42 | }
43 | };
44 |
45 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/plugins/preview.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 预览
3 | * @file
4 | * @since 1.2.6.1
5 | */
6 |
7 | /**
8 | * 预览
9 | * @command preview
10 | * @method execCommand
11 | * @param { String } cmd 命令字符串
12 | * @example
13 | * ```javascript
14 | * editor.execCommand( 'preview' );
15 | * ```
16 | */
17 | UE.commands['preview'] = {
18 | execCommand : function(){
19 | var w = window.open('', '_blank', ''),
20 | d = w.document;
21 | d.open();
22 | d.write(''+this.getContent(null,null,true)+'
');
25 | d.close();
26 | },
27 | notNeedUndo : 1
28 | };
29 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/plugins/print.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 打印
3 | * @file
4 | * @since 1.2.6.1
5 | */
6 |
7 | /**
8 | * 打印
9 | * @command print
10 | * @method execCommand
11 | * @param { String } cmd 命令字符串
12 | * @example
13 | * ```javascript
14 | * editor.execCommand( 'print' );
15 | * ```
16 | */
17 | UE.commands['print'] = {
18 | execCommand : function(){
19 | this.window.print();
20 | },
21 | notNeedUndo : 1
22 | };
23 |
24 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/plugins/scrawl.js:
--------------------------------------------------------------------------------
1 | ///import core
2 | ///commands 涂鸦
3 | ///commandsName Scrawl
4 | ///commandsTitle 涂鸦
5 | ///commandsDialog dialogs\scrawl
6 | UE.commands['scrawl'] = {
7 | queryCommandState : function(){
8 | return ( browser.ie && browser.version <= 8 ) ? -1 :0;
9 | }
10 | };
11 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/plugins/selectall.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 全选
3 | * @file
4 | * @since 1.2.6.1
5 | */
6 |
7 | /**
8 | * 选中所有内容
9 | * @command selectall
10 | * @method execCommand
11 | * @param { String } cmd 命令字符串
12 | * @example
13 | * ```javascript
14 | * editor.execCommand( 'selectall' );
15 | * ```
16 | */
17 | UE.plugins['selectall'] = function(){
18 | var me = this;
19 | me.commands['selectall'] = {
20 | execCommand : function(){
21 | //去掉了原生的selectAll,因为会出现报错和当内容为空时,不能出现闭合状态的光标
22 | var me = this,body = me.body,
23 | range = me.selection.getRange();
24 | range.selectNodeContents(body);
25 | if(domUtils.isEmptyBlock(body)){
26 | //opera不能自动合并到元素的里边,要手动处理一下
27 | if(browser.opera && body.firstChild && body.firstChild.nodeType == 1){
28 | range.setStartAtFirst(body.firstChild);
29 | }
30 | range.collapse(true);
31 | }
32 | range.select(true);
33 | },
34 | notNeedUndo : 1
35 | };
36 |
37 |
38 | //快捷键
39 | me.addshortcutkey({
40 | "selectAll" : "ctrl+65"
41 | });
42 | };
43 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/plugins/wordcount.js:
--------------------------------------------------------------------------------
1 | ///import core
2 | ///commands 字数统计
3 | ///commandsName WordCount,wordCount
4 | ///commandsTitle 字数统计
5 | /*
6 | * Created by JetBrains WebStorm.
7 | * User: taoqili
8 | * Date: 11-9-7
9 | * Time: 下午8:18
10 | * To change this template use File | Settings | File Templates.
11 | */
12 |
13 | UE.plugins['wordcount'] = function(){
14 | var me = this;
15 | me.setOpt('wordCount',true);
16 | me.addListener('contentchange',function(){
17 | me.fireEvent('wordcount');
18 | });
19 | var timer;
20 | me.addListener('ready',function(){
21 | var me = this;
22 | domUtils.on(me.body,"keyup",function(evt){
23 | var code = evt.keyCode||evt.which,
24 | //忽略的按键,ctr,alt,shift,方向键
25 | ignores = {"16":1,"18":1,"20":1,"37":1,"38":1,"39":1,"40":1};
26 | if(code in ignores) return;
27 | clearTimeout(timer);
28 | timer = setTimeout(function(){
29 | me.fireEvent('wordcount');
30 | },200)
31 | })
32 | });
33 | };
34 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/ui/breakline.js:
--------------------------------------------------------------------------------
1 | (function (){
2 | var utils = baidu.editor.utils,
3 | UIBase = baidu.editor.ui.UIBase,
4 | Breakline = baidu.editor.ui.Breakline = function (options){
5 | this.initOptions(options);
6 | this.initSeparator();
7 | };
8 | Breakline.prototype = {
9 | uiName: 'Breakline',
10 | initSeparator: function (){
11 | this.initUIBase();
12 | },
13 | getHtmlTpl: function (){
14 | return '
';
15 | }
16 | };
17 | utils.inherits(Breakline, UIBase);
18 |
19 | })();
20 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/ui/separator.js:
--------------------------------------------------------------------------------
1 | (function (){
2 | var utils = baidu.editor.utils,
3 | UIBase = baidu.editor.ui.UIBase,
4 | Separator = baidu.editor.ui.Separator = function (options){
5 | this.initOptions(options);
6 | this.initSeparator();
7 | };
8 | Separator.prototype = {
9 | uiName: 'separator',
10 | initSeparator: function (){
11 | this.initUIBase();
12 | },
13 | getHtmlTpl: function (){
14 | return '';
15 | }
16 | };
17 | utils.inherits(Separator, UIBase);
18 |
19 | })();
20 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_src/ui/ui.js:
--------------------------------------------------------------------------------
1 | var baidu = baidu || {};
2 | baidu.editor = baidu.editor || {};
3 | UE.ui = baidu.editor.ui = {};
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/core/plugin.js:
--------------------------------------------------------------------------------
1 | module( 'core.plugin' );
2 |
3 | test( 'register', function() {
4 | UE.plugin.register('test',function(){
5 | this.testplugin = true;
6 | });
7 | $('').appendTo(document.body);
8 | var editor = UE.getEditor('ue');
9 | stop();
10 | editor.ready(function () {
11 | ok(this.testplugin);
12 | editor.destroy();
13 | $('#ue').remove()
14 | start();
15 | });
16 | });
17 | test( 'load', function() {
18 | UE.plugin.register('test',function(){
19 | this.testplugin = true;
20 | });
21 | $('').appendTo(document.body);
22 | var editor = UE.getEditor('ue',{
23 | test:false
24 | });
25 | stop();
26 | editor.ready(function () {
27 | // ok(!this.testplugin); todo
28 | start();
29 | });
30 | });
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/coverage/jscoverage-highlight.css:
--------------------------------------------------------------------------------
1 | /*
2 | jscoverage-highlight.css - JSCoverage syntax highlighting style sheet
3 | Copyright (C) 2008, 2009, 2010 siliconforks.com
4 |
5 | This program is free software; you can redistribute it and/or modify
6 | it under the terms of the GNU General Public License as published by
7 | the Free Software Foundation; either version 2 of the License, or
8 | (at your option) any later version.
9 |
10 | This program is distributed in the hope that it will be useful,
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | GNU General Public License for more details.
14 |
15 | You should have received a copy of the GNU General Public License along
16 | with this program; if not, write to the Free Software Foundation, Inc.,
17 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 | */
19 |
20 | /* keyword, type, symbol, cbracket */
21 | #sourceTable .k {
22 | font-weight: bold;
23 | }
24 |
25 | /* string, regexp, number */
26 | #sourceTable .s {
27 | color: #006400;
28 | }
29 |
30 | /* specialchar */
31 | #sourceTable .t {
32 | color: #2e8b57;
33 | }
34 |
35 | /* comment */
36 | #sourceTable .c {
37 | font-style: italic;
38 | }
39 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/coverage/jscoverage-throbber.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/coverage/jscoverage-throbber.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/index.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/plugins/auto.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by JetBrains PhpStorm.
3 | * User: lisisi01
4 | * Date: 12-11-8
5 | * Time: 下午3:37
6 | * To change this template use File | Settings | File Templates.
7 | */
8 | module( 'plugins.autosubmit' );
9 |
10 | //这个插件是针对非ie的,单测用例同样只针对非ie,仍需手动测试检验ie与非ie下效果是否一致
11 | test( '输入超链接后回车', function() {
12 | var form = document.body.appendChild( document.createElement( 'form' ) );
13 | var editor = new baidu.editor.Editor({'initialContent':'欢迎使用ueditor
','autoFloatEnabled':false});
14 | editor.render(form);
15 | // form.body.appendChild(editor);
16 | editor.focus();
17 | var range = new baidu.editor.dom.Range( editor.document );
18 | range.setStart(editor.body.firstChild.firstChild,1).collapse(true).select();
19 | editor.execCommand('autosubmit');
20 | equal(editor.textarea.value,'欢迎使用ueditor
','');
21 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/plugins/autoheight.js:
--------------------------------------------------------------------------------
1 | module('plugins.autoheight');
2 |
3 | test('自动长高',function(){
4 | var sc = document.createElement("script");
5 | sc.id="sc";
6 | sc.type = "text/plain";
7 | document.body.appendChild(sc);
8 | var editor = new UE.ui.Editor({'autoFloatEnabled':true,'topOffset':60,'autoHeightEnabled':true,'scaleEnabled':false});
9 | editor.render('sc');
10 | te.dom[0].parentNode.removeChild(te.dom[0]);
11 | stop();
12 | setTimeout(function(){
13 | var height=editor.body.style.height;
14 | editor.setContent('
nmnmknmm,
');
15 | setTimeout(function(){
16 | ok(height!=editor.body.style.height,'自动长高');
17 | editor.disableAutoHeight();
18 | editor.body.style.height=height;
19 | editor.setContent('
');
20 | stop();
21 | setTimeout(function(){
22 | ok(height==editor.body.style.height,'不长高');
23 |
24 | start();
25 | },200);
26 | },200);
27 | },800);
28 | });
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/plugins/autoupload.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by JetBrains PhpStorm.
3 | * User: Jinqn
4 | * Date: 13-10-29
5 | * Time: 下午5:14
6 | * To change this template use File | Settings | File Templates.
7 | */
8 | module('plugins.autoupload');
9 |
10 | test('拖放图片上传',function(){
11 | equal('','');
12 | });
13 |
14 | test('粘贴QQ截图',function(){
15 | equal('','');
16 | });
17 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/plugins/iframe.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by JetBrains PhpStorm.
3 | * User: dongyancen
4 | * Date: 12-9-17
5 | * Time: 下午2:55
6 | * To change this template use File | Settings | File Templates.
7 | */
8 | module( 'plugins.iframe' );
9 | test( '检查高亮和清除_iframe', function() {
10 | var sc = document.createElement("script");
11 | sc.id="sc";
12 | sc.type = "text/plain";
13 | document.body.appendChild(sc);
14 | te.obj[2].render('sc');
15 |
16 | te.obj[2].ready(function(){
17 | equal( te.obj[2].queryCommandState( 'insertframe' ), 0, 'check insertframe state' );
18 | var iframe = document.createElement('iframe');
19 | $(iframe).attr('src','www.baidu.com');
20 | this._iframe = iframe;
21 | this.setContent('欢迎使用ueditor!
');
22 | ok(te.obj[2]._iframe,'加入_iframe');
23 | setTimeout(function(){
24 | ok(!te.obj[2]._iframe,'检查selectionchanged会触发去掉_iframe');
25 | document.getElementById('sc').parentNode.removeChild(document.getElementById('sc'));
26 | start();
27 | },50);
28 | });
29 | stop();
30 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/plugins/insertparagraph.js:
--------------------------------------------------------------------------------
1 | module( 'plugins.insertparagraph' );
2 |
3 | test( '插入空行', function() {
4 | var editor = te.obj[0];
5 | var range = te.obj[1];
6 | var body = editor.body;
7 | editor.setContent( 'hello' );
8 | range.setStart( body.firstChild, 0 ).collapse( 1 ).select();
9 | editor.execCommand( 'insertparagraph', true );
10 | var br = ua.browser.ie?'':'
'
11 | equal( ua.getChildHTML( body ), ''+br+'
hello
', '插入空行' );
12 | range.setStart( body.firstChild.nextSibling, 0 ).collapse( 1 ).select();
13 | editor.execCommand( 'insertparagraph', false );
14 | equal( ua.getChildHTML( body ), ''+br+'
hello
'+br+'
', '' );
15 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/plugins/music.js:
--------------------------------------------------------------------------------
1 | module( 'plugins.music' );
2 |
3 | test( ' trace 3745 3780 音乐', function () {
4 | var editor = te.obj[0];
5 | var range = te.obj[1];
6 | editor.setContent( 'hello
' );
7 | range.setStart(editor.body.firstChild,0).collapse(true).select();
8 | editor.execCommand( 'music',{url:"http://box.baidu.com/widget/flash/bdspacesong.swf?from=tiebasongwidget&url=…artist=%E5%BC%A0%E6%B6%A6%E8%B4%9E&extra=Vol.%202&autoPlay=false&loop=true"});
9 | stop();
10 | setTimeout(function(){
11 | ua.manualDeleteFillData(editor.body);
12 | ua.checkSameHtml(editor.getContent(),'','');
13 | equal(editor.body.firstChild.firstChild.tagName.toLowerCase(),'img');
14 | equal(editor.body.firstChild.firstChild.className,'edui-faked-music');
15 | start();
16 | },50);
17 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/plugins/print.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by JetBrains PhpStorm.
3 | * User: dongyancen
4 | * Date: 12-9-28
5 | * Time: 下午1:34
6 | * To change this template use File | Settings | File Templates.
7 | */
8 | module('plugins.print');
9 |
10 | test('print',function(){
11 | // var editor = te.obj[0];
12 | // var html = 'for print
';
13 | // editor.setContent(html);
14 | // editor.execCommand('print');
15 | // equal(editor.body.innerHTML,html,'打印不会对页面代码产生影响');
16 | equal('','');
17 | });
18 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/plugins/scrawl.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created with JetBrains PhpStorm.
3 | * User: luqiong
4 | * Date: 12-11-13
5 | * Time: 下午2:13
6 | * To change this template use File | Settings | File Templates.
7 | */
8 |
9 | module( 'plugins.scrawl' );
10 | test( '检查高亮', function() {
11 | var editor = te.obj[0];
12 | editor.focus();
13 | equal( editor.queryCommandState( 'scrawl' ), ( browser.ie && browser.version <= 8 ) ? -1:0, 'check scrawl state' );
14 | } );
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/plugins/serverparam.js:
--------------------------------------------------------------------------------
1 | module( 'plugins.serverparam' );
2 |
3 | test( '检查是否能正常设置参数', function () {
4 | var editor = te.obj[0];
5 |
6 | editor.execCommand('serverparam', {"a": 1, "b": 2});
7 | same( editor.queryCommandValue('serverparam'), {"a": 1, "b": 2}, '传入对象设置参数');
8 |
9 | editor.execCommand('serverparam', "c", 3);
10 | same( editor.queryCommandValue('serverparam'), {"a": 1, "b": 2, "c": 3}, '传入键和值设置参数');
11 |
12 | editor.execCommand('serverparam', "c");
13 | same( editor.queryCommandValue('serverparam'), {"a": 1, "b": 2}, '传入键删除参数');
14 |
15 | editor.execCommand('serverparam');
16 | same( editor.queryCommandValue('serverparam'), {}, '不传参数,清空参数表');
17 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/plugins/template.js:
--------------------------------------------------------------------------------
1 | module( 'plugins.template' );
2 |
3 | test( '模板', function () {
4 | var editor = te.obj[0];
5 | var range = te.obj[1];
6 | editor.setContent( 'hello
' );
7 | range.setStart(editor.body.firstChild,0).collapse(true).select();
8 | editor.execCommand('template',{html:'欢迎使用UEditor!
'});
9 | ua.manualDeleteFillData(editor.body);
10 | equal(ua.getHTML(editor.body.firstChild),'欢迎使用ueditor!
');
11 | if(!(ua.browser.gecko||ua.browser.ie>8)){
12 | if(ua.browser.webkit){
13 | ua.click(editor.body.firstChild);
14 | equal(editor.selection.getRange().startContainer.firstChild.length,'12','检查选区');
15 | ua.keydown(editor.body.firstChild);
16 | equal(editor.selection.getRange().startContainer.firstChild.length,'12','检查选区');
17 | }else{
18 | ua.click(editor.body.firstChild);
19 | equal(editor.selection.getRange().startContainer.length,'12','检查选区');
20 | ua.keydown(editor.body.firstChild);
21 | equal(editor.selection.getRange().startContainer.length,'12','检查选区');
22 | }
23 | }
24 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/8eaccbef76094b364e2cfddaa1cc7cd98d109d49.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/8eaccbef76094b364e2cfddaa1cc7cd98d109d49.jpg
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/Manual regression cases.xmind:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/Manual regression cases.xmind
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/VersionUpdate/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/VersionUpdate/readme.txt
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/VersionUpdate/test list for 1.3.0.xmind:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/VersionUpdate/test list for 1.3.0.xmind
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/VersionUpdate/test list for 1.3.6.xmind:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/VersionUpdate/test list for 1.3.6.xmind
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/VersionUpdate/test list for 1.4.0.xmind:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/VersionUpdate/test list for 1.4.0.xmind
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/VersionUpdate/test list for 1.4.3.xmind:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/VersionUpdate/test list for 1.4.3.xmind
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/offical site.xmind:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/testDesign/offical site.xmind
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/batchrun.sh:
--------------------------------------------------------------------------------
1 | /home/work/.bash_profile
2 | cd /home/work/repos/Tangram-base
3 | /home/work/soft/git-1.7.3.5/bin-wrappers/git pull
4 | sh release/output.sh
5 | rm -rf test/tools/br/report
6 | wget -q -O /tmp/tmp.php http://10.32.34.115:8000/Tangram-base/test/tools/br/runall.php?clearreport=true&cov=true
7 | sleep 3m
8 | rm -rf test/tools/br/report
9 | wget -q -O /tmp/tmp.php http://10.32.34.115:8000/Tangram-base/test/tools/br/runall.php?release=true&clearreport=true
10 | cd -
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/coverage/jscoverage-throbber.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/coverage/jscoverage-throbber.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/css/bg_button_a.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/css/bg_button_a.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/css/bg_button_span.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/css/bg_button_span.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/geneHistory.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/js/UserAction manual.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/js/UserAction manual.rar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/js/ext_qunit.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 重载QUnit部分接口实现批量执行控制功能
3 | */
4 | (function() {
5 | if (!QUnit)
6 | return;
7 | var ms = QUnit.moduleStart, d = QUnit.done;
8 |
9 | function _d(args /* failures, total */) {
10 | //默认展开失败用例
11 | $('li.fail ol').toggle();
12 | if (parent && parent.brtest) {
13 | parent.$(parent.brtest).trigger('done', [ new Date().getTime(), {
14 | failed : args[0],
15 | passed : args[1],
16 | detail:args[2]
17 | }, window._$jscoverage || null ]);
18 | }
19 | }
20 | QUnit.moduleStart = function() {
21 | stop();
22 | /* 为批量执行等待import.php正确返回 */
23 | var h = setInterval(function() {
24 | if (window && window['baidu']) {
25 | clearInterval(h);
26 | ms.apply(this, arguments);
27 | start();
28 | }
29 | }, 20);
30 | };
31 | QUnit.done = function() {
32 | _d(arguments);
33 | d.apply(this, arguments);
34 | };
35 | })();
36 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/lib/StafResult.php:
--------------------------------------------------------------------------------
1 | rc = $rc;
9 | $this->info = $info;
10 | }
11 |
12 | public function __toString()
13 | {
14 | return "return code : ".$rc.", return info : ".$info."\n";
15 | }
16 |
17 | public static function parse($result){
18 | return new StafResult(0, $result);
19 | }
20 | }?>
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/read.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/runC.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/runC.php
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/br/txt/test1_2.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 欢迎使用ueditor!
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | 欢迎使用ueditor!
15 |
16 |
17 |
18 |
19 | 欢迎使用ueditor!
20 |
21 |
22 |
23 |
24 | 欢迎使用ueditor!
25 |
26 |
27 |
28 |
29 | 欢迎使用ueditor!
30 |
31 |
32 |
33 |
34 | 欢迎使用ueditor!
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/coverage/cov.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | jscoverage.exe --encoding=UTF-8 ../../../_src ../../coverage
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/coverage/jscoverage.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/coverage/jscoverage.exe
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/data/frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/data/frame.php:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 | ";
10 | else
11 | print "";
12 | ?>
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/data/test.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/data/test.JPG
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/data/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/data/testReady.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/ant_tangram_ext.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/ant_tangram_ext.jar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/js.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/js.jar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/conf/custcheck.conf:
--------------------------------------------------------------------------------
1 | [command]
2 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/conf/ignore.list:
--------------------------------------------------------------------------------
1 | #there 3 level:ignore warning error
2 | [level]
3 | Unsafe character=ignore
4 | Mixed spaces and tabs=warning
5 | Too many var statements=ignore
6 | Unclosed string=ignore
7 | Missing semicolon=error
8 | Unexpected dangling=ignore
9 | to compare with=ignore
10 | is not defined=ignore
11 | Unexpected dangling=ignore
12 | A constructor name should start with an uppercase letter=warning
13 | Expected an assignment or function call and instead saw an expression=warning
14 | Mixed spaces and tabs=ignore
15 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/conf/omitfiles.conf:
--------------------------------------------------------------------------------
1 | #[config format]:REGULAR:true|false,true means set filtering enabeld and false means not
2 | #notice:REGULAR will be set in the command "find /top/dir -name REGULAR"
3 | [omitfils]
4 | *data*:true
5 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/core/customcheck/cust.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo $1'***222***444***555***666'
4 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/core/jshint/js.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/core/jshint/js.jar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/core/tpl/htmlpart.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 | ID |
8 | LEVEL |
9 | DESCRIPTION |
10 | LINE NO |
11 | CONTENT |
12 |
13 | [---to be replaced 2---]
14 |
15 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/version:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jshunter_1.2.0.1/jshunter_dev/jshunter/version
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jslint4java-2.0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jslint4java-2.0.2.jar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jslint4java-ant-1.4.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/jslint4java-ant-1.4.2.jar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/npPlugintest.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/tools/lib/npPlugintest.dll
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/ui/css/DEFAULT.css:
--------------------------------------------------------------------------------
1 | /* common layer */
2 | .cssloaded {
3 | width: 20px;
4 | }
5 | /* for IE6 fixed */
6 | body {
7 | background: url('about:blank') fixed;
8 | }
9 |
10 | .edui-editor {
11 | width: 843px;
12 | }
13 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/ui/editorui.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by JetBrains PhpStorm.
3 | * User: dongyancen
4 | * Date: 12-4-12
5 | * Time: 下午4:45
6 | * To change this template use File | Settings | File Templates.
7 | */
8 | module( 'ui.editorui' );
9 | test( '', function() {
10 | equal('','','');
11 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/ui/mask.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by JetBrains PhpStorm.
3 | * User: dongyancen
4 | * Date: 12-4-12
5 | * Time: 下午4:45
6 | * To change this template use File | Settings | File Templates.
7 | */
8 | module( 'ui.mask' );
9 | test( '', function() {
10 | equal('','','');
11 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/ui/separator.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by JetBrains PhpStorm.
3 | * User: dongyancen
4 | * Date: 12-4-12
5 | * Time: 下午4:46
6 | * To change this template use File | Settings | File Templates.
7 | */
8 | module( 'ui.separator' );
9 | test( '', function() {
10 | equal('','','');
11 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/ui/stateful.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by JetBrains PhpStorm.
3 | * User: dongyancen
4 | * Date: 12-4-12
5 | * Time: 下午4:46
6 | * To change this template use File | Settings | File Templates.
7 | */
8 | module( 'ui.stateful' );
9 | test( '', function() {
10 | equal('','','');
11 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/ui/uibase.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by JetBrains PhpStorm.
3 | * User: dongyancen
4 | * Date: 12-4-12
5 | * Time: 下午4:46
6 | * To change this template use File | Settings | File Templates.
7 | */
8 | module( 'ui.uibase' );
9 | test( '', function() {
10 | equal('','','');
11 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/ui/uiutils.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by JetBrains PhpStorm.
3 | * User: dongyancen
4 | * Date: 12-4-12
5 | * Time: 下午4:46
6 | * To change this template use File | Settings | File Templates.
7 | */
8 | module( 'ui.uiutils' );
9 | test( '', function() {
10 | equal('','','');
11 | } );
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/_test/关键字.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/_test/关键字.txt
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/asp/action_config.asp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | <%
5 | Set json = new ASPJson
6 | Set json.data = config
7 |
8 | json.PrintJson()
9 | %>
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/asp/action_crawler.asp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | <%
5 |
6 | Set up = new Uploader
7 | up.MaxSize = config.Item("catcherMaxSize")
8 | up.AllowType = config.Item("catcherAllowFiles")
9 | up.PathFormat = config.Item("catcherPathFormat")
10 |
11 | urls = Split(Request.Item("source[]"), ", ")
12 | Set list = new ASPJson.Collection
13 |
14 | For i = 0 To UBound(urls)
15 | up.UploadRemote( urls(i) )
16 | Dim instance
17 | Set instance = new ASPJson.Collection
18 | instance.Add "state", up.State
19 | instance.Add "url", up.FilePath
20 | instance.Add "source", urls(i)
21 | list.Add i, instance
22 | Next
23 |
24 | Set json = new ASPJson
25 |
26 | With json.data
27 | .Add "state", "SUCCESS"
28 | .Add "list", list
29 | End With
30 |
31 | json.PrintJson()
32 | %>
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/asp/action_upload.asp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | <%
5 | uploadTemplateName = Session.Value("ueditor_asp_uploadTemplateName")
6 |
7 | Set up = new Uploader
8 | up.MaxSize = config.Item( uploadTemplateName & "MaxSize" )
9 | up.FileField = config.Item( uploadTemplateName & "FieldName" )
10 | up.PathFormat = config.Item( uploadTemplateName & "PathFormat" )
11 |
12 | If Not IsEmpty( Session.Value("base64Upload") ) Then
13 | up.UploadBase64( Session.Value("base64Upload") )
14 | Else
15 | up.AllowType = config.Item( uploadTemplateName & "AllowFiles" )
16 | up.UploadForm()
17 | End If
18 |
19 | Set json = new ASPJson
20 |
21 | With json.data
22 | .Add "url", up.FilePath
23 | .Add "original", up.OriginalFileName
24 | .Add "state", up.State
25 | .Add "title", up.OriginalFileName
26 | End With
27 |
28 | json.PrintJson()
29 | %>
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/asp/config_loader.asp:
--------------------------------------------------------------------------------
1 | <%
2 | Set json = new ASPJson
3 | Set fso = Server.CreateObject("Scripting.FileSystemObject")
4 |
5 | Set stream = Server.CreateObject("ADODB.Stream")
6 |
7 | stream.Open()
8 | stream.Charset = "UTF-8"
9 | stream.LoadFromFile Server.MapPath( "config.json" )
10 |
11 | content = stream.ReadText()
12 |
13 | Set commentPattern = new RegExp
14 | commentPattern.Multiline = true
15 | commentPattern.Pattern = "/\*[\s\S]+?\*/"
16 | commentPattern.Global = true
17 | content = commentPattern.Replace(content, "")
18 | json.loadJSON( content )
19 |
20 | Set config = json.data
21 | %>
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_chm.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_chm.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_default.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_doc.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_doc.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_exe.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_exe.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_jpg.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_jpg.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_mp3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_mp3.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_mv.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_mv.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_pdf.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_pdf.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_ppt.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_ppt.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_psd.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_psd.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_rar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_rar.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_txt.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_txt.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_xls.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/fileTypeImages/icon_xls.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/alignicon.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/alignicon.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/alignicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/alignicon.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/bg.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/file-icons.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/file-icons.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/file-icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/file-icons.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/icons.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/icons.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/icons.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/image.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/progress.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/progress.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/success.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/success.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/attachment/images/success.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/background/images/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/background/images/bg.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/background/images/success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/background/images/success.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts0.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts1.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts2.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts3.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts4.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/charts/images/charts5.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/0.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/bface.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/bface.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/cface.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/cface.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/fface.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/fface.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/jxface2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/jxface2.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/neweditor-tab-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/neweditor-tab-bg.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/tface.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/tface.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/wface.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/wface.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/yface.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/emotion/images/yface.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/help/help.css:
--------------------------------------------------------------------------------
1 | .wrapper{width: 370px;margin: 10px auto;zoom: 1;}
2 | .tabbody{height: 360px;}
3 | .tabbody .panel{width:100%;height: 360px;position: absolute;background: #fff;}
4 | .tabbody .panel h1{font-size:26px;margin: 5px 0 0 5px;}
5 | .tabbody .panel p{font-size:12px;margin: 5px 0 0 5px;}
6 | .tabbody table{width:90%;line-height: 20px;margin: 5px 0 0 5px;;}
7 | .tabbody table thead{font-weight: bold;line-height: 25px;}
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/alignicon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/alignicon.jpg
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/bg.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/icons.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/icons.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/icons.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/image.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/progress.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/progress.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/success.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/success.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/image/images/success.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/music/music.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 插入音乐
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
19 |
20 |
21 |
22 |
31 |
32 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/addimg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/addimg.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/brush.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/brush.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/delimg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/delimg.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/delimgH.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/delimgH.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/empty.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/emptyH.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/emptyH.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/eraser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/eraser.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/redo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/redo.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/redoH.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/redoH.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/scale.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/scale.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/scaleH.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/scaleH.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/size.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/size.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/undo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/undo.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/undoH.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/scrawl/images/undoH.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/spechars/spechars.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/table/dragicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/table/dragicon.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/table/edittip.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 表格删除提示
5 |
6 |
17 |
18 |
19 |
27 |
32 |
33 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/bg.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/bg.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/pre0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/pre0.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/pre1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/pre1.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/pre2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/pre2.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/pre3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/pre3.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/pre4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/images/pre4.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/template.css:
--------------------------------------------------------------------------------
1 | .wrap{ padding: 5px;font-size: 14px;}
2 | .left{width:425px;float: left;}
3 | .right{width:160px;border: 1px solid #ccc;float: right;padding: 5px;margin-right: 5px;}
4 | .right .pre{height: 332px;overflow-y: auto;}
5 | .right .preitem{border: white 1px solid;margin: 5px 0;padding: 2px 0;}
6 | .right .preitem:hover{background-color: lemonChiffon;cursor: pointer;border: #ccc 1px solid;}
7 | .right .preitem img{display: block;margin: 0 auto;width:100px;}
8 | .clear{clear: both;}
9 | .top{height:26px;line-height: 26px;padding: 5px;}
10 | .bottom{height:320px;width:100%;margin: 0 auto;}
11 | .transparent{ background: url("images/bg.gif") repeat;}
12 | .bottom table tr td{border:1px dashed #ccc;}
13 | #colorPicker{width: 17px;height: 17px;border: 1px solid #CCC;display: inline-block;border-radius: 3px;box-shadow: 2px 2px 5px #D3D6DA;}
14 | .border_style1{padding:2px;border: 1px solid #ccc;border-radius: 5px;box-shadow:2px 2px 5px #d3d6da;}
15 | p{margin: 5px 0}
16 | table{clear:both;margin-bottom:10px;border-collapse:collapse;word-break:break-all;}
17 | li{clear:both}
18 | ol{padding-left:40px; }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/template/template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/bg.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/center_focus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/center_focus.jpg
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/file-icons.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/file-icons.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/file-icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/file-icons.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/icons.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/icons.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/icons.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/image.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/left_focus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/left_focus.jpg
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/none_focus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/none_focus.jpg
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/progress.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/progress.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/right_focus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/right_focus.jpg
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/success.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/success.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/video/images/success.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/wordimage/fClipboard_ueditor.swf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/wordimage/fClipboard_ueditor.swf
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/wordimage/imageUploader.swf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/dialogs/wordimage/imageUploader.swf
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/controller.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | import="com.baidu.ueditor.ActionEnter"
3 | pageEncoding="UTF-8"%>
4 | <%@ page trimDirectiveWhitespaces="true" %>
5 | <%
6 |
7 | request.setCharacterEncoding( "utf-8" );
8 | response.setHeader("Content-Type" , "text/html");
9 |
10 | String rootPath = application.getRealPath( "/" );
11 |
12 | out.write( new ActionEnter( request, rootPath ).exec() );
13 |
14 | %>
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/lib/commons-codec-1.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/lib/commons-codec-1.9.jar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/lib/commons-fileupload-1.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/lib/commons-fileupload-1.3.1.jar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/lib/commons-io-2.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/lib/commons-io-2.4.jar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/lib/json.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/lib/json.jar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/lib/ueditor-1.1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/lib/ueditor-1.1.2.jar
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/src/com/baidu/ueditor/Encoder.java:
--------------------------------------------------------------------------------
1 | package com.baidu.ueditor;
2 |
3 | public class Encoder {
4 |
5 | public static String toUnicode ( String input ) {
6 |
7 | StringBuilder builder = new StringBuilder();
8 | char[] chars = input.toCharArray();
9 |
10 | for ( char ch : chars ) {
11 |
12 | if ( ch < 256 ) {
13 | builder.append( ch );
14 | } else {
15 | builder.append( "\\u" + Integer.toHexString( ch& 0xffff ) );
16 | }
17 |
18 | }
19 |
20 | return builder.toString();
21 |
22 | }
23 |
24 | }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/src/com/baidu/ueditor/define/ActionState.java:
--------------------------------------------------------------------------------
1 | package com.baidu.ueditor.define;
2 |
3 | public enum ActionState {
4 | UNKNOW_ERROR
5 | }
6 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/src/com/baidu/ueditor/define/FileType.java:
--------------------------------------------------------------------------------
1 | package com.baidu.ueditor.define;
2 |
3 | import java.util.HashMap;
4 | import java.util.Map;
5 |
6 | public class FileType {
7 |
8 | public static final String JPG = "JPG";
9 |
10 | private static final Map types = new HashMap(){{
11 |
12 | put( FileType.JPG, ".jpg" );
13 |
14 | }};
15 |
16 | public static String getSuffix ( String key ) {
17 | return FileType.types.get( key );
18 | }
19 |
20 | /**
21 | * 根据给定的文件名,获取其后缀信息
22 | * @param filename
23 | * @return
24 | */
25 | public static String getSuffixByFilename ( String filename ) {
26 |
27 | return filename.substring( filename.lastIndexOf( "." ) ).toLowerCase();
28 |
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/src/com/baidu/ueditor/define/MIMEType.java:
--------------------------------------------------------------------------------
1 | package com.baidu.ueditor.define;
2 |
3 | import java.util.HashMap;
4 | import java.util.Map;
5 |
6 | public class MIMEType {
7 |
8 | public static final Map types = new HashMap(){{
9 | put( "image/gif", ".gif" );
10 | put( "image/jpeg", ".jpg" );
11 | put( "image/jpg", ".jpg" );
12 | put( "image/png", ".png" );
13 | put( "image/bmp", ".bmp" );
14 | }};
15 |
16 | public static String getSuffix ( String mime ) {
17 | return MIMEType.types.get( mime );
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/src/com/baidu/ueditor/define/State.java:
--------------------------------------------------------------------------------
1 | package com.baidu.ueditor.define;
2 |
3 | /**
4 | * 处理状态接口
5 | * @author hancong03@baidu.com
6 | *
7 | */
8 | public interface State {
9 |
10 | public boolean isSuccess ();
11 |
12 | public void putInfo( String name, String val );
13 |
14 | public void putInfo ( String name, long val );
15 |
16 | public String toJSONString ();
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/jsp/src/com/baidu/ueditor/upload/Uploader.java:
--------------------------------------------------------------------------------
1 | package com.baidu.ueditor.upload;
2 |
3 | import com.baidu.ueditor.define.State;
4 | import java.util.Map;
5 | import javax.servlet.http.HttpServletRequest;
6 |
7 | public class Uploader {
8 | private HttpServletRequest request = null;
9 | private Map conf = null;
10 |
11 | public Uploader(HttpServletRequest request, Map conf) {
12 | this.request = request;
13 | this.conf = conf;
14 | }
15 |
16 | public final State doExec() {
17 | String filedName = (String) this.conf.get("fieldName");
18 | State state = null;
19 |
20 | if ("true".equals(this.conf.get("isBase64"))) {
21 | state = Base64Uploader.save(this.request.getParameter(filedName),
22 | this.conf);
23 | } else {
24 | state = BinaryUploader.save(this.request, this.conf);
25 | }
26 |
27 | return state;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/addimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/addimage.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/alldeletebtnhoverskin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/alldeletebtnhoverskin.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/alldeletebtnupskin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/alldeletebtnupskin.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/background.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/button.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/copy.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/deletedisable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/deletedisable.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/deleteenable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/deleteenable.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/listbackground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/listbackground.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/localimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/localimage.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/music.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/music.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/rotateleftdisable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/rotateleftdisable.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/rotateleftenable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/rotateleftenable.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/rotaterightdisable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/rotaterightdisable.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/rotaterightenable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/rotaterightenable.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/upload.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/en/images/upload.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/zh-cn/images/copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/zh-cn/images/copy.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/zh-cn/images/localimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/zh-cn/images/localimage.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/zh-cn/images/music.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/zh-cn/images/music.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/lang/zh-cn/images/upload.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/lang/zh-cn/images/upload.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/net/App_Code/ConfigHandler.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | ///
7 | /// Config 的摘要说明
8 | ///
9 | public class ConfigHandler : Handler
10 | {
11 | public ConfigHandler(HttpContext context) : base(context) { }
12 |
13 | public override void Process()
14 | {
15 | WriteJson(Config.Items);
16 | }
17 | }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/net/App_Code/NotSupportedHandler.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | ///
7 | /// NotSupportedHandler 的摘要说明
8 | ///
9 | public class NotSupportedHandler : Handler
10 | {
11 | public NotSupportedHandler(HttpContext context)
12 | : base(context)
13 | {
14 | }
15 |
16 | public override void Process()
17 | {
18 | WriteJson(new
19 | {
20 | state = "action 参数为空或者 action 不被支持。"
21 | });
22 | }
23 | }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/net/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ueditor",
3 | "title": "ueditor",
4 | "description": "UEditor富文本web编辑器",
5 | "version": "1.4.3",
6 | "homepage": "http://ueditor.baidu.com/",
7 | "author": {
8 | "name": "f-cube @ FEX",
9 | "url": "http://fex.baidu.com"
10 | },
11 | "repository": {
12 | "type": "git",
13 | "url": "https://github.com/fex-team/ueditor.git"
14 | },
15 | "keywords": [
16 | "ueditor",
17 | "web editor",
18 | "javascript"
19 | ],
20 | "bugs": {
21 | "url": "https://github.com/fex-team/ueditor/issues"
22 | },
23 | "dependencies": {
24 | "grunt": "~0.4.1",
25 | "grunt-contrib-concat": "~0.3.0",
26 | "grunt-contrib-cssmin": "~0.6.0",
27 | "grunt-contrib-uglify": "~1.0.1",
28 | "grunt-contrib-copy": "~0.4.0",
29 | "grunt-transcoding": "~0.1.1",
30 | "grunt-text-replace": "~0.3.9",
31 | "grunt-contrib-clean": "~0.5.0"
32 | },
33 | "devDependencies": {
34 | "grunt": "~0.4.1"
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/php/action_crawler.php:
--------------------------------------------------------------------------------
1 | $CONFIG['catcherPathFormat'],
14 | "maxSize" => $CONFIG['catcherMaxSize'],
15 | "allowFiles" => $CONFIG['catcherAllowFiles'],
16 | "oriName" => "remote.png"
17 | );
18 | $fieldName = $CONFIG['catcherFieldName'];
19 |
20 | /* 抓取远程图片 */
21 | $list = array();
22 | if (isset($_POST[$fieldName])) {
23 | $source = $_POST[$fieldName];
24 | } else {
25 | $source = $_GET[$fieldName];
26 | }
27 | foreach ($source as $imgUrl) {
28 | $item = new Uploader($imgUrl, $config, "remote");
29 | $info = $item->getFileInfo();
30 | array_push($list, array(
31 | "state" => $info["state"],
32 | "url" => $info["url"],
33 | "size" => $info["size"],
34 | "title" => htmlspecialchars($info["title"]),
35 | "original" => htmlspecialchars($info["original"]),
36 | "source" => htmlspecialchars($imgUrl)
37 | ));
38 | }
39 |
40 | /* 返回抓取数据 */
41 | return json_encode(array(
42 | 'state'=> count($list) ? 'SUCCESS':'ERROR',
43 | 'list'=> $list
44 | ));
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/_css/autotypesetpicker.css:
--------------------------------------------------------------------------------
1 | /*自动排版弹出菜单*/
2 | .edui-default .edui-autotypesetpicker .edui-autotypesetpicker-body {
3 | font-size: 12px;
4 | margin-bottom: 3px;
5 | clear: both;
6 | }
7 |
8 | .edui-default .edui-autotypesetpicker-body table {
9 | border-collapse: separate;
10 | border-spacing: 2px;
11 | }
12 |
13 | .edui-default .edui-autotypesetpicker-body td {
14 | font-size: 12px;
15 | word-wrap:break-word;
16 | }
17 |
18 | .edui-default .edui-autotypesetpicker-body td input {
19 | margin: 3px 3px 3px 4px;
20 | *margin: 1px 0 0 0;
21 | }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/_css/colorbutton.css:
--------------------------------------------------------------------------------
1 | /*颜色按钮 */
2 | .edui-default .edui-toolbar .edui-colorbutton .edui-colorlump {
3 | position: absolute;
4 | overflow: hidden;
5 | bottom: 1px;
6 | left: 1px;
7 | width: 18px;
8 | height: 4px;
9 | }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/_css/contextmenu.css:
--------------------------------------------------------------------------------
1 | /*contextmenu*/
2 | .edui-default .edui-hassubmenu .edui-arrow {
3 | height: 20px;
4 | width: 20px;
5 | float: right;
6 | background: url("../images/icons-all.gif") no-repeat 10px -233px;
7 | }
8 |
9 | .edui-default .edui-menu-body .edui-menuitem {
10 | padding: 1px;
11 | }
12 |
13 | .edui-default .edui-menuseparator {
14 | margin: 2px 0;
15 | height: 1px;
16 | overflow: hidden;
17 | }
18 |
19 | .edui-default .edui-menuseparator-inner {
20 | border-bottom: 1px solid #e2e3e3;
21 | margin-left: 29px;
22 | margin-right: 1px;
23 | }
24 |
25 | .edui-default .edui-menu-body .edui-state-hover {
26 | padding: 0 !important;
27 | background-color: #fff5d4;
28 | border: 1px solid #dcac6c;
29 | }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/_css/menu.css:
--------------------------------------------------------------------------------
1 | /* 可选中按钮弹出菜单*/
2 | .edui-default .edui-menu {
3 | z-index: 3000;
4 | }
5 |
6 | .edui-default .edui-menu .edui-popup-content {
7 | padding: 3px;
8 | }
9 |
10 | .edui-default .edui-menu-body {
11 | _width: 150px;
12 | min-width: 170px;
13 | background: url("../images/sparator_v.png") repeat-y 25px;
14 | }
15 |
16 | .edui-default .edui-menuitem-body {
17 | }
18 |
19 | .edui-default .edui-menuitem {
20 | height: 20px;
21 | cursor: default;
22 | vertical-align: top;
23 | }
24 |
25 | .edui-default .edui-menuitem .edui-icon {
26 | width: 20px !important;
27 | height: 20px !important;
28 | background: url(../images/icons.png) 0 -4000px;
29 | background: url(../images/icons.gif) 0 -4000px\9;
30 | }
31 |
32 | .edui-default .edui-menuitem .edui-label {
33 | font-size: 12px;
34 | line-height: 20px;
35 | height: 20px;
36 | padding-left: 10px;
37 | }
38 |
39 | .edui-default .edui-state-checked .edui-menuitem-body {
40 | background: url("../images/icons-all.gif") no-repeat 6px -205px;
41 | }
42 |
43 | .edui-default .edui-state-disabled .edui-menuitem-label {
44 | color: gray;
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/_css/multiMenu.css:
--------------------------------------------------------------------------------
1 | /*表情按钮及弹出菜单*/
2 | /*去除了表情的下拉箭头*/
3 | .edui-default .edui-for-emotion .edui-icon {
4 | background-position: -60px -20px;
5 | }
6 | .edui-default .edui-for-emotion .edui-popup-content iframe
7 | {
8 | width: 514px;
9 | height: 380px;
10 | overflow: hidden;
11 | }
12 | .edui-default .edui-for-emotion .edui-popup-content
13 | {
14 | position: relative;
15 | z-index: 555
16 | }
17 |
18 | .edui-default .edui-for-emotion .edui-splitborder {
19 | display: none
20 | }
21 |
22 | .edui-default .edui-for-emotion .edui-splitbutton-body .edui-arrow
23 | {
24 | width: 0
25 | }
26 | .edui-default .edui-toolbar .edui-for-emotion .edui-state-active .edui-splitborder
27 | {
28 | border-left: 1px solid transparent;
29 | }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/_css/paragraphpicker.css:
--------------------------------------------------------------------------------
1 | /*段落弹出菜单*/
2 | .edui-default .edui-for-paragraph .edui-listitem-label {
3 | font-family: Tahoma, Verdana, Arial, Helvetica;
4 | }
5 |
6 | .edui-default .edui-for-paragraph .edui-listitem-label .edui-for-p {
7 | font-size: 22px;
8 | line-height: 27px;
9 | }
10 |
11 | .edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h1 {
12 | font-weight: bolder;
13 | font-size: 32px;
14 | line-height: 36px;
15 | }
16 |
17 | .edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h2 {
18 | font-weight: bolder;
19 | font-size: 27px;
20 | line-height: 29px;
21 | }
22 |
23 | .edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h3 {
24 | font-weight: bolder;
25 | font-size: 19px;
26 | line-height: 23px;
27 | }
28 |
29 | .edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h4 {
30 | font-weight: bolder;
31 | font-size: 16px;
32 | line-height: 19px
33 | }
34 |
35 | .edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h5 {
36 | font-weight: bolder;
37 | font-size: 13px;
38 | line-height: 16px;
39 | }
40 |
41 | .edui-default .edui-for-paragraph .edui-listitem-label .edui-for-h6 {
42 | font-weight: bolder;
43 | font-size: 12px;
44 | line-height: 14px;
45 | }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/_css/separtor.css:
--------------------------------------------------------------------------------
1 | /*分隔线*/
2 | .edui-default .edui-toolbar .edui-separator {
3 | width: 2px;
4 | height: 20px;
5 | margin: 2px 4px 2px 3px;
6 | background: url(../images/icons.png) -181px 0;
7 | background: url(../images/icons.gif) -181px 0 \9;
8 | }
9 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/_css/shortcutmenu.css:
--------------------------------------------------------------------------------
1 | /*弹出菜单*/
2 | .edui-default .edui-shortcutmenu {
3 | padding: 2px;
4 | width: 190px;
5 | height: 50px;
6 | background-color: #fff;
7 | border: 1px solid #ccc;
8 | border-radius: 5px;
9 | }
10 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/_css/tablepicker.css:
--------------------------------------------------------------------------------
1 | /* 表格弹出菜单 */
2 | .edui-default .edui-for-inserttable .edui-splitborder {
3 | display: none
4 | }
5 | .edui-default .edui-for-inserttable .edui-splitbutton-body .edui-arrow {
6 | width: 0
7 | }
8 | .edui-default .edui-toolbar .edui-for-inserttable .edui-state-active .edui-splitborder{
9 | border-left: 1px solid transparent;
10 | }
11 | .edui-default .edui-tablepicker .edui-infoarea {
12 | height: 14px;
13 | line-height: 14px;
14 | font-size: 12px;
15 | width: 220px;
16 | margin-bottom: 3px;
17 | clear: both;
18 | }
19 |
20 | .edui-default .edui-tablepicker .edui-infoarea .edui-label {
21 | float: left;
22 | }
23 |
24 | .edui-default .edui-dialog-buttons .edui-label {
25 | line-height: 24px;
26 | }
27 |
28 | .edui-default .edui-tablepicker .edui-infoarea .edui-clickable {
29 | float: right;
30 | }
31 |
32 | .edui-default .edui-tablepicker .edui-pickarea {
33 | background: url("../images/unhighlighted.gif") repeat;
34 | height: 220px;
35 | width: 220px;
36 | }
37 |
38 | .edui-default .edui-tablepicker .edui-pickarea .edui-overlay {
39 | background: url("../images/highlighted.gif") repeat;
40 | }
41 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/_css/toolbar.css:
--------------------------------------------------------------------------------
1 | /* 工具栏 */
2 | .edui-default .edui-toolbar {
3 | cursor: default;
4 | -webkit-user-select: none;
5 | -moz-user-select: none;
6 | padding: 1px;
7 | overflow: hidden; /*全屏下单独一行不占位*/
8 | zoom: 1;
9 | width:auto;
10 | height:auto;
11 | }
12 |
13 | .edui-default .edui-toolbar .edui-button,
14 | .edui-default .edui-toolbar .edui-splitbutton,
15 | .edui-default .edui-toolbar .edui-menubutton,
16 | .edui-default .edui-toolbar .edui-combox {
17 | margin: 1px;
18 | }
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/anchor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/anchor.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/arrow.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/arrow_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/arrow_down.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/arrow_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/arrow_up.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/button-bg.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/button-bg.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/cancelbutton.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/cancelbutton.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/charts.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/charts.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/cursor_h.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/cursor_h.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/cursor_h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/cursor_h.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/cursor_v.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/cursor_v.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/cursor_v.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/cursor_v.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/dialog-title-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/dialog-title-bg.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/filescan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/filescan.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/highlighted.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/highlighted.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/icons-all.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/icons-all.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/icons.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/icons.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/icons.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/loaderror.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/loaderror.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/loading.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/lock.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/lock.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/neweditor-tab-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/neweditor-tab-bg.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/pagebreak.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/pagebreak.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/scale.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/scale.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/sortable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/sortable.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/spacer.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/spacer.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/sparator_v.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/sparator_v.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/table-cell-align.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/table-cell-align.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/tangram-colorpicker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/tangram-colorpicker.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/toolbar_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/toolbar_bg.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/unhighlighted.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/unhighlighted.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/upload.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/upload.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/videologo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/videologo.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/word.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/word.gif
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/wordpaste.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第七天/富文本编辑器/ueditor-1.4.3.3/themes/default/images/wordpaste.png
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/themes/iframe.css:
--------------------------------------------------------------------------------
1 | /*可以在这里添加你自己的css*/
2 |
--------------------------------------------------------------------------------
/第七天/富文本编辑器/ueditor-1.4.3.3/third-party/highcharts/modules/heatmap.js:
--------------------------------------------------------------------------------
1 | (function(b){var k=b.seriesTypes,l=b.each;k.heatmap=b.extendClass(k.map,{colorKey:"z",useMapGeometry:!1,pointArrayMap:["y","z"],translate:function(){var c=this,b=c.options,i=Number.MAX_VALUE,j=Number.MIN_VALUE;c.generatePoints();l(c.data,function(a){var e=a.x,f=a.y,d=a.z,g=(b.colsize||1)/2,h=(b.rowsize||1)/2;a.path=["M",e-g,f-h,"L",e+g,f-h,"L",e+g,f+h,"L",e-g,f+h,"Z"];a.shapeType="path";a.shapeArgs={d:c.translatePath(a.path)};typeof d==="number"&&(d>j?j=d:d
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/第三天/2.mysql/mysql.js:
--------------------------------------------------------------------------------
1 | //引入mysql的第三方模块
2 | var mysql = require('mysql');
3 | //配置连接的参数
4 | var connection = mysql.createConnection({
5 | host: 'localhost',
6 | user: 'yaoyiyao',
7 | password: '123456789',
8 | database: 'lagou'
9 | });
10 | //执行连接
11 | connection.connect();
12 |
13 | connection.query('SELECT * FROM jobs limit 0,5', function(error, results, fields) {
14 | if(error) throw error;
15 | console.log('The solution is: ', results);
16 | });
17 |
18 | connection.end();
--------------------------------------------------------------------------------
/第三天/3.node前后端通信配合mysql/GET请求/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/第三天/3.node前后端通信配合mysql/GET请求/server.js:
--------------------------------------------------------------------------------
1 | var http = require("http");
2 | //解析url的专用模块
3 | var url = require("url");
4 | //
5 | var querystring = require("querystring");
6 | //引入mysql
7 | var mysql = require("mysql");
8 | //配置连接的参数
9 | var connection = mysql.createConnection({
10 | host: 'localhost',
11 | user: 'yaoyiyao',
12 | password: '123456789',
13 | database: 'lagou'
14 | });
15 | //执行连接
16 | connection.connect();
17 | http.createServer((res, req) => {
18 | //url
19 | console.log(res.url)
20 | //url获取?后面的参数
21 | console.log(url.parse(res.url).query)
22 | var query = url.parse(res.url).query;
23 | //
24 | var data = querystring.parse(query);
25 | console.log(data.name)
26 |
27 | req.setHeader("Access-Control-Allow-Origin", "*");
28 | req.writeHead(200, {
29 | 'Content-Type': 'text/html'
30 | });
31 | //获取mysql的数据
32 | connection.query('SELECT * FROM jobs like 0,10', function(error, results, fields) {
33 | if(error) throw error;
34 | console.log('The solution is: ', results);
35 | var obj = {
36 | name:"这是你要的拉勾网数据",
37 | results
38 | }
39 | //响应数据到前端
40 | req.end(JSON.stringify(obj))
41 | });
42 | }).listen(12345)
--------------------------------------------------------------------------------
/第三天/3.node前后端通信配合mysql/node前后端通信的路线图.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/3.node前后端通信配合mysql/node前后端通信的路线图.png
--------------------------------------------------------------------------------
/第三天/3.node前后端通信配合mysql/花椒/server.js:
--------------------------------------------------------------------------------
1 | var http = require("http");
2 | //解析url的专用模块
3 | var url = require("url");
4 | var querystring = require("querystring");
5 |
6 | http.createServer((res, req) => {
7 | var query = url.parse(res.url).query;
8 | var data = querystring.parse(query);
9 | console.log(data.qu)
10 |
11 | http.get("http://www.tuling123.com/openapi/api?key=c75ba576f50ddaa5fd2a87615d144ecf&info="+data.qu,function(res){
12 | var data = "";
13 | res.on("data",function(chunk){
14 | data+=chunk;
15 | })
16 | res.on("end",function(){
17 | console.log(data)
18 | })
19 | })
20 |
21 | req.setHeader("Access-Control-Allow-Origin", "*");
22 | req.writeHead(200, {
23 | 'Content-Type': 'text/html'
24 | });
25 |
26 | }).listen(12345)
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/css/app.css:
--------------------------------------------------------------------------------
1 | /* Write your styles */
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/app-icon72x72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/app-icon72x72@2x.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/admin-chrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/admin-chrome.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/admin-firefox.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/admin-firefox.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/admin-ie.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/admin-ie.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/admin-opera.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/admin-opera.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/admin-safari.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/admin-safari.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/adminPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/adminPage.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/blogPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/blogPage.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/landing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/landing.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/landingPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/landingPage.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/loginPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/loginPage.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/examples/sidebarPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/examples/sidebarPage.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/favicon.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/i/startup-640x1096.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第三天/4.数据库增删查改/CMS/assets/i/startup-640x1096.png
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/CMS/assets/js/app.js:
--------------------------------------------------------------------------------
1 | (function($) {
2 | 'use strict';
3 |
4 | $(function() {
5 | var $fullText = $('.admin-fullText');
6 | $('#admin-fullscreen').on('click', function() {
7 | $.AMUI.fullscreen.toggle();
8 | });
9 |
10 | $(document).on($.AMUI.fullscreen.raw.fullscreenchange, function() {
11 | $fullText.text($.AMUI.fullscreen.isFullscreen ? '退出全屏' : '开启全屏');
12 | });
13 | });
14 | })(jQuery);
15 |
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/POST请求/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/POST请求/route/insert.js:
--------------------------------------------------------------------------------
1 | function insert(response,connection,posts) {
2 | console.log(posts)
3 | connection.query(`insert into students (name,description) values ("${posts.name}","${posts.description}")`, function(error, results, fields) {
4 | if(error) throw error;
5 | console.log('The solution is: ', results);
6 | response.end(JSON.stringify({
7 | status: 1,
8 | results
9 | }))
10 | });
11 | }
12 | module.exports = insert;
--------------------------------------------------------------------------------
/第三天/4.数据库增删查改/POST请求/server.js:
--------------------------------------------------------------------------------
1 | var http = require("http");
2 | var querystring = require("querystring");
3 | var url = require("url")
4 |
5 | //引入mysql的第三方模块
6 | var mysql = require('mysql');
7 | //配置连接的参数
8 | var connection = mysql.createConnection({
9 | host: 'localhost',
10 | user: 'yaoyiyao',
11 | password: '123456789',
12 | database: '1704'
13 | });
14 | //执行连接
15 | connection.connect();
16 |
17 | //解析url的专用模块
18 | //request是一个stream流
19 | http.createServer(function(request, response) {
20 | var post = "";
21 | request.on('data', function(chunk) {
22 | post += chunk;
23 | });
24 | request.on('end', function() {
25 | var pathname = url.parse(request.url).pathname;
26 | var posts = querystring.parse(post);
27 | response.setHeader("Access-Control-Allow-Origin", "*");
28 | console.log(pathname)
29 | switch(pathname) {
30 | case "/select":
31 | connection.query('SELECT * FROM students', function(error, results, fields) {
32 | if(error) throw error;
33 | console.log('The solution is: ', results);
34 | response.end(JSON.stringify({
35 | status: 1,
36 | results
37 | }))
38 | });
39 | break;
40 | case "/insert":
41 | require("./route/insert.js")(response,connection,posts)
42 |
43 |
44 | }
45 |
46 | });
47 | }).listen(12345)
48 | console.log("启动服务器")
--------------------------------------------------------------------------------
/第二天/1.event/event.js:
--------------------------------------------------------------------------------
1 | //引入一个内置的event模块
2 | var events = require("events");
3 | //创建eventEmitter
4 | var eventEmitter = new events.EventEmitter();
5 |
6 | //回调地狱
7 | /*setTimeout(function() {
8 | console.log(1)
9 | setTimeout(function() {
10 | console.log(2)
11 | setTimeout(function() {
12 | console.log(3)
13 | }, 2000)
14 | }, 500)
15 | }, 1000)*/
16 |
17 | //绑定 connection 事件处理程序
18 | eventEmitter.on('event1', function() {
19 | setTimeout(function() {
20 | console.log(1)
21 | }, 1000)
22 | });
23 | eventEmitter.on('event2', function() {
24 | setTimeout(function() {
25 | console.log(2)
26 | }, 500)
27 | });
28 | eventEmitter.on('event3', function() {
29 | setTimeout(function() {
30 | console.log(3)
31 | }, 2000)
32 | });
33 | // 触发 connection 事件
34 | eventEmitter.emit('event1');
35 | eventEmitter.emit('event2');
36 | eventEmitter.emit('event3');
--------------------------------------------------------------------------------
/第二天/2.buffer/buffer.js:
--------------------------------------------------------------------------------
1 | var fs = require("fs");
2 |
3 | var http = require("http");
4 | http.createServer((res, req) => {
5 | req.setHeader("Access-Control-Allow-Origin", "*");
6 | req.writeHead(200, {
7 | 'Content-Type': 'text/html'
8 | });
9 | var text;
10 | function rf(callback) {
11 | fs.readFile("./index.html", function(err, data) {
12 | //把buffer流数据转为字符串
13 | text = data.toString();
14 | callback(text)
15 | })
16 | }
17 | rf(function(text){
18 | console.log(text)
19 | req.end(text);
20 | })
21 | }).listen(12345)
--------------------------------------------------------------------------------
/第二天/2.buffer/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | 你好你好
9 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/第二天/3.stream/input.txt:
--------------------------------------------------------------------------------
1 | 你好你好
--------------------------------------------------------------------------------
/第二天/3.stream/invideo/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第二天/3.stream/invideo/1.jpg
--------------------------------------------------------------------------------
/第二天/3.stream/output.txt:
--------------------------------------------------------------------------------
1 | 你好你好
--------------------------------------------------------------------------------
/第二天/3.stream/outvideo/2.jpg.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第二天/3.stream/outvideo/2.jpg.gz
--------------------------------------------------------------------------------
/第二天/3.stream/pipe.js:
--------------------------------------------------------------------------------
1 | var fs = require("fs");
2 | //压缩模块
3 | var zlib = require('zlib');
4 | // 创建一个可读流
5 | //var readerStream = fs.createReadStream('./invideo/abc.wmv');
6 | var readerStream = fs.createReadStream('./invideo/1.jpg');
7 | // 创建一个可写流
8 | //var writerStream = fs.createWriteStream('./outvideo/cba.wmv');
9 | var writerStream = fs.createWriteStream('./outvideo/2.jpg.gz');
10 | // 管道读写操作
11 | // 读取 input.txt 文件内容,并将内容写入到 output.txt 文件中
12 | readerStream.pipe(zlib.createGzip()).pipe(writerStream);
13 | console.log("程序执行完毕");
--------------------------------------------------------------------------------
/第二天/3.stream/readerstream.js:
--------------------------------------------------------------------------------
1 | /*var http = require("http");//非相对路径
2 | http.createServer((request,response)=>{
3 | //request就是一个stream流
4 | }).listen(12345)*/
5 |
6 | var fs = require("fs");
7 | //创建可读流
8 | var readerStream = fs.createReadStream("input.txt");
9 | //容器开始是空的
10 | var data = "";
11 | //监听流数据
12 |
13 | //data, end, and error
14 | readerStream.on("data", function(chunk) {
15 | //不断往容器里面添加数据
16 | data += chunk
17 | })
18 | readerStream.on("end", function() {
19 | console.log("数据接受完成")
20 | console.log(data)
21 | })
22 | readerStream.on("error", function() {
23 | console.log("数据接受错误")
24 | })
--------------------------------------------------------------------------------
/第二天/3.stream/writestream.js:
--------------------------------------------------------------------------------
1 | var fs = require("fs");
2 |
3 | var writerStream = fs.createWriteStream("input.txt");
4 | //data, end, and error
5 |
6 | var data = "你好你好";
7 |
8 | // 使用 utf8 编码写入数据
9 | writerStream.write(data, 'UTF8');
10 | // 标记文件末尾
11 | writerStream.end();
12 |
13 | // 处理流事件 --> data, end, and error
14 | writerStream.on('finish', function() {
15 | console.log("写入完成。");
16 | });
17 |
18 | writerStream.on('error', function(err) {
19 | console.log(err.stack);
20 | });
21 |
22 | console.log("程序执行完毕");
--------------------------------------------------------------------------------
/第二天/4.模块系统/base.js:
--------------------------------------------------------------------------------
1 | var module1 = require("./module1");
2 | console.log(module1)
--------------------------------------------------------------------------------
/第二天/4.模块系统/module1.js:
--------------------------------------------------------------------------------
1 | function add(a,b){
2 | return a+b
3 | }
4 |
5 | function multi(a,b){
6 | return a*b
7 | }
8 |
9 | module.exports = {
10 | add,
11 | multi
12 | }
13 |
14 |
--------------------------------------------------------------------------------
/第二天/4.模块系统/模块系统.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第二天/4.模块系统/模块系统.png
--------------------------------------------------------------------------------
/第二天/5.函数/close.js:
--------------------------------------------------------------------------------
1 | /*function a() {
2 | function b() {
3 |
4 | }
5 | return b
6 | }
7 | var c = a()
8 | c()*/
9 | /*function a(){
10 | var b = 1;
11 | break;
12 | with;
13 | return
14 | {
15 | b
16 | }
17 | }*/
18 | console.log("a");
19 | (function(){
20 | console.log("b");
21 | })()
22 |
23 |
--------------------------------------------------------------------------------
/第二天/5.函数/func.js:
--------------------------------------------------------------------------------
1 | a();//1
2 | var a = function() {
3 |
4 | console.log(2)
5 | }
6 | a();//2
7 | function a() {
8 | console.log(1)
9 | }
10 | a();//2
--------------------------------------------------------------------------------
/第二天/5.函数/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/第二天/6.路由/GET请求/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/第二天/6.路由/GET请求/server.js:
--------------------------------------------------------------------------------
1 | var http = require("http");
2 | //解析url的专用模块
3 | var url = require("url");
4 | //
5 | var querystring = require("querystring");
6 |
7 | http.createServer((res, req) => {
8 | //url
9 | console.log(res.url)
10 | //url获取?后面的参数
11 | console.log(url.parse(res.url).query)
12 | var query = url.parse(res.url).query;
13 | //
14 | var data = querystring.parse(query);
15 | console.log(data.name)
16 |
17 | req.setHeader("Access-Control-Allow-Origin", "*");
18 | req.writeHead(200, {
19 | 'Content-Type': 'text/html'
20 | });
21 | req.end("aaaaa")
22 | }).listen(12345)
--------------------------------------------------------------------------------
/第二天/6.路由/JSONP请求/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/第二天/6.路由/JSONP请求/server.js:
--------------------------------------------------------------------------------
1 | var http = require("http");
2 | //解析url的专用模块
3 | var url = require("url");
4 | //
5 | var querystring = require("querystring");
6 |
7 | http.createServer((res, req) => {
8 | //url
9 | console.log(res.url)
10 | //url获取?后面的参数
11 | console.log(url.parse(res.url).query)
12 | var query = url.parse(res.url).query;
13 | //
14 | var data = querystring.parse(query);
15 | console.log(data.callback)
16 | var callback = data.callback;
17 | var obj = {
18 | name: "laoyao",
19 | age: 99,
20 | skill: ["ps","js","css"]
21 | }
22 |
23 | req.end(callback+"("+JSON.stringify(obj)+")")
24 | }).listen(12345)
--------------------------------------------------------------------------------
/第二天/6.路由/POST请求/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/第二天/6.路由/POST请求/server.js:
--------------------------------------------------------------------------------
1 | var http = require("http");
2 | var querystring = require("querystring");
3 | //解析url的专用模块
4 | //request是一个stream流
5 | http.createServer(function(request, response){
6 | var post = "";
7 | request.on('data', function(chunk) {
8 | post += chunk;
9 | });
10 |
11 | request.on('end', function() {
12 | console.log(post);
13 | querystring.parse(post)
14 | console.log(querystring.parse(post))
15 |
16 | });
17 | }).listen(12345)
--------------------------------------------------------------------------------
/第二天/6.路由/原生JSONP/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
17 |
19 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/第二天/6.路由/原生JSONP/js/jsonp.js:
--------------------------------------------------------------------------------
1 | JSONP_CALLBACK('{"name":"laoyao"}')
--------------------------------------------------------------------------------
/第五天/1.HTML5本地存储/localstorage.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/第五天/1.HTML5本地存储/sessionstorage.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/第五天/1.HTML5本地存储/两者区别.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/第五天/2.node中间件+php/POST请求/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/第五天/2.node中间件+php/server.js:
--------------------------------------------------------------------------------
1 | var http = require("http");
2 | var express = require("express");
3 | var bodyParser = require('body-parser')
4 | var fs = require("fs")
5 |
6 | var app = express();
7 | app.use(bodyParser.json()); // for parsing application/json
8 | app.use(bodyParser.urlencoded({
9 | extended: true
10 | }));
11 |
12 | //获取前端发送的get请求,并响应结果
13 | app.post("/api", function(req, res) {
14 | //获取get请求的参数 url querystring
15 | console.log(req.body)
16 | res.send('Hello World')
17 |
18 | //服务器代理 爬虫 (读写文件,上传下载文件,爬虫,写日志或者测试数据库,敏感字符处理)
19 | /*http.get("http://localhost:81/1704/nodejs/api.php?name=" + req.query.name, function(res) {
20 | var data = "";
21 | res.setEncoding('utf8');
22 | res.on("data", function(chunk) {
23 | data += chunk
24 | })
25 | res.on("end", function() {
26 | console.log(data)
27 | })
28 | })*/
29 |
30 | http.request({
31 | hostname: "http://localhost:81/1704/nodejs/api.php",
32 | port: 81,
33 | //path:"/",
34 | method: "POST"
35 | }, function(res) {
36 | var data = "";
37 | //res.setEncoding('utf8');
38 | res.on("data", function(chunk) {
39 | data += chunk
40 | })
41 | res.on("end", function() {
42 | })
43 | }).end();
44 |
45 | })
46 | //监听端口,并打开服务器
47 | app.listen(12345);
48 | console.log("开启服务器")
--------------------------------------------------------------------------------
/第五天/3.HTML5定位/1.定位.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
36 |
37 |
--------------------------------------------------------------------------------
/第五天/3.HTML5定位/判断移动端或者PC端.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/第六天/day6.md:
--------------------------------------------------------------------------------
1 | # socket.io
2 |
3 | [原生socket的方案](https://github.com/Wscats/workerman)
4 |
5 | [npm文档](https://www.npmjs.com/package/socket.io)
6 |
7 | [socket.io文档](https://github.com/Wscats/node-tutorial/issues/7)
8 |
9 | ```js
10 | //发送事件
11 | socket.emit("事件名字","文本消息体(对象,数组,字符串等)");
12 | //监听事件
13 | socket.on('事件名字', function(data) {});
14 | ```
--------------------------------------------------------------------------------
/第六天/express/单图上传/js/test.js:
--------------------------------------------------------------------------------
1 | function doUpload() {
2 | $.ajax({
3 | url: 'http://localhost:3000/upload-single',
4 | type: 'POST',
5 | cache: false, //不必须
6 | data: new FormData($('#uploadForm')[0]),
7 | processData: false,
8 | contentType: false,
9 | success: function(data) {
10 | console.log(data)
11 | }
12 | })
13 | }
--------------------------------------------------------------------------------
/第六天/express/单图上传/uploads/logo-1505716474559.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第六天/express/单图上传/uploads/logo-1505716474559.jpg
--------------------------------------------------------------------------------
/第六天/express/单图上传/uploads/logo-1505716568455.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第六天/express/单图上传/uploads/logo-1505716568455.jpg
--------------------------------------------------------------------------------
/第六天/express/单图上传/uploads/logo-1505716728805.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第六天/express/单图上传/uploads/logo-1505716728805.jpg
--------------------------------------------------------------------------------
/第六天/express/单图上传/uploads/logo-1505716845931.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第六天/express/单图上传/uploads/logo-1505716845931.jpg
--------------------------------------------------------------------------------
/第六天/express/单图上传/uploads/logo-1505716881196.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第六天/express/单图上传/uploads/logo-1505716881196.jpg
--------------------------------------------------------------------------------
/第六天/socket.io公共聊天/socket.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
--------------------------------------------------------------------------------
/第六天/socket.io公共聊天/socket.js:
--------------------------------------------------------------------------------
1 | var ioFunc = require("socket.io");
2 |
3 | var http = require("http");
4 | //创建一个服务器
5 | var server = require('http').createServer();
6 | var io = ioFunc(server);
7 | io.on('connection', function(socket) {
8 | socket.on('chat', function(data) {
9 | console.log(data);
10 | //io全部人接受 群聊
11 | //socket自己发自己收
12 | io.emit("getMessage",data)
13 | });
14 | //socket.on('disconnect', function() {});
15 | });
16 | server.listen(3000);
--------------------------------------------------------------------------------
/第六天/socket.io私人聊天/socket.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
12 |
13 |
14 |
15 |
16 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/第六天/socket.io私人聊天/socket.js:
--------------------------------------------------------------------------------
1 | var ioFunc = require("socket.io");
2 |
3 | var http = require("http");
4 | //创建一个服务器
5 | var server = require('http').createServer();
6 | var io = ioFunc(server);
7 | var userlist = [];
8 | io.on('connection', function(socket) {
9 | socket.on('adduser', function(data) {
10 | console.log(socket.id)
11 | userlist.push({
12 | id: socket.id,
13 | name: data.name
14 | })
15 | io.emit("showuserlist", userlist)
16 | });
17 | socket.on('chat', function(data) {
18 | console.log(socket.id)
19 | if(data.toId) {
20 | //点对点聊天
21 | io.sockets.sockets[data.toId].emit("getMessage", data)
22 | }
23 | });
24 | });
25 | server.listen(3000);
--------------------------------------------------------------------------------
/第六天/你画我猜/socket.js:
--------------------------------------------------------------------------------
1 | var ioFunc = require("socket.io");
2 | var http = require("http");
3 | //创建一个服务器
4 | var server = require('http').createServer();
5 | var io = ioFunc(server);
6 | io.on('connection', function(socket) {
7 | socket.on('draw', function(data) {
8 | console.log(data);
9 | //io全部人接受 群聊
10 | //socket自己发自己收
11 | io.emit("paint",data)
12 | });
13 | //socket.on('disconnect', function() {});
14 | });
15 | server.listen(3000);
--------------------------------------------------------------------------------
/第六天/进度条/socket.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
20 |
21 |
--------------------------------------------------------------------------------
/第六天/进度条/socket2.js:
--------------------------------------------------------------------------------
1 | var ioFunc = require("socket.io");
2 |
3 | var http = require("http");
4 | //创建一个服务器
5 | var server = require('http').createServer();
6 | var io = ioFunc(server);
7 | server.listen(3000);
8 | var i = 0
9 | io.on('connection', function(socket) {
10 | setInterval(function(){
11 | //io.emit("getMessage", i)
12 | i++;
13 | },2000)
14 | });
--------------------------------------------------------------------------------
/第四天/express/COOKIE/app.js:
--------------------------------------------------------------------------------
1 | var express = require("express");
2 |
3 | var cookieParser = require('cookie-parser')
4 | //初始化第一个express应用程序
5 | var app = express();
6 | app.use(cookieParser())
7 | app.use(express.static('public'));
8 | //获取前端发送的get请求,并响应结果
9 | app.get("/cookie", function(req, res) {
10 | //获取get请求的参数 url querystring
11 | console.log(req.cookies)
12 | res.send('Hello World')
13 | })
14 | //监听端口,并打开服务器
15 | app.listen(12345);
16 | console.log("开启服务器")
--------------------------------------------------------------------------------
/第四天/express/COOKIE/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
24 |
25 |
--------------------------------------------------------------------------------
/第四天/express/GET/get.js:
--------------------------------------------------------------------------------
1 | var express = require("express");
2 | //初始化第一个express应用程序
3 | var app = express();
4 | //获取前端发送的get请求,并响应结果
5 | app.get("/select.html", function(req, res) {
6 | //获取get请求的参数 url querystring
7 | console.log(req.query)
8 | res.send('Hello World')
9 | })
10 | //监听端口,并打开服务器
11 | app.listen(12345);
12 | console.log("开启服务器")
--------------------------------------------------------------------------------
/第四天/express/JSONP/jsonp.js:
--------------------------------------------------------------------------------
1 | var express = require("express");
2 | //初始化第一个express应用程序
3 | var app = express();
4 | //获取前端发送的get请求,并响应结果
5 | app.get("/home", function(req, res) {
6 | //获取get请求的参数 url querystring
7 | console.log(req.query)
8 | res.send(req.query.callback+'("Hello World")')
9 | })
10 | //监听端口,并打开服务器
11 | app.listen(12345);
12 | console.log("开启服务器")
--------------------------------------------------------------------------------
/第四天/express/POST/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "body-parser": "^1.18.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/第四天/express/POST/post.js:
--------------------------------------------------------------------------------
1 | var express = require("express");
2 | //引入body-parser处理post请求
3 | var bodyParser = require('body-parser')
4 | //初始化第一个express应用程序
5 | var app = express();
6 |
7 | app.use(bodyParser.json()); // for parsing application/json
8 | app.use(bodyParser.urlencoded({
9 | extended: true
10 | })); // for parsing application/x-www-form-urlencoded
11 |
12 | //获取前端发送的get请求,并响应结果
13 | app.post("/all", function(req, res) {
14 | //用fs读写文件,实现爬虫,实现读写数据库,api接口等
15 | //获取post请求的参数 监听req的流
16 | console.log(req.body);
17 | res.send('post post')
18 | })
19 | //监听端口,并打开服务器
20 | app.listen(12345);
21 | console.log("开启服务器")
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/单图上传/ajax+formdata.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
36 |
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/单图上传/express.js:
--------------------------------------------------------------------------------
1 | //引入express框架
2 | var express = require("express");
3 | var app = express();
4 | app.listen(3000);
5 |
6 | var multer = require('multer');
7 | /*var upload = multer({
8 | //如果用这种方法上传,要手动添加文明名后缀
9 | dest: 'uploads/'
10 | })*/
11 | var storage = multer.diskStorage({
12 | //设置上传后文件路径,uploads文件夹会自动创建。
13 | destination: function(req, file, cb) {
14 | cb(null, './uploads')
15 | },
16 | //给上传文件重命名,获取添加后缀名
17 | filename: function(req, file, cb) {
18 | var fileFormat = (file.originalname).split(".");
19 | //给图片加上时间戳格式防止重名名
20 | //比如把 abc.jpg图片切割为数组[abc,jpg],然后用数组长度-1来获取后缀名
21 | cb(null, file.fieldname + '-' + Date.now() + "." + fileFormat[fileFormat.length - 1]);
22 | }
23 | });
24 | var upload = multer({
25 | storage: storage
26 | });
27 |
28 | //单图上传
29 | app.post('/upload-single', upload.single('logo'), function(req, res, next) {
30 | res.append("Access-Control-Allow-Origin","*");
31 | console.log(req.file)
32 | console.log('文件类型:%s', req.file.mimetype);
33 | console.log('原始文件名:%s', req.file.originalname);
34 | console.log((req.file.originalname).split("."))
35 | console.log('文件大小:%s', req.file.size);
36 | console.log('文件保存路径:%s', req.file.path);
37 | res.send({
38 | wscats_code: '0'
39 | });
40 | });
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/单图上传/formdata.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/单图上传/jquery+Noformdata.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
29 |
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/单图上传/jquery+formdata.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
16 |
17 |
32 |
33 |
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/单图上传/js/test.js:
--------------------------------------------------------------------------------
1 | function doUpload() {
2 | $.ajax({
3 | url: 'http://localhost:3000/upload-single',
4 | type: 'POST',
5 | cache: false, //不必须
6 | data: new FormData($('#uploadForm')[0]),
7 | processData: false,
8 | contentType: false,
9 | success: function(data) {
10 | console.log(data)
11 | }
12 | })
13 | }
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/单图上传/uploads/logo-1497886283213.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第四天/express/multer上传文件/单图上传/uploads/logo-1497886283213.jpg
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/单文件上传/multer.js:
--------------------------------------------------------------------------------
1 | var express = require("express");
2 |
3 | var multer = require("multer")
4 |
5 | //配置上传文件存放的信息
6 | var storage = multer.diskStorage({
7 | //设置上传文件存放的目录
8 | destination: function(req, file, cb) {
9 | cb(null, './uploads')
10 | },
11 | //设置上传后文件的名字
12 | filename: function(req, file, cb) {
13 | //拼接文件名和文件后缀
14 | var fileFormat = file.originalname.split(".");
15 | cb(null, file.fieldname + '-' + Date.now() + "." + fileFormat[fileFormat.length - 1])
16 | }
17 | })
18 | //往multer去配置这个存放文件的信息
19 | var upload = multer({
20 | storage: storage
21 | })
22 |
23 | //初始化第一个express应用程序
24 | var app = express();
25 | //获取前端发送的get请求,并响应结果
26 | app.get("/select", function(req, res) {
27 | res.send("hello")
28 | })
29 |
30 | //单文件上传
31 | app.post('/profile', upload.single('logo'), function(req, res, next) {
32 | // req.file is the `avatar` file
33 | // req.body will hold the text fields, if there were any
34 | })
35 |
36 | //监听端口,并打开服务器
37 | app.listen(12345);
38 | console.log("开启服务器")
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/单文件上传/原生ajax上传.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/多图上传/express.js:
--------------------------------------------------------------------------------
1 | //引入express框架
2 | var express = require("express");
3 | var app = express();
4 | app.listen(3200);
5 |
6 | var multer = require('multer');
7 | /*var upload = multer({
8 | //如果用这种方法上传,要手动添加文明名后缀
9 | dest: 'uploads/'
10 | })*/
11 | var storage = multer.diskStorage({
12 | //设置上传后文件路径,uploads文件夹会自动创建。
13 | destination: function(req, file, cb) {
14 | cb(null, './uploads')
15 | },
16 | //给上传文件重命名,获取添加后缀名
17 | filename: function(req, file, cb) {
18 | var fileFormat = (file.originalname).split(".");
19 | //给图片加上时间戳格式防止重名名
20 | //比如把 abc.jpg图片切割为数组[abc,jpg],然后用数组长度-1来获取后缀名
21 | cb(null, file.fieldname + '-' + Date.now() + "." + fileFormat[fileFormat.length - 1]);
22 | }
23 | });
24 | var upload = multer({
25 | storage: storage
26 | });
27 |
28 | //单图上传
29 | //app.post('/upload-single', upload.single('logo'), function(req, res, next) {
30 | app.post('/upload-single', upload.any(), function(req, res, next) {
31 | res.append("Access-Control-Allow-Origin","*");
32 | res.send({
33 | wscats_code: '0'
34 | });
35 | });
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/多图上传/jquery+formdata+morepic.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
17 |
18 |
33 |
34 |
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/多图上传/js/test.js:
--------------------------------------------------------------------------------
1 | function doUpload() {
2 | $.ajax({
3 | url: 'http://localhost:3000/upload-single',
4 | type: 'POST',
5 | cache: false, //不必须
6 | data: new FormData($('#uploadForm')[0]),
7 | processData: false,
8 | contentType: false,
9 | success: function(data) {
10 | console.log(data)
11 | }
12 | })
13 | }
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/多图上传/uploads/logo-1497962748625.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第四天/express/multer上传文件/多图上传/uploads/logo-1497962748625.jpg
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/多文件上传/jquery上传图片.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
14 |
15 |
16 |
32 |
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/多文件上传/multer.js:
--------------------------------------------------------------------------------
1 | var express = require("express");
2 | var multer = require("multer")
3 | //配置上传文件存放的信息
4 | var storage = multer.diskStorage({
5 | //设置上传文件存放的目录
6 | destination: function(req, file, cb) {
7 | cb(null, './uploads')
8 | },
9 | //设置上传后文件的名字
10 | filename: function(req, file, cb) {
11 | //拼接文件名和文件后缀
12 | var fileFormat = file.originalname.split(".");
13 | cb(null, file.fieldname + '-' + Date.now() + "." + fileFormat[fileFormat.length - 1])
14 | }
15 | })
16 | //往multer去配置这个存放文件的信息
17 | var upload = multer({
18 | storage: storage
19 | })
20 |
21 | //初始化第一个express应用程序
22 | var app = express();
23 | //获取前端发送的get请求,并响应结果
24 | app.get("/select", function(req, res) {
25 | res.send("hello")
26 | })
27 |
28 | //单文件上传
29 | app.post('/profile', upload.any(), function(req, res, next) {
30 | // req.file is the `avatar` file
31 | // req.body will hold the text fields, if there were any
32 | })
33 |
34 | //监听端口,并打开服务器
35 | app.listen(12345);
36 | console.log("开启服务器")
--------------------------------------------------------------------------------
/第四天/express/multer上传文件/多文件上传/原生ajax上传.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/第四天/express/安装和路由处理/app.js:
--------------------------------------------------------------------------------
1 | var express = require("express");
2 | //初始化第一个express应用程序
3 | var app = express();
4 | //获取前端发送的get请求,并响应结果
5 | app.get("/select", function(req, res) {
6 | //获取get请求的参数
7 | res.send('Hello World')
8 | })
9 |
10 | app.post("/", function(req, res) {
11 | res.append("Access-Control-Allow-Origin", "*")
12 | res.send('你现在发送的是post请求')
13 | })
14 |
15 | app.get("/", function(req, res) {
16 | res.append("Access-Control-Allow-Origin", "*")
17 | res.send("h w
")
18 | })
19 |
20 | app.all("/all", function(req, res) {
21 | res.append("Access-Control-Allow-Origin", "*")
22 | res.send("允许任何请求")
23 | })
24 | //监听端口,并打开服务器
25 | app.listen(12345);
26 | console.log("开启服务器")
--------------------------------------------------------------------------------
/第四天/express/安装和路由处理/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "express",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "express": "^4.15.4"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/第四天/express/模板引擎/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "lockfileVersion": 1
3 | }
4 |
--------------------------------------------------------------------------------
/第四天/express/模板引擎/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {}
3 | }
4 |
--------------------------------------------------------------------------------
/第四天/express/模板引擎/server.js:
--------------------------------------------------------------------------------
1 | var express = require("express");
2 | //初始化第一个express应用程序
3 | var app = express();
4 | app.use(express.static('public'));
5 | //设置模板引擎
6 | app.set('view engine', 'jade');
7 | //获取前端发送的get请求,并响应结果
8 | app.get("/select", function(req, res) {
9 | //获取get请求的参数 url querystring
10 | console.log(req.query)
11 | var data = ["a","b","c"];
12 | res.send(`
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | - ${data[0]}
23 | - ${data[1]}
24 | - ${data[2]}
25 |
26 |
27 |
39 |
40 |
41 | `)
42 | })
43 | //监听端口,并打开服务器
44 | app.listen(12345);
45 | console.log("开启服务器")
46 | //vue
--------------------------------------------------------------------------------
/第四天/express/模板引擎/server2.js:
--------------------------------------------------------------------------------
1 | var express = require("express");
2 | //初始化第一个express应用程序
3 | var app = express();
4 | app.use(express.static('public'));
5 | //设置放模板的地方
6 | app.set('views', './views')
7 | //设置模板引擎的语言 ejs jade
8 | app.set('view engine', 'jade');
9 | //获取前端发送的get请求,并响应结果
10 | app.get("/select", function(req, res) {
11 | //获取get请求的参数 url querystring
12 | res.render('laoyao', {
13 | title: 'Hey',
14 | message: 'Hello there!'
15 | });
16 | })
17 | //监听端口,并打开服务器
18 | app.listen(12345);
19 | console.log("开启服务器");
--------------------------------------------------------------------------------
/第四天/express/模板引擎/views/laoyao.jade:
--------------------------------------------------------------------------------
1 | html
2 | head
3 | body
4 | p!=message
5 | span
6 | div.abc#ooo
7 |
--------------------------------------------------------------------------------
/第四天/express/静态文件/static.js:
--------------------------------------------------------------------------------
1 | var express = require("express");
2 | //初始化第一个express应用程序
3 | var app = express();
4 | //指定根目录下的pubilc文件夹作为静态资源的存放地方(css,js,html,json,jpg)
5 | app.use(express.static('www'));
6 | app.use(express.static('file'));
7 | //获取前端发送的get请求,并响应结果
8 | app.get("/select", function(req, res) {
9 | //获取get请求的参数 url querystring
10 | console.log(req.query)
11 | res.send('Hello World')
12 | })
13 | //监听端口,并打开服务器
14 | app.listen(12345);
15 | console.log("开启服务器")
16 | //vue
--------------------------------------------------------------------------------
/第四天/express/静态文件/www/img/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第四天/express/静态文件/www/img/1.jpg
--------------------------------------------------------------------------------
/第四天/express/静态文件/www/img/abc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第四天/express/静态文件/www/img/abc.png
--------------------------------------------------------------------------------
/第四天/express/静态文件/www/img/public.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneSevenZeroFour/nodejs/a1f306ade5a0270673967c14fbe07bb145731010/第四天/express/静态文件/www/img/public.jpg
--------------------------------------------------------------------------------
/第四天/express/静态文件/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
21 |
22 |
23 |
--------------------------------------------------------------------------------