diff --git a/demos/javaapp/pom.xml b/demos/javaapp/pom.xml deleted file mode 100644 index 4c87889..0000000 --- a/demos/javaapp/pom.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - 4.0.0 - io.github.dunwu - JavaWebApp - 1.0.0 - war - ${project.artifactId} - - UTF-8 - 1.8 - ${java.version} - ${java.version} - 5.0.2.RELEASE - 8.5.34 - - - - - javax.servlet - javax.servlet-api - 3.1.0 - - - javax.servlet.jsp - jsp-api - 2.2 - - - - - - org.springframework - spring-context-support - - - org.springframework - spring-webmvc - - - - - - org.apache.tomcat.embed - tomcat-embed-core - ${tomcat.version} - - - org.apache.tomcat.embed - tomcat-embed-jasper - ${tomcat.version} - - - - - org.apache.commons - commons-lang3 - 3.7 - - - ch.qos.logback - logback-classic - 1.1.2 - - - com.fasterxml.jackson.core - jackson-databind - 2.9.8 - - - - - - - org.springframework - spring-framework-bom - ${spring.version} - pom - import - - - - - - ${project.artifactId} - - diff --git a/demos/javaapp/src/main/resources/spring/spring-servlet.xml b/demos/javaapp/src/main/resources/spring/spring-servlet.xml deleted file mode 100644 index 025c1f2..0000000 --- a/demos/javaapp/src/main/resources/spring/spring-servlet.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/demos/javaapp/src/main/resources/tomcat/conf/server.xml b/demos/javaapp/src/main/resources/tomcat/conf/server.xml deleted file mode 100644 index c1f05e7..0000000 --- a/demos/javaapp/src/main/resources/tomcat/conf/server.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/demos/javaapp/src/main/resources/tomcat/conf/web.xml b/demos/javaapp/src/main/resources/tomcat/conf/web.xml deleted file mode 100644 index b9a6de4..0000000 --- a/demos/javaapp/src/main/resources/tomcat/conf/web.xml +++ /dev/null @@ -1,4703 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - org.apache.catalina.servlets.DefaultServlet - - debug - 0 - - - listings - false - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jsp - org.apache.jasper.servlet.JspServlet - - fork - false - - - xpoweredBy - false - - - keepgenerated - false - - 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - default - / - - - - - jsp - *.jsp - *.jspx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 30 - - - - - - - - - - - - - 123 - application/vnd.lotus-1-2-3 - - - 3dml - text/vnd.in3d.3dml - - - 3ds - image/x-3ds - - - 3g2 - video/3gpp2 - - - 3gp - video/3gpp - - - 7z - application/x-7z-compressed - - - aab - application/x-authorware-bin - - - aac - audio/x-aac - - - aam - application/x-authorware-map - - - aas - application/x-authorware-seg - - - abs - audio/x-mpeg - - - abw - application/x-abiword - - - ac - application/pkix-attr-cert - - - acc - application/vnd.americandynamics.acc - - - ace - application/x-ace-compressed - - - acu - application/vnd.acucobol - - - acutc - application/vnd.acucorp - - - adp - audio/adpcm - - - aep - application/vnd.audiograph - - - afm - application/x-font-type1 - - - afp - application/vnd.ibm.modcap - - - ahead - application/vnd.ahead.space - - - ai - application/postscript - - - aif - audio/x-aiff - - - aifc - audio/x-aiff - - - aiff - audio/x-aiff - - - aim - application/x-aim - - - air - application/vnd.adobe.air-application-installer-package+zip - - - ait - application/vnd.dvb.ait - - - ami - application/vnd.amiga.ami - - - anx - application/annodex - - - apk - application/vnd.android.package-archive - - - appcache - text/cache-manifest - - - application - application/x-ms-application - - - apr - application/vnd.lotus-approach - - - arc - application/x-freearc - - - art - image/x-jg - - - asc - application/pgp-signature - - - asf - video/x-ms-asf - - - asm - text/x-asm - - - aso - application/vnd.accpac.simply.aso - - - asx - video/x-ms-asf - - - atc - application/vnd.acucorp - - - atom - application/atom+xml - - - atomcat - application/atomcat+xml - - - atomsvc - application/atomsvc+xml - - - atx - application/vnd.antix.game-component - - - au - audio/basic - - - avi - video/x-msvideo - - - avx - video/x-rad-screenplay - - - aw - application/applixware - - - axa - audio/annodex - - - axv - video/annodex - - - azf - application/vnd.airzip.filesecure.azf - - - azs - application/vnd.airzip.filesecure.azs - - - azw - application/vnd.amazon.ebook - - - bat - application/x-msdownload - - - bcpio - application/x-bcpio - - - bdf - application/x-font-bdf - - - bdm - application/vnd.syncml.dm+wbxml - - - bed - application/vnd.realvnc.bed - - - bh2 - application/vnd.fujitsu.oasysprs - - - bin - application/octet-stream - - - blb - application/x-blorb - - - blorb - application/x-blorb - - - bmi - application/vnd.bmi - - - bmp - image/bmp - - - body - text/html - - - book - application/vnd.framemaker - - - box - application/vnd.previewsystems.box - - - boz - application/x-bzip2 - - - bpk - application/octet-stream - - - btif - image/prs.btif - - - bz - application/x-bzip - - - bz2 - application/x-bzip2 - - - c - text/x-c - - - c11amc - application/vnd.cluetrust.cartomobile-config - - - c11amz - application/vnd.cluetrust.cartomobile-config-pkg - - - c4d - application/vnd.clonk.c4group - - - c4f - application/vnd.clonk.c4group - - - c4g - application/vnd.clonk.c4group - - - c4p - application/vnd.clonk.c4group - - - c4u - application/vnd.clonk.c4group - - - cab - application/vnd.ms-cab-compressed - - - caf - audio/x-caf - - - cap - application/vnd.tcpdump.pcap - - - car - application/vnd.curl.car - - - cat - application/vnd.ms-pki.seccat - - - cb7 - application/x-cbr - - - cba - application/x-cbr - - - cbr - application/x-cbr - - - cbt - application/x-cbr - - - cbz - application/x-cbr - - - cc - text/x-c - - - cct - application/x-director - - - ccxml - application/ccxml+xml - - - cdbcmsg - application/vnd.contact.cmsg - - - cdf - application/x-cdf - - - cdkey - application/vnd.mediastation.cdkey - - - cdmia - application/cdmi-capability - - - cdmic - application/cdmi-container - - - cdmid - application/cdmi-domain - - - cdmio - application/cdmi-object - - - cdmiq - application/cdmi-queue - - - cdx - chemical/x-cdx - - - cdxml - application/vnd.chemdraw+xml - - - cdy - application/vnd.cinderella - - - cer - application/pkix-cert - - - cfs - application/x-cfs-compressed - - - cgm - image/cgm - - - chat - application/x-chat - - - chm - application/vnd.ms-htmlhelp - - - chrt - application/vnd.kde.kchart - - - cif - chemical/x-cif - - - cii - application/vnd.anser-web-certificate-issue-initiation - - - cil - application/vnd.ms-artgalry - - - cla - application/vnd.claymore - - - class - application/java - - - clkk - application/vnd.crick.clicker.keyboard - - - clkp - application/vnd.crick.clicker.palette - - - clkt - application/vnd.crick.clicker.template - - - clkw - application/vnd.crick.clicker.wordbank - - - clkx - application/vnd.crick.clicker - - - clp - application/x-msclip - - - cmc - application/vnd.cosmocaller - - - cmdf - chemical/x-cmdf - - - cml - chemical/x-cml - - - cmp - application/vnd.yellowriver-custom-menu - - - cmx - image/x-cmx - - - cod - application/vnd.rim.cod - - - com - application/x-msdownload - - - conf - text/plain - - - cpio - application/x-cpio - - - cpp - text/x-c - - - cpt - application/mac-compactpro - - - crd - application/x-mscardfile - - - crl - application/pkix-crl - - - crt - application/x-x509-ca-cert - - - cryptonote - application/vnd.rig.cryptonote - - - csh - application/x-csh - - - csml - chemical/x-csml - - - csp - application/vnd.commonspace - - - css - text/css - - - cst - application/x-director - - - csv - text/csv - - - cu - application/cu-seeme - - - curl - text/vnd.curl - - - cww - application/prs.cww - - - cxt - application/x-director - - - cxx - text/x-c - - - dae - model/vnd.collada+xml - - - daf - application/vnd.mobius.daf - - - dart - application/vnd.dart - - - dataless - application/vnd.fdsn.seed - - - davmount - application/davmount+xml - - - dbk - application/docbook+xml - - - dcr - application/x-director - - - dcurl - text/vnd.curl.dcurl - - - dd2 - application/vnd.oma.dd2+xml - - - ddd - application/vnd.fujixerox.ddd - - - deb - application/x-debian-package - - - def - text/plain - - - deploy - application/octet-stream - - - der - application/x-x509-ca-cert - - - dfac - application/vnd.dreamfactory - - - dgc - application/x-dgc-compressed - - - dib - image/bmp - - - dic - text/x-c - - - dir - application/x-director - - - dis - application/vnd.mobius.dis - - - dist - application/octet-stream - - - distz - application/octet-stream - - - djv - image/vnd.djvu - - - djvu - image/vnd.djvu - - - dll - application/x-msdownload - - - dmg - application/x-apple-diskimage - - - dmp - application/vnd.tcpdump.pcap - - - dms - application/octet-stream - - - dna - application/vnd.dna - - - doc - application/msword - - - docm - application/vnd.ms-word.document.macroenabled.12 - - - docx - application/vnd.openxmlformats-officedocument.wordprocessingml.document - - - dot - application/msword - - - dotm - application/vnd.ms-word.template.macroenabled.12 - - - dotx - application/vnd.openxmlformats-officedocument.wordprocessingml.template - - - dp - application/vnd.osgi.dp - - - dpg - application/vnd.dpgraph - - - dra - audio/vnd.dra - - - dsc - text/prs.lines.tag - - - dssc - application/dssc+der - - - dtb - application/x-dtbook+xml - - - dtd - application/xml-dtd - - - dts - audio/vnd.dts - - - dtshd - audio/vnd.dts.hd - - - dump - application/octet-stream - - - dv - video/x-dv - - - dvb - video/vnd.dvb.file - - - dvi - application/x-dvi - - - dwf - model/vnd.dwf - - - dwg - image/vnd.dwg - - - dxf - image/vnd.dxf - - - dxp - application/vnd.spotfire.dxp - - - dxr - application/x-director - - - ecelp4800 - audio/vnd.nuera.ecelp4800 - - - ecelp7470 - audio/vnd.nuera.ecelp7470 - - - ecelp9600 - audio/vnd.nuera.ecelp9600 - - - ecma - application/ecmascript - - - edm - application/vnd.novadigm.edm - - - edx - application/vnd.novadigm.edx - - - efif - application/vnd.picsel - - - ei6 - application/vnd.pg.osasli - - - elc - application/octet-stream - - - emf - application/x-msmetafile - - - eml - message/rfc822 - - - emma - application/emma+xml - - - emz - application/x-msmetafile - - - eol - audio/vnd.digital-winds - - - eot - application/vnd.ms-fontobject - - - eps - application/postscript - - - epub - application/epub+zip - - - es3 - application/vnd.eszigno3+xml - - - esa - application/vnd.osgi.subsystem - - - esf - application/vnd.epson.esf - - - et3 - application/vnd.eszigno3+xml - - - etx - text/x-setext - - - eva - application/x-eva - - - evy - application/x-envoy - - - exe - application/octet-stream - - - exi - application/exi - - - ext - application/vnd.novadigm.ext - - - ez - application/andrew-inset - - - ez2 - application/vnd.ezpix-album - - - ez3 - application/vnd.ezpix-package - - - f - text/x-fortran - - - f4v - video/x-f4v - - - f77 - text/x-fortran - - - f90 - text/x-fortran - - - fbs - image/vnd.fastbidsheet - - - fcdt - application/vnd.adobe.formscentral.fcdt - - - fcs - application/vnd.isac.fcs - - - fdf - application/vnd.fdf - - - fe_launch - application/vnd.denovo.fcselayout-link - - - fg5 - application/vnd.fujitsu.oasysgp - - - fgd - application/x-director - - - fh - image/x-freehand - - - fh4 - image/x-freehand - - - fh5 - image/x-freehand - - - fh7 - image/x-freehand - - - fhc - image/x-freehand - - - fig - application/x-xfig - - - flac - audio/flac - - - fli - video/x-fli - - - flo - application/vnd.micrografx.flo - - - flv - video/x-flv - - - flw - application/vnd.kde.kivio - - - flx - text/vnd.fmi.flexstor - - - fly - text/vnd.fly - - - fm - application/vnd.framemaker - - - fnc - application/vnd.frogans.fnc - - - for - text/x-fortran - - - fpx - image/vnd.fpx - - - frame - application/vnd.framemaker - - - fsc - application/vnd.fsc.weblaunch - - - fst - image/vnd.fst - - - ftc - application/vnd.fluxtime.clip - - - fti - application/vnd.anser-web-funds-transfer-initiation - - - fvt - video/vnd.fvt - - - fxp - application/vnd.adobe.fxp - - - fxpl - application/vnd.adobe.fxp - - - fzs - application/vnd.fuzzysheet - - - g2w - application/vnd.geoplan - - - g3 - image/g3fax - - - g3w - application/vnd.geospace - - - gac - application/vnd.groove-account - - - gam - application/x-tads - - - gbr - application/rpki-ghostbusters - - - gca - application/x-gca-compressed - - - gdl - model/vnd.gdl - - - geo - application/vnd.dynageo - - - gex - application/vnd.geometry-explorer - - - ggb - application/vnd.geogebra.file - - - ggt - application/vnd.geogebra.tool - - - ghf - application/vnd.groove-help - - - gif - image/gif - - - gim - application/vnd.groove-identity-message - - - gml - application/gml+xml - - - gmx - application/vnd.gmx - - - gnumeric - application/x-gnumeric - - - gph - application/vnd.flographit - - - gpx - application/gpx+xml - - - gqf - application/vnd.grafeq - - - gqs - application/vnd.grafeq - - - gram - application/srgs - - - gramps - application/x-gramps-xml - - - gre - application/vnd.geometry-explorer - - - grv - application/vnd.groove-injector - - - grxml - application/srgs+xml - - - gsf - application/x-font-ghostscript - - - gtar - application/x-gtar - - - gtm - application/vnd.groove-tool-message - - - gtw - model/vnd.gtw - - - gv - text/vnd.graphviz - - - gxf - application/gxf - - - gxt - application/vnd.geonext - - - gz - application/x-gzip - - - h - text/x-c - - - h261 - video/h261 - - - h263 - video/h263 - - - h264 - video/h264 - - - hal - application/vnd.hal+xml - - - hbci - application/vnd.hbci - - - hdf - application/x-hdf - - - hh - text/x-c - - - hlp - application/winhlp - - - hpgl - application/vnd.hp-hpgl - - - hpid - application/vnd.hp-hpid - - - hps - application/vnd.hp-hps - - - hqx - application/mac-binhex40 - - - htc - text/x-component - - - htke - application/vnd.kenameaapp - - - htm - text/html - - - html - text/html - - - hvd - application/vnd.yamaha.hv-dic - - - hvp - application/vnd.yamaha.hv-voice - - - hvs - application/vnd.yamaha.hv-script - - - i2g - application/vnd.intergeo - - - icc - application/vnd.iccprofile - - - ice - x-conference/x-cooltalk - - - icm - application/vnd.iccprofile - - - ico - image/x-icon - - - ics - text/calendar - - - ief - image/ief - - - ifb - text/calendar - - - ifm - application/vnd.shana.informed.formdata - - - iges - model/iges - - - igl - application/vnd.igloader - - - igm - application/vnd.insors.igm - - - igs - model/iges - - - igx - application/vnd.micrografx.igx - - - iif - application/vnd.shana.informed.interchange - - - imp - application/vnd.accpac.simply.imp - - - ims - application/vnd.ms-ims - - - in - text/plain - - - ink - application/inkml+xml - - - inkml - application/inkml+xml - - - install - application/x-install-instructions - - - iota - application/vnd.astraea-software.iota - - - ipfix - application/ipfix - - - ipk - application/vnd.shana.informed.package - - - irm - application/vnd.ibm.rights-management - - - irp - application/vnd.irepository.package+xml - - - iso - application/x-iso9660-image - - - itp - application/vnd.shana.informed.formtemplate - - - ivp - application/vnd.immervision-ivp - - - ivu - application/vnd.immervision-ivu - - - jad - text/vnd.sun.j2me.app-descriptor - - - jam - application/vnd.jam - - - jar - application/java-archive - - - java - text/x-java-source - - - jisp - application/vnd.jisp - - - jlt - application/vnd.hp-jlyt - - - jnlp - application/x-java-jnlp-file - - - joda - application/vnd.joost.joda-archive - - - jpe - image/jpeg - - - jpeg - image/jpeg - - - jpg - image/jpeg - - - jpgm - video/jpm - - - jpgv - video/jpeg - - - jpm - video/jpm - - - js - application/javascript - - - jsf - text/plain - - - json - application/json - - - jsonml - application/jsonml+json - - - jspf - text/plain - - - kar - audio/midi - - - karbon - application/vnd.kde.karbon - - - kfo - application/vnd.kde.kformula - - - kia - application/vnd.kidspiration - - - kml - application/vnd.google-earth.kml+xml - - - kmz - application/vnd.google-earth.kmz - - - kne - application/vnd.kinar - - - knp - application/vnd.kinar - - - kon - application/vnd.kde.kontour - - - kpr - application/vnd.kde.kpresenter - - - kpt - application/vnd.kde.kpresenter - - - kpxx - application/vnd.ds-keypoint - - - ksp - application/vnd.kde.kspread - - - ktr - application/vnd.kahootz - - - ktx - image/ktx - - - ktz - application/vnd.kahootz - - - kwd - application/vnd.kde.kword - - - kwt - application/vnd.kde.kword - - - lasxml - application/vnd.las.las+xml - - - latex - application/x-latex - - - lbd - application/vnd.llamagraphics.life-balance.desktop - - - lbe - application/vnd.llamagraphics.life-balance.exchange+xml - - - les - application/vnd.hhe.lesson-player - - - lha - application/x-lzh-compressed - - - link66 - application/vnd.route66.link66+xml - - - list - text/plain - - - list3820 - application/vnd.ibm.modcap - - - listafp - application/vnd.ibm.modcap - - - lnk - application/x-ms-shortcut - - - log - text/plain - - - lostxml - application/lost+xml - - - lrf - application/octet-stream - - - lrm - application/vnd.ms-lrm - - - ltf - application/vnd.frogans.ltf - - - lvp - audio/vnd.lucent.voice - - - lwp - application/vnd.lotus-wordpro - - - lzh - application/x-lzh-compressed - - - m13 - application/x-msmediaview - - - m14 - application/x-msmediaview - - - m1v - video/mpeg - - - m21 - application/mp21 - - - m2a - audio/mpeg - - - m2v - video/mpeg - - - m3a - audio/mpeg - - - m3u - audio/x-mpegurl - - - m3u8 - application/vnd.apple.mpegurl - - - m4a - audio/mp4 - - - m4b - audio/mp4 - - - m4r - audio/mp4 - - - m4u - video/vnd.mpegurl - - - m4v - video/mp4 - - - ma - application/mathematica - - - mac - image/x-macpaint - - - mads - application/mads+xml - - - mag - application/vnd.ecowin.chart - - - maker - application/vnd.framemaker - - - man - text/troff - - - mar - application/octet-stream - - - mathml - application/mathml+xml - - - mb - application/mathematica - - - mbk - application/vnd.mobius.mbk - - - mbox - application/mbox - - - mc1 - application/vnd.medcalcdata - - - mcd - application/vnd.mcd - - - mcurl - text/vnd.curl.mcurl - - - mdb - application/x-msaccess - - - mdi - image/vnd.ms-modi - - - me - text/troff - - - mesh - model/mesh - - - meta4 - application/metalink4+xml - - - metalink - application/metalink+xml - - - mets - application/mets+xml - - - mfm - application/vnd.mfmp - - - mft - application/rpki-manifest - - - mgp - application/vnd.osgeo.mapguide.package - - - mgz - application/vnd.proteus.magazine - - - mid - audio/midi - - - midi - audio/midi - - - mie - application/x-mie - - - mif - application/x-mif - - - mime - message/rfc822 - - - mj2 - video/mj2 - - - mjp2 - video/mj2 - - - mk3d - video/x-matroska - - - mka - audio/x-matroska - - - mks - video/x-matroska - - - mkv - video/x-matroska - - - mlp - application/vnd.dolby.mlp - - - mmd - application/vnd.chipnuts.karaoke-mmd - - - mmf - application/vnd.smaf - - - mmr - image/vnd.fujixerox.edmics-mmr - - - mng - video/x-mng - - - mny - application/x-msmoney - - - mobi - application/x-mobipocket-ebook - - - mods - application/mods+xml - - - mov - video/quicktime - - - movie - video/x-sgi-movie - - - mp1 - audio/mpeg - - - mp2 - audio/mpeg - - - mp21 - application/mp21 - - - mp2a - audio/mpeg - - - mp3 - audio/mpeg - - - mp4 - video/mp4 - - - mp4a - audio/mp4 - - - mp4s - application/mp4 - - - mp4v - video/mp4 - - - mpa - audio/mpeg - - - mpc - application/vnd.mophun.certificate - - - mpe - video/mpeg - - - mpeg - video/mpeg - - - mpega - audio/x-mpeg - - - mpg - video/mpeg - - - mpg4 - video/mp4 - - - mpga - audio/mpeg - - - mpkg - application/vnd.apple.installer+xml - - - mpm - application/vnd.blueice.multipass - - - mpn - application/vnd.mophun.application - - - mpp - application/vnd.ms-project - - - mpt - application/vnd.ms-project - - - mpv2 - video/mpeg2 - - - mpy - application/vnd.ibm.minipay - - - mqy - application/vnd.mobius.mqy - - - mrc - application/marc - - - mrcx - application/marcxml+xml - - - ms - text/troff - - - mscml - application/mediaservercontrol+xml - - - mseed - application/vnd.fdsn.mseed - - - mseq - application/vnd.mseq - - - msf - application/vnd.epson.msf - - - msh - model/mesh - - - msi - application/x-msdownload - - - msl - application/vnd.mobius.msl - - - msty - application/vnd.muvee.style - - - mts - model/vnd.mts - - - mus - application/vnd.musician - - - musicxml - application/vnd.recordare.musicxml+xml - - - mvb - application/x-msmediaview - - - mwf - application/vnd.mfer - - - mxf - application/mxf - - - mxl - application/vnd.recordare.musicxml - - - mxml - application/xv+xml - - - mxs - application/vnd.triscape.mxs - - - mxu - video/vnd.mpegurl - - - n-gage - application/vnd.nokia.n-gage.symbian.install - - - n3 - text/n3 - - - nb - application/mathematica - - - nbp - application/vnd.wolfram.player - - - nc - application/x-netcdf - - - ncx - application/x-dtbncx+xml - - - nfo - text/x-nfo - - - ngdat - application/vnd.nokia.n-gage.data - - - nitf - application/vnd.nitf - - - nlu - application/vnd.neurolanguage.nlu - - - nml - application/vnd.enliven - - - nnd - application/vnd.noblenet-directory - - - nns - application/vnd.noblenet-sealer - - - nnw - application/vnd.noblenet-web - - - npx - image/vnd.net-fpx - - - nsc - application/x-conference - - - nsf - application/vnd.lotus-notes - - - ntf - application/vnd.nitf - - - nzb - application/x-nzb - - - oa2 - application/vnd.fujitsu.oasys2 - - - oa3 - application/vnd.fujitsu.oasys3 - - - oas - application/vnd.fujitsu.oasys - - - obd - application/x-msbinder - - - obj - application/x-tgif - - - oda - application/oda - - - - odb - application/vnd.oasis.opendocument.database - - - - odc - application/vnd.oasis.opendocument.chart - - - - odf - application/vnd.oasis.opendocument.formula - - - odft - application/vnd.oasis.opendocument.formula-template - - - - odg - application/vnd.oasis.opendocument.graphics - - - - odi - application/vnd.oasis.opendocument.image - - - - odm - application/vnd.oasis.opendocument.text-master - - - - odp - application/vnd.oasis.opendocument.presentation - - - - ods - application/vnd.oasis.opendocument.spreadsheet - - - - odt - application/vnd.oasis.opendocument.text - - - oga - audio/ogg - - - ogg - audio/ogg - - - ogv - video/ogg - - - - ogx - application/ogg - - - omdoc - application/omdoc+xml - - - onepkg - application/onenote - - - onetmp - application/onenote - - - onetoc - application/onenote - - - onetoc2 - application/onenote - - - opf - application/oebps-package+xml - - - opml - text/x-opml - - - oprc - application/vnd.palm - - - org - application/vnd.lotus-organizer - - - osf - application/vnd.yamaha.openscoreformat - - - osfpvg - application/vnd.yamaha.openscoreformat.osfpvg+xml - - - otc - application/vnd.oasis.opendocument.chart-template - - - otf - font/otf - - - - otg - application/vnd.oasis.opendocument.graphics-template - - - - oth - application/vnd.oasis.opendocument.text-web - - - oti - application/vnd.oasis.opendocument.image-template - - - - otp - application/vnd.oasis.opendocument.presentation-template - - - - ots - application/vnd.oasis.opendocument.spreadsheet-template - - - - ott - application/vnd.oasis.opendocument.text-template - - - oxps - application/oxps - - - oxt - application/vnd.openofficeorg.extension - - - p - text/x-pascal - - - p10 - application/pkcs10 - - - p12 - application/x-pkcs12 - - - p7b - application/x-pkcs7-certificates - - - p7c - application/pkcs7-mime - - - p7m - application/pkcs7-mime - - - p7r - application/x-pkcs7-certreqresp - - - p7s - application/pkcs7-signature - - - p8 - application/pkcs8 - - - pas - text/x-pascal - - - paw - application/vnd.pawaafile - - - pbd - application/vnd.powerbuilder6 - - - pbm - image/x-portable-bitmap - - - pcap - application/vnd.tcpdump.pcap - - - pcf - application/x-font-pcf - - - pcl - application/vnd.hp-pcl - - - pclxl - application/vnd.hp-pclxl - - - pct - image/pict - - - pcurl - application/vnd.curl.pcurl - - - pcx - image/x-pcx - - - pdb - application/vnd.palm - - - pdf - application/pdf - - - pfa - application/x-font-type1 - - - pfb - application/x-font-type1 - - - pfm - application/x-font-type1 - - - pfr - application/font-tdpfr - - - pfx - application/x-pkcs12 - - - pgm - image/x-portable-graymap - - - pgn - application/x-chess-pgn - - - pgp - application/pgp-encrypted - - - pic - image/pict - - - pict - image/pict - - - pkg - application/octet-stream - - - pki - application/pkixcmp - - - pkipath - application/pkix-pkipath - - - plb - application/vnd.3gpp.pic-bw-large - - - plc - application/vnd.mobius.plc - - - plf - application/vnd.pocketlearn - - - pls - audio/x-scpls - - - pml - application/vnd.ctc-posml - - - png - image/png - - - pnm - image/x-portable-anymap - - - pnt - image/x-macpaint - - - portpkg - application/vnd.macports.portpkg - - - pot - application/vnd.ms-powerpoint - - - potm - application/vnd.ms-powerpoint.template.macroenabled.12 - - - potx - application/vnd.openxmlformats-officedocument.presentationml.template - - - ppam - application/vnd.ms-powerpoint.addin.macroenabled.12 - - - ppd - application/vnd.cups-ppd - - - ppm - image/x-portable-pixmap - - - pps - application/vnd.ms-powerpoint - - - ppsm - application/vnd.ms-powerpoint.slideshow.macroenabled.12 - - - ppsx - application/vnd.openxmlformats-officedocument.presentationml.slideshow - - - ppt - application/vnd.ms-powerpoint - - - pptm - application/vnd.ms-powerpoint.presentation.macroenabled.12 - - - pptx - application/vnd.openxmlformats-officedocument.presentationml.presentation - - - pqa - application/vnd.palm - - - prc - application/x-mobipocket-ebook - - - pre - application/vnd.lotus-freelance - - - prf - application/pics-rules - - - ps - application/postscript - - - psb - application/vnd.3gpp.pic-bw-small - - - psd - image/vnd.adobe.photoshop - - - psf - application/x-font-linux-psf - - - pskcxml - application/pskc+xml - - - ptid - application/vnd.pvi.ptid1 - - - pub - application/x-mspublisher - - - pvb - application/vnd.3gpp.pic-bw-var - - - pwn - application/vnd.3m.post-it-notes - - - pya - audio/vnd.ms-playready.media.pya - - - pyv - video/vnd.ms-playready.media.pyv - - - qam - application/vnd.epson.quickanime - - - qbo - application/vnd.intu.qbo - - - qfx - application/vnd.intu.qfx - - - qps - application/vnd.publishare-delta-tree - - - qt - video/quicktime - - - qti - image/x-quicktime - - - qtif - image/x-quicktime - - - qwd - application/vnd.quark.quarkxpress - - - qwt - application/vnd.quark.quarkxpress - - - qxb - application/vnd.quark.quarkxpress - - - qxd - application/vnd.quark.quarkxpress - - - qxl - application/vnd.quark.quarkxpress - - - qxt - application/vnd.quark.quarkxpress - - - ra - audio/x-pn-realaudio - - - ram - audio/x-pn-realaudio - - - rar - application/x-rar-compressed - - - ras - image/x-cmu-raster - - - rcprofile - application/vnd.ipunplugged.rcprofile - - - rdf - application/rdf+xml - - - rdz - application/vnd.data-vision.rdz - - - rep - application/vnd.businessobjects - - - res - application/x-dtbresource+xml - - - rgb - image/x-rgb - - - rif - application/reginfo+xml - - - rip - audio/vnd.rip - - - ris - application/x-research-info-systems - - - rl - application/resource-lists+xml - - - rlc - image/vnd.fujixerox.edmics-rlc - - - rld - application/resource-lists-diff+xml - - - rm - application/vnd.rn-realmedia - - - rmi - audio/midi - - - rmp - audio/x-pn-realaudio-plugin - - - rms - application/vnd.jcp.javame.midlet-rms - - - rmvb - application/vnd.rn-realmedia-vbr - - - rnc - application/relax-ng-compact-syntax - - - roa - application/rpki-roa - - - roff - text/troff - - - rp9 - application/vnd.cloanto.rp9 - - - rpss - application/vnd.nokia.radio-presets - - - rpst - application/vnd.nokia.radio-preset - - - rq - application/sparql-query - - - rs - application/rls-services+xml - - - rsd - application/rsd+xml - - - rss - application/rss+xml - - - rtf - application/rtf - - - rtx - text/richtext - - - s - text/x-asm - - - s3m - audio/s3m - - - saf - application/vnd.yamaha.smaf-audio - - - sbml - application/sbml+xml - - - sc - application/vnd.ibm.secure-container - - - scd - application/x-msschedule - - - scm - application/vnd.lotus-screencam - - - scq - application/scvp-cv-request - - - scs - application/scvp-cv-response - - - scurl - text/vnd.curl.scurl - - - sda - application/vnd.stardivision.draw - - - sdc - application/vnd.stardivision.calc - - - sdd - application/vnd.stardivision.impress - - - sdkd - application/vnd.solent.sdkm+xml - - - sdkm - application/vnd.solent.sdkm+xml - - - sdp - application/sdp - - - sdw - application/vnd.stardivision.writer - - - see - application/vnd.seemail - - - seed - application/vnd.fdsn.seed - - - sema - application/vnd.sema - - - semd - application/vnd.semd - - - semf - application/vnd.semf - - - ser - application/java-serialized-object - - - setpay - application/set-payment-initiation - - - setreg - application/set-registration-initiation - - - sfd-hdstx - application/vnd.hydrostatix.sof-data - - - sfs - application/vnd.spotfire.sfs - - - sfv - text/x-sfv - - - sgi - image/sgi - - - sgl - application/vnd.stardivision.writer-global - - - sgm - text/sgml - - - sgml - text/sgml - - - sh - application/x-sh - - - shar - application/x-shar - - - shf - application/shf+xml - - - - sid - image/x-mrsid-image - - - sig - application/pgp-signature - - - sil - audio/silk - - - silo - model/mesh - - - sis - application/vnd.symbian.install - - - sisx - application/vnd.symbian.install - - - sit - application/x-stuffit - - - sitx - application/x-stuffitx - - - skd - application/vnd.koan - - - skm - application/vnd.koan - - - skp - application/vnd.koan - - - skt - application/vnd.koan - - - sldm - application/vnd.ms-powerpoint.slide.macroenabled.12 - - - sldx - application/vnd.openxmlformats-officedocument.presentationml.slide - - - slt - application/vnd.epson.salt - - - sm - application/vnd.stepmania.stepchart - - - smf - application/vnd.stardivision.math - - - smi - application/smil+xml - - - smil - application/smil+xml - - - smv - video/x-smv - - - smzip - application/vnd.stepmania.package - - - snd - audio/basic - - - snf - application/x-font-snf - - - so - application/octet-stream - - - spc - application/x-pkcs7-certificates - - - spf - application/vnd.yamaha.smaf-phrase - - - spl - application/x-futuresplash - - - spot - text/vnd.in3d.spot - - - spp - application/scvp-vp-response - - - spq - application/scvp-vp-request - - - spx - audio/ogg - - - sql - application/x-sql - - - src - application/x-wais-source - - - srt - application/x-subrip - - - sru - application/sru+xml - - - srx - application/sparql-results+xml - - - ssdl - application/ssdl+xml - - - sse - application/vnd.kodak-descriptor - - - ssf - application/vnd.epson.ssf - - - ssml - application/ssml+xml - - - st - application/vnd.sailingtracker.track - - - stc - application/vnd.sun.xml.calc.template - - - std - application/vnd.sun.xml.draw.template - - - stf - application/vnd.wt.stf - - - sti - application/vnd.sun.xml.impress.template - - - stk - application/hyperstudio - - - stl - application/vnd.ms-pki.stl - - - str - application/vnd.pg.format - - - stw - application/vnd.sun.xml.writer.template - - - sub - text/vnd.dvb.subtitle - - - sus - application/vnd.sus-calendar - - - susp - application/vnd.sus-calendar - - - sv4cpio - application/x-sv4cpio - - - sv4crc - application/x-sv4crc - - - svc - application/vnd.dvb.service - - - svd - application/vnd.svd - - - svg - image/svg+xml - - - svgz - image/svg+xml - - - swa - application/x-director - - - swf - application/x-shockwave-flash - - - swi - application/vnd.aristanetworks.swi - - - sxc - application/vnd.sun.xml.calc - - - sxd - application/vnd.sun.xml.draw - - - sxg - application/vnd.sun.xml.writer.global - - - sxi - application/vnd.sun.xml.impress - - - sxm - application/vnd.sun.xml.math - - - sxw - application/vnd.sun.xml.writer - - - t - text/troff - - - t3 - application/x-t3vm-image - - - taglet - application/vnd.mynfc - - - tao - application/vnd.tao.intent-module-archive - - - tar - application/x-tar - - - tcap - application/vnd.3gpp2.tcap - - - tcl - application/x-tcl - - - teacher - application/vnd.smart.teacher - - - tei - application/tei+xml - - - teicorpus - application/tei+xml - - - tex - application/x-tex - - - texi - application/x-texinfo - - - texinfo - application/x-texinfo - - - text - text/plain - - - tfi - application/thraud+xml - - - tfm - application/x-tex-tfm - - - tga - image/x-tga - - - thmx - application/vnd.ms-officetheme - - - tif - image/tiff - - - tiff - image/tiff - - - tmo - application/vnd.tmobile-livetv - - - torrent - application/x-bittorrent - - - tpl - application/vnd.groove-tool-template - - - tpt - application/vnd.trid.tpt - - - tr - text/troff - - - tra - application/vnd.trueapp - - - trm - application/x-msterminal - - - tsd - application/timestamped-data - - - tsv - text/tab-separated-values - - - ttc - font/collection - - - ttf - font/ttf - - - ttl - text/turtle - - - twd - application/vnd.simtech-mindmapper - - - twds - application/vnd.simtech-mindmapper - - - txd - application/vnd.genomatix.tuxedo - - - txf - application/vnd.mobius.txf - - - txt - text/plain - - - u32 - application/x-authorware-bin - - - udeb - application/x-debian-package - - - ufd - application/vnd.ufdl - - - ufdl - application/vnd.ufdl - - - ulw - audio/basic - - - ulx - application/x-glulx - - - umj - application/vnd.umajin - - - unityweb - application/vnd.unity - - - uoml - application/vnd.uoml+xml - - - uri - text/uri-list - - - uris - text/uri-list - - - urls - text/uri-list - - - ustar - application/x-ustar - - - utz - application/vnd.uiq.theme - - - uu - text/x-uuencode - - - uva - audio/vnd.dece.audio - - - uvd - application/vnd.dece.data - - - uvf - application/vnd.dece.data - - - uvg - image/vnd.dece.graphic - - - uvh - video/vnd.dece.hd - - - uvi - image/vnd.dece.graphic - - - uvm - video/vnd.dece.mobile - - - uvp - video/vnd.dece.pd - - - uvs - video/vnd.dece.sd - - - uvt - application/vnd.dece.ttml+xml - - - uvu - video/vnd.uvvu.mp4 - - - uvv - video/vnd.dece.video - - - uvva - audio/vnd.dece.audio - - - uvvd - application/vnd.dece.data - - - uvvf - application/vnd.dece.data - - - uvvg - image/vnd.dece.graphic - - - uvvh - video/vnd.dece.hd - - - uvvi - image/vnd.dece.graphic - - - uvvm - video/vnd.dece.mobile - - - uvvp - video/vnd.dece.pd - - - uvvs - video/vnd.dece.sd - - - uvvt - application/vnd.dece.ttml+xml - - - uvvu - video/vnd.uvvu.mp4 - - - uvvv - video/vnd.dece.video - - - uvvx - application/vnd.dece.unspecified - - - uvvz - application/vnd.dece.zip - - - uvx - application/vnd.dece.unspecified - - - uvz - application/vnd.dece.zip - - - vcard - text/vcard - - - vcd - application/x-cdlink - - - vcf - text/x-vcard - - - vcg - application/vnd.groove-vcard - - - vcs - text/x-vcalendar - - - vcx - application/vnd.vcx - - - vis - application/vnd.visionary - - - viv - video/vnd.vivo - - - vob - video/x-ms-vob - - - vor - application/vnd.stardivision.writer - - - vox - application/x-authorware-bin - - - vrml - model/vrml - - - vsd - application/vnd.visio - - - vsf - application/vnd.vsf - - - vss - application/vnd.visio - - - vst - application/vnd.visio - - - vsw - application/vnd.visio - - - vtu - model/vnd.vtu - - - vxml - application/voicexml+xml - - - w3d - application/x-director - - - wad - application/x-doom - - - wav - audio/x-wav - - - wax - audio/x-ms-wax - - - - wbmp - image/vnd.wap.wbmp - - - wbs - application/vnd.criticaltools.wbs+xml - - - wbxml - application/vnd.wap.wbxml - - - wcm - application/vnd.ms-works - - - wdb - application/vnd.ms-works - - - wdp - image/vnd.ms-photo - - - weba - audio/webm - - - webm - video/webm - - - webp - image/webp - - - wg - application/vnd.pmi.widget - - - wgt - application/widget - - - wks - application/vnd.ms-works - - - wm - video/x-ms-wm - - - wma - audio/x-ms-wma - - - wmd - application/x-ms-wmd - - - wmf - application/x-msmetafile - - - - wml - text/vnd.wap.wml - - - - wmlc - application/vnd.wap.wmlc - - - - wmls - text/vnd.wap.wmlscript - - - - wmlsc - application/vnd.wap.wmlscriptc - - - wmv - video/x-ms-wmv - - - wmx - video/x-ms-wmx - - - wmz - application/x-msmetafile - - - woff - font/woff - - - woff2 - font/woff2 - - - wpd - application/vnd.wordperfect - - - wpl - application/vnd.ms-wpl - - - wps - application/vnd.ms-works - - - wqd - application/vnd.wqd - - - wri - application/x-mswrite - - - wrl - model/vrml - - - wsdl - application/wsdl+xml - - - wspolicy - application/wspolicy+xml - - - wtb - application/vnd.webturbo - - - wvx - video/x-ms-wvx - - - x32 - application/x-authorware-bin - - - x3d - model/x3d+xml - - - x3db - model/x3d+binary - - - x3dbz - model/x3d+binary - - - x3dv - model/x3d+vrml - - - x3dvz - model/x3d+vrml - - - x3dz - model/x3d+xml - - - xaml - application/xaml+xml - - - xap - application/x-silverlight-app - - - xar - application/vnd.xara - - - xbap - application/x-ms-xbap - - - xbd - application/vnd.fujixerox.docuworks.binder - - - xbm - image/x-xbitmap - - - xdf - application/xcap-diff+xml - - - xdm - application/vnd.syncml.dm+xml - - - xdp - application/vnd.adobe.xdp+xml - - - xdssc - application/dssc+xml - - - xdw - application/vnd.fujixerox.docuworks - - - xenc - application/xenc+xml - - - xer - application/patch-ops-error+xml - - - xfdf - application/vnd.adobe.xfdf - - - xfdl - application/vnd.xfdl - - - xht - application/xhtml+xml - - - xhtml - application/xhtml+xml - - - xhvml - application/xv+xml - - - xif - image/vnd.xiff - - - xla - application/vnd.ms-excel - - - xlam - application/vnd.ms-excel.addin.macroenabled.12 - - - xlc - application/vnd.ms-excel - - - xlf - application/x-xliff+xml - - - xlm - application/vnd.ms-excel - - - xls - application/vnd.ms-excel - - - xlsb - application/vnd.ms-excel.sheet.binary.macroenabled.12 - - - xlsm - application/vnd.ms-excel.sheet.macroenabled.12 - - - xlsx - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - - - xlt - application/vnd.ms-excel - - - xltm - application/vnd.ms-excel.template.macroenabled.12 - - - xltx - application/vnd.openxmlformats-officedocument.spreadsheetml.template - - - xlw - application/vnd.ms-excel - - - xm - audio/xm - - - xml - application/xml - - - xo - application/vnd.olpc-sugar - - - xop - application/xop+xml - - - xpi - application/x-xpinstall - - - xpl - application/xproc+xml - - - xpm - image/x-xpixmap - - - xpr - application/vnd.is-xpr - - - xps - application/vnd.ms-xpsdocument - - - xpw - application/vnd.intercon.formnet - - - xpx - application/vnd.intercon.formnet - - - xsl - application/xml - - - xslt - application/xslt+xml - - - xsm - application/vnd.syncml+xml - - - xspf - application/xspf+xml - - - xul - application/vnd.mozilla.xul+xml - - - xvm - application/xv+xml - - - xvml - application/xv+xml - - - xwd - image/x-xwindowdump - - - xyz - chemical/x-xyz - - - xz - application/x-xz - - - yang - application/yang - - - yin - application/yin+xml - - - z - application/x-compress - - - Z - application/x-compress - - - z1 - application/x-zmachine - - - z2 - application/x-zmachine - - - z3 - application/x-zmachine - - - z4 - application/x-zmachine - - - z5 - application/x-zmachine - - - z6 - application/x-zmachine - - - z7 - application/x-zmachine - - - z8 - application/x-zmachine - - - zaz - application/vnd.zzazz.deck+xml - - - zip - application/zip - - - zir - application/vnd.zul - - - zirz - application/vnd.zul - - - zmm - application/vnd.handheld-entertainment+xml - - - - - - - - - - - - - - - - - - index.html - index.htm - index.jsp - - - diff --git a/demos/javaapp/src/main/webapp/WEB-INF/web.xml b/demos/javaapp/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index f2a86ac..0000000 --- a/demos/javaapp/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - spring-embed-tomcat-demo-helloworld - - - - spring-servlet - org.springframework.web.servlet.DispatcherServlet - 1 - - contextConfigLocation - classpath:spring/spring-servlet.xml - - - - spring-servlet - / - - - - - - - encodingFilter - org.springframework.web.filter.CharacterEncodingFilter - - encoding - UTF-8 - - - forceEncoding - true - - - - encodingFilter - /* - REQUEST - FORWARD - - - - CorsFilter - io.github.dunwu.filter.CorsFilter - - headerKey - Host - - - regex - - ((http://)|(https://))?(\w*\.)*(\S)* - - - - CorsFilter - /* - - - - - /views/jsp/index.jsp - - diff --git a/demos/javaapp/src/main/webapp/views/jsp/index.jsp b/demos/javaapp/src/main/webapp/views/jsp/index.jsp deleted file mode 100644 index 6fd2308..0000000 --- a/demos/javaapp/src/main/webapp/views/jsp/index.jsp +++ /dev/null @@ -1,26 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> -<% - String domain = request.getScheme() + "://" + request.getServerName() + request.getContextPath(); - String host = request.getRemoteHost(); - // int port = request.getServerPort(); - Integer port = Integer.valueOf(System.getProperty("tomcat.connector.port")); - - -%> - - - - - spring-embed-tomcat-demo - - - -

spring-embed-tomcat-demo

-

<%out.print("当前服务器信息:");%>

- - - diff --git a/demos/nginx-1.14.0/html/index.html b/demos/nginx-1.14.0/html/index.html deleted file mode 100644 index 3e95532..0000000 --- a/demos/nginx-1.14.0/html/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - Welcome to nginx! - - - -

Welcome to nginx!

-

If you see this page, the nginx web server is successfully installed and - working. Further configuration is required.

- -

For online documentation and support please refer to - nginx.org.
- Commercial support is available at - nginx.com.

- -

Thank you for using nginx.

- - diff --git a/demos/reactadmin/package.json b/demos/reactadmin/package.json deleted file mode 100644 index 038cf65..0000000 --- a/demos/reactadmin/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "react-admin", - "version": "0.1.0", - "private": true, - "dependencies": { - "react": "^16.7.0", - "react-dom": "^16.7.0", - "react-scripts": "2.1.3" - }, - "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": "react-app" - }, - "browserslist": [ - ">0.2%", - "not dead", - "not ie <= 11", - "not op_mini all" - ] -} diff --git a/demos/reactadmin/public/index.html b/demos/reactadmin/public/index.html deleted file mode 100644 index 91dcfc3..0000000 --- a/demos/reactadmin/public/index.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - React App - - - -
- - - diff --git a/demos/reactadmin/public/manifest.json b/demos/reactadmin/public/manifest.json deleted file mode 100644 index 1f2f141..0000000 --- a/demos/reactadmin/public/manifest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/demos/reactadmin/src/App.css b/demos/reactadmin/src/App.css deleted file mode 100644 index b14705a..0000000 --- a/demos/reactadmin/src/App.css +++ /dev/null @@ -1,32 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - animation: App-logo-spin infinite 20s linear; - height: 40vmin; -} - -.App-header { - background-color: #282C34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61DAFB; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/demos/reactadmin/src/App.js b/demos/reactadmin/src/App.js deleted file mode 100644 index 208db6b..0000000 --- a/demos/reactadmin/src/App.js +++ /dev/null @@ -1,35 +0,0 @@ -import React, { Component } from 'react' -import logo from './logo.svg' -import './App.css' - -class App extends Component { - render() { - return ( - < div - className = 'App' > - < header - className = 'App-header' > - < img - src = { logo } - className = 'App-logo' - alt = 'logo' / > - < p > - Edit < code > src / App.js < /code> and save to reload. - < /p> - < a - className = 'App-link' - href = 'https://reactjs.org' - target = '_blank' - rel = 'noopener noreferrer' - > - Learn - React - < /a> - < /header> - < /div> - ) - - } -} - -export default App diff --git a/demos/reactadmin/src/App.test.js b/demos/reactadmin/src/App.test.js deleted file mode 100644 index dc3b5e7..0000000 --- a/demos/reactadmin/src/App.test.js +++ /dev/null @@ -1,10 +0,0 @@ -import ReactDOM from 'react-dom' -import App from './App' - -it('renders without crashing', () => { - const div = document.createElement('div') - ReactDOM.render( < App / >, div -) - - ReactDOM.unmountComponentAtNode(div) -}) diff --git a/demos/reactadmin/src/index.css b/demos/reactadmin/src/index.css deleted file mode 100644 index 5b6b166..0000000 --- a/demos/reactadmin/src/index.css +++ /dev/null @@ -1,14 +0,0 @@ -body { - margin: 0; - padding: 0; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", - monospace; -} diff --git a/demos/reactadmin/src/serviceWorker.js b/demos/reactadmin/src/serviceWorker.js deleted file mode 100644 index efcb29e..0000000 --- a/demos/reactadmin/src/serviceWorker.js +++ /dev/null @@ -1,135 +0,0 @@ -// This optional code is used to register a service worker. -// register() is not called by default. - -// This lets the app load faster on subsequent visits in production, and gives -// it offline capabilities. However, it also means that developers (and users) -// will only see deployed updates on subsequent visits to a page, after all the -// existing tabs open on the page have been closed, since previously cached -// resources are updated in the background. - -// To learn more about the benefits of this model and instructions on how to -// opt-in, read http://bit.ly/CRA-PWA - -const isLocalhost = Boolean( - window.location.hostname === 'localhost' || - // [::1] is the IPv6 localhost address. - window.location.hostname === '[::1]' || - // 127.0.0.1/8 is considered localhost for IPv4. - window.location.hostname.match( - /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ - ) -) - -export function register(config) { - if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { - // The URL constructor is available in all browsers that support SW. - const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href) - if (publicUrl.origin !== window.location.origin) { - // Our service worker won't work if PUBLIC_URL is on a different origin - // from what our page is served on. This might happen if a CDN is used to - // serve assets; see https://github.com/facebook/create-react-app/issues/2374 - return - } - - window.addEventListener('load', () => { - const swUrl = `${process.env.PUBLIC_URL}/service-worker.js` - - if (isLocalhost) { - // This is running on localhost. Let's check if a service worker still exists or not. - checkValidServiceWorker(swUrl, config) - - // Add some additional logging to localhost, pointing developers to the - // service worker/PWA documentation. - navigator.serviceWorker.ready.then(() => { - console.log( - 'This web app is being served cache-first by a service ' + - 'worker. To learn more, visit http://bit.ly/CRA-PWA' - ) - }) - } else { - // Is not localhost. Just register service worker - registerValidSW(swUrl, config) - } - }) - } -} - -function registerValidSW(swUrl, config) { - navigator.serviceWorker - .register(swUrl) - .then(registration => { - registration.onupdatefound = () => { - const installingWorker = registration.installing - if (installingWorker == null) { - return - } - installingWorker.onstatechange = () => { - if (installingWorker.state === 'installed') { - if (navigator.serviceWorker.controller) { - // At this point, the updated precached content has been fetched, - // but the previous service worker will still serve the older - // content until all client tabs are closed. - console.log( - 'New content is available and will be used when all ' + - 'tabs for this page are closed. See http://bit.ly/CRA-PWA.' - ) - - // Execute callback - if (config && config.onUpdate) { - config.onUpdate(registration) - } - } else { - // At this point, everything has been precached. - // It's the perfect time to display a - // "Content is cached for offline use." message. - console.log('Content is cached for offline use.') - - // Execute callback - if (config && config.onSuccess) { - config.onSuccess(registration) - } - } - } - } - } - }) - .catch(error => { - console.error('Error during service worker registration:', error) - }) -} - -function checkValidServiceWorker(swUrl, config) { - // Check if the service worker can be found. If it can't reload the page. - fetch(swUrl) - .then(response => { - // Ensure service worker exists, and that we really are getting a JS file. - const contentType = response.headers.get('content-type') - if ( - response.status === 404 || - (contentType != null && contentType.indexOf('javascript') === -1) - ) { - // No service worker found. Probably a different app. Reload the page. - navigator.serviceWorker.ready.then(registration => { - registration.unregister().then(() => { - window.location.reload() - }) - }) - } else { - // Service worker found. Proceed as normal. - registerValidSW(swUrl, config) - } - }) - .catch(() => { - console.log( - 'No internet connection found. App is running in offline mode.' - ) - }) -} - -export function unregister() { - if ('serviceWorker' in navigator) { - navigator.serviceWorker.ready.then(registration => { - registration.unregister() - }) - } -} diff --git a/demos/reactapp/src/views/pages/home/logo.svg b/demos/reactapp/src/views/pages/home/logo.svg deleted file mode 100644 index 6d75536..0000000 --- a/demos/reactapp/src/views/pages/home/logo.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - diff --git a/demos/README.md b/examples/README.md similarity index 100% rename from demos/README.md rename to examples/README.md diff --git a/demos/images/nginx-demo01.png b/examples/images/nginx-demo01.png similarity index 100% rename from demos/images/nginx-demo01.png rename to examples/images/nginx-demo01.png diff --git a/demos/images/nginx-demo02.png b/examples/images/nginx-demo02.png similarity index 100% rename from demos/images/nginx-demo02.png rename to examples/images/nginx-demo02.png diff --git a/demos/images/nginx-demo03.png b/examples/images/nginx-demo03.png similarity index 100% rename from demos/images/nginx-demo03.png rename to examples/images/nginx-demo03.png diff --git a/demos/images/nginx-demo04(2).png b/examples/images/nginx-demo04(2).png similarity index 100% rename from demos/images/nginx-demo04(2).png rename to examples/images/nginx-demo04(2).png diff --git a/demos/images/nginx-demo04.png b/examples/images/nginx-demo04.png similarity index 100% rename from demos/images/nginx-demo04.png rename to examples/images/nginx-demo04.png diff --git a/demos/images/nginx-demo05.png b/examples/images/nginx-demo05.png similarity index 100% rename from demos/images/nginx-demo05.png rename to examples/images/nginx-demo05.png diff --git a/demos/images/nginx-demo06.png b/examples/images/nginx-demo06.png similarity index 100% rename from demos/images/nginx-demo06.png rename to examples/images/nginx-demo06.png diff --git a/examples/javaapp/pom.xml b/examples/javaapp/pom.xml new file mode 100644 index 0000000..01a8246 --- /dev/null +++ b/examples/javaapp/pom.xml @@ -0,0 +1,89 @@ + + + 4.0.0 + io.github.dunwu + JavaWebApp + 1.0.0 + war + ${project.artifactId} + + UTF-8 + 1.8 + ${java.version} + ${java.version} + 5.0.2.RELEASE + 8.5.34 + + + + + javax.servlet + javax.servlet-api + 3.1.0 + + + javax.servlet.jsp + jsp-api + 2.2 + + + + + + org.springframework + spring-context-support + + + org.springframework + spring-webmvc + + + + + + org.apache.tomcat.embed + tomcat-embed-core + ${tomcat.version} + + + org.apache.tomcat.embed + tomcat-embed-jasper + ${tomcat.version} + + + + + org.apache.commons + commons-lang3 + 3.7 + + + ch.qos.logback + logback-classic + 1.1.2 + + + com.fasterxml.jackson.core + jackson-databind + 2.9.8 + + + + + + + org.springframework + spring-framework-bom + ${spring.version} + pom + import + + + + + + ${project.artifactId} + + diff --git a/demos/javaapp/src/main/java/io/github/dunwu/Main.java b/examples/javaapp/src/main/java/io/github/dunwu/Main.java similarity index 88% rename from demos/javaapp/src/main/java/io/github/dunwu/Main.java rename to examples/javaapp/src/main/java/io/github/dunwu/Main.java index 33ca08e..eec6e53 100644 --- a/demos/javaapp/src/main/java/io/github/dunwu/Main.java +++ b/examples/javaapp/src/main/java/io/github/dunwu/Main.java @@ -31,8 +31,7 @@ public class Main { if (!checkFile.exists()) { System.setProperty("catalina.base", getAbsolutePath() + RELATIVE_DEV_BASE_DIR); System.setProperty("tomcat.context.docBase", RELATIVE_DEV_DOCBASE_DIR); - } - else { + } else { System.setProperty("catalina.base", getAbsolutePath() + RELATIVE_BASE_DIR); System.setProperty("tomcat.context.docBase", RELATIVE_DOCBASE_DIR); } @@ -42,7 +41,7 @@ public class Main { } if (isBlank(System.getProperty("tomcat.server.shutdownPort"))) { System.setProperty("tomcat.server.shutdownPort", - String.valueOf(Integer.valueOf(System.getProperty("tomcat.connector.port")) + 10000)); + String.valueOf(Integer.valueOf(System.getProperty("tomcat.connector.port")) + 10000)); } if (isBlank(System.getProperty("tomcat.context.path"))) { System.setProperty("tomcat.context.path", CONTEXT_PATH); @@ -67,8 +66,7 @@ public class Main { String folderPath = Main.class.getProtectionDomain().getCodeSource().getLocation().getPath(); if (folderPath.indexOf("WEB-INF") > 0) { path = folderPath.substring(0, folderPath.indexOf("WEB-INF")); - } - else if (folderPath.indexOf("target") > 0) { + } else if (folderPath.indexOf("target") > 0) { path = folderPath.substring(0, folderPath.indexOf("target")); } return path; @@ -101,16 +99,16 @@ public class Main { Digester digester = extendedCatalina.createStartDigester(); digester.push(extendedCatalina); try { - server = ((ExtendedCatalina) digester - .parse(new File(System.getProperty("catalina.base") + RELATIVE_SERVERXML_PATH))).getServer(); + server = ((ExtendedCatalina) digester.parse( + new File(System.getProperty("catalina.base") + RELATIVE_SERVERXML_PATH))).getServer(); // 设置catalina.base和catalna.home this.initBaseDir(); return server; - } - catch (Exception e) { + } catch (Exception e) { System.err.println("Error while parsing server.xml" + e.getMessage()); - throw new RuntimeException("server未创建,请检查server.xml(路径:" + System.getProperty("catalina.base") - + RELATIVE_SERVERXML_PATH + ")配置是否正确"); + throw new RuntimeException( + "server未创建,请检查server.xml(路径:" + System.getProperty("catalina.base") + RELATIVE_SERVERXML_PATH + + ")配置是否正确"); } } diff --git a/demos/javaapp/src/main/java/io/github/dunwu/filter/CorsFilter.java b/examples/javaapp/src/main/java/io/github/dunwu/filter/CorsFilter.java similarity index 85% rename from demos/javaapp/src/main/java/io/github/dunwu/filter/CorsFilter.java rename to examples/javaapp/src/main/java/io/github/dunwu/filter/CorsFilter.java index f4da586..7edd905 100644 --- a/demos/javaapp/src/main/java/io/github/dunwu/filter/CorsFilter.java +++ b/examples/javaapp/src/main/java/io/github/dunwu/filter/CorsFilter.java @@ -16,9 +16,13 @@ import java.util.regex.Pattern; public class CorsFilter implements Filter { private static final Logger logger = LoggerFactory.getLogger(CorsFilter.class); + private final String ORIGIN_KEY = "Origin"; + private String regex; + private String headerKey; + private String protocol = "http"; public void init(FilterConfig filterConfig) { @@ -27,18 +31,17 @@ public class CorsFilter implements Filter { headerKey = filterConfig.getInitParameter("headerKey"); String protocolVal = filterConfig.getInitParameter("protocol"); if (StringUtils.isNotBlank(protocolVal)) { - if (StringUtils.equalsIgnoreCase("http", protocolVal) - || StringUtils.equalsIgnoreCase("https", protocolVal)) { + if (StringUtils.equalsIgnoreCase("http", protocolVal) || StringUtils.equalsIgnoreCase("https", + protocolVal)) { protocol = protocolVal.toLowerCase(); - } - else { + } else { logger.error("CorsFilter 配置参数 protocol 非法,仍使用默认值 http"); } } } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) - throws IOException, ServletException { + throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest) request; HttpServletResponse httpResponse = (HttpServletResponse) response; @@ -84,11 +87,11 @@ public class CorsFilter implements Filter { httpResponse.addHeader("Access-Control-Allow-Credentials", "true"); httpResponse.addHeader("Access-Control-Allow-Methods", "GET, POST, PUT, OPTIONS, DELETE"); httpResponse.addHeader("Access-Control-Allow-Headers", - "DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since," - + " Cache-Control, Content-Type, Content-Range, Range, X-CSRF-TOKEN"); + "DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since," + + " Cache-Control, Content-Type, Content-Range, Range, X-CSRF-TOKEN"); httpResponse.addHeader("Access-Control-Expose-Headers", - "DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since," - + " Cache-Control, Content-Type, Content-Range, Range"); + "DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since," + + " Cache-Control, Content-Type, Content-Range, Range"); if (httpRequest.getMethod().equals("OPTIONS")) { httpResponse.setStatus(HttpServletResponse.SC_OK); return; diff --git a/demos/javaapp/src/main/java/io/github/dunwu/util/IOObjectMapper.java b/examples/javaapp/src/main/java/io/github/dunwu/util/IOObjectMapper.java similarity index 100% rename from demos/javaapp/src/main/java/io/github/dunwu/util/IOObjectMapper.java rename to examples/javaapp/src/main/java/io/github/dunwu/util/IOObjectMapper.java diff --git a/demos/javaapp/src/main/java/io/github/dunwu/web/controller/ApiController.java b/examples/javaapp/src/main/java/io/github/dunwu/web/controller/ApiController.java similarity index 99% rename from demos/javaapp/src/main/java/io/github/dunwu/web/controller/ApiController.java rename to examples/javaapp/src/main/java/io/github/dunwu/web/controller/ApiController.java index 77228b0..4be1d34 100644 --- a/demos/javaapp/src/main/java/io/github/dunwu/web/controller/ApiController.java +++ b/examples/javaapp/src/main/java/io/github/dunwu/web/controller/ApiController.java @@ -81,8 +81,7 @@ public class ApiController { baseResponseDTO.setData(result); System.out.println(baseResponseDTO.toString()); return baseResponseDTO; - } - else { + } else { baseResponseDTO.setCode(BaseResponseDTO.DEFAULT_RESPONSE_RESULT.SYSTEM_ERROR.value()); baseResponseDTO.getMessages().add(BaseResponseDTO.DEFAULT_RESPONSE_RESULT.SYSTEM_ERROR.desc()); return baseResponseDTO; diff --git a/demos/javaapp/src/main/java/io/github/dunwu/web/controller/HelloController.java b/examples/javaapp/src/main/java/io/github/dunwu/web/controller/HelloController.java similarity index 100% rename from demos/javaapp/src/main/java/io/github/dunwu/web/controller/HelloController.java rename to examples/javaapp/src/main/java/io/github/dunwu/web/controller/HelloController.java diff --git a/demos/javaapp/src/main/java/io/github/dunwu/web/controller/IndexController.java b/examples/javaapp/src/main/java/io/github/dunwu/web/controller/IndexController.java similarity index 100% rename from demos/javaapp/src/main/java/io/github/dunwu/web/controller/IndexController.java rename to examples/javaapp/src/main/java/io/github/dunwu/web/controller/IndexController.java diff --git a/demos/javaapp/src/main/java/io/github/dunwu/web/dto/BaseResponseDTO.java b/examples/javaapp/src/main/java/io/github/dunwu/web/dto/BaseResponseDTO.java similarity index 86% rename from demos/javaapp/src/main/java/io/github/dunwu/web/dto/BaseResponseDTO.java rename to examples/javaapp/src/main/java/io/github/dunwu/web/dto/BaseResponseDTO.java index cbb90f5..74f4014 100644 --- a/demos/javaapp/src/main/java/io/github/dunwu/web/dto/BaseResponseDTO.java +++ b/examples/javaapp/src/main/java/io/github/dunwu/web/dto/BaseResponseDTO.java @@ -7,7 +7,9 @@ import java.util.List; public class BaseResponseDTO { private final List messages = new ArrayList<>(); + private Integer code = DEFAULT_RESPONSE_RESULT.SUCCESS.value(); + private T data; public BaseResponseDTO() { @@ -60,8 +62,11 @@ public class BaseResponseDTO { AUTHOR_FAIL(-2, "权限不足"), // 授权不足 PARAM_CHECK_FAIL(-3, ""), // 参数校验失败,错误信息交由业务逻辑处理 RESOURCE_NOT_EXIST(-4, "请求资源不存在"), // 请求资源不存在 - SYSTEM_ERROR(-5, "系统错误"), DATA_MALFORMAT(-6, "请求参数数据格式不正确"), REQMETHOD_ERROR(-7, "请求方法不正确"), TYPE_MISMATCH(-8, - "请求参数类型不匹配"), MISS_REQUEST_PARAM(-9, "请求参数缺失"); + SYSTEM_ERROR(-5, "系统错误"), + DATA_MALFORMAT(-6, "请求参数数据格式不正确"), + REQMETHOD_ERROR(-7, "请求方法不正确"), + TYPE_MISMATCH(-8, "请求参数类型不匹配"), + MISS_REQUEST_PARAM(-9, "请求参数缺失"); private final Integer value; diff --git a/demos/javaapp/src/main/java/io/github/dunwu/web/dto/MenuDTO.java b/examples/javaapp/src/main/java/io/github/dunwu/web/dto/MenuDTO.java similarity index 96% rename from demos/javaapp/src/main/java/io/github/dunwu/web/dto/MenuDTO.java rename to examples/javaapp/src/main/java/io/github/dunwu/web/dto/MenuDTO.java index 4c53aed..a2e8b2e 100644 --- a/demos/javaapp/src/main/java/io/github/dunwu/web/dto/MenuDTO.java +++ b/examples/javaapp/src/main/java/io/github/dunwu/web/dto/MenuDTO.java @@ -11,10 +11,15 @@ import java.util.TreeSet; public class MenuDTO implements Cloneable, Comparable { private final Set children = new TreeSet(); + private String key; + private String title; + private String icon; + private String type; + private String url; public MenuDTO() { @@ -113,8 +118,9 @@ public class MenuDTO implements Cloneable, Comparable { @Override public int compareTo(MenuDTO otherMenuDTO) { - return new CompareToBuilder().append(key, otherMenuDTO.getKey()).append(url, otherMenuDTO.getUrl()) - .toComparison(); + return new CompareToBuilder().append(key, otherMenuDTO.getKey()) + .append(url, otherMenuDTO.getUrl()) + .toComparison(); } } diff --git a/examples/javaapp/src/main/resources/spring/spring-servlet.xml b/examples/javaapp/src/main/resources/spring/spring-servlet.xml new file mode 100644 index 0000000..44cdf30 --- /dev/null +++ b/examples/javaapp/src/main/resources/spring/spring-servlet.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/examples/javaapp/src/main/resources/tomcat/conf/server.xml b/examples/javaapp/src/main/resources/tomcat/conf/server.xml new file mode 100644 index 0000000..da0074e --- /dev/null +++ b/examples/javaapp/src/main/resources/tomcat/conf/server.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/javaapp/src/main/resources/tomcat/conf/web.xml b/examples/javaapp/src/main/resources/tomcat/conf/web.xml new file mode 100644 index 0000000..53e7444 --- /dev/null +++ b/examples/javaapp/src/main/resources/tomcat/conf/web.xml @@ -0,0 +1,4703 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + org.apache.catalina.servlets.DefaultServlet + + debug + 0 + + + listings + false + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jsp + org.apache.jasper.servlet.JspServlet + + fork + false + + + xpoweredBy + false + + + keepgenerated + false + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + default + / + + + + + jsp + *.jsp + *.jspx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 30 + + + + + + + + + + + + + 123 + application/vnd.lotus-1-2-3 + + + 3dml + text/vnd.in3d.3dml + + + 3ds + image/x-3ds + + + 3g2 + video/3gpp2 + + + 3gp + video/3gpp + + + 7z + application/x-7z-compressed + + + aab + application/x-authorware-bin + + + aac + audio/x-aac + + + aam + application/x-authorware-map + + + aas + application/x-authorware-seg + + + abs + audio/x-mpeg + + + abw + application/x-abiword + + + ac + application/pkix-attr-cert + + + acc + application/vnd.americandynamics.acc + + + ace + application/x-ace-compressed + + + acu + application/vnd.acucobol + + + acutc + application/vnd.acucorp + + + adp + audio/adpcm + + + aep + application/vnd.audiograph + + + afm + application/x-font-type1 + + + afp + application/vnd.ibm.modcap + + + ahead + application/vnd.ahead.space + + + ai + application/postscript + + + aif + audio/x-aiff + + + aifc + audio/x-aiff + + + aiff + audio/x-aiff + + + aim + application/x-aim + + + air + application/vnd.adobe.air-application-installer-package+zip + + + ait + application/vnd.dvb.ait + + + ami + application/vnd.amiga.ami + + + anx + application/annodex + + + apk + application/vnd.android.package-archive + + + appcache + text/cache-manifest + + + application + application/x-ms-application + + + apr + application/vnd.lotus-approach + + + arc + application/x-freearc + + + art + image/x-jg + + + asc + application/pgp-signature + + + asf + video/x-ms-asf + + + asm + text/x-asm + + + aso + application/vnd.accpac.simply.aso + + + asx + video/x-ms-asf + + + atc + application/vnd.acucorp + + + atom + application/atom+xml + + + atomcat + application/atomcat+xml + + + atomsvc + application/atomsvc+xml + + + atx + application/vnd.antix.game-component + + + au + audio/basic + + + avi + video/x-msvideo + + + avx + video/x-rad-screenplay + + + aw + application/applixware + + + axa + audio/annodex + + + axv + video/annodex + + + azf + application/vnd.airzip.filesecure.azf + + + azs + application/vnd.airzip.filesecure.azs + + + azw + application/vnd.amazon.ebook + + + bat + application/x-msdownload + + + bcpio + application/x-bcpio + + + bdf + application/x-font-bdf + + + bdm + application/vnd.syncml.dm+wbxml + + + bed + application/vnd.realvnc.bed + + + bh2 + application/vnd.fujitsu.oasysprs + + + bin + application/octet-stream + + + blb + application/x-blorb + + + blorb + application/x-blorb + + + bmi + application/vnd.bmi + + + bmp + image/bmp + + + body + text/html + + + book + application/vnd.framemaker + + + box + application/vnd.previewsystems.box + + + boz + application/x-bzip2 + + + bpk + application/octet-stream + + + btif + image/prs.btif + + + bz + application/x-bzip + + + bz2 + application/x-bzip2 + + + c + text/x-c + + + c11amc + application/vnd.cluetrust.cartomobile-config + + + c11amz + application/vnd.cluetrust.cartomobile-config-pkg + + + c4d + application/vnd.clonk.c4group + + + c4f + application/vnd.clonk.c4group + + + c4g + application/vnd.clonk.c4group + + + c4p + application/vnd.clonk.c4group + + + c4u + application/vnd.clonk.c4group + + + cab + application/vnd.ms-cab-compressed + + + caf + audio/x-caf + + + cap + application/vnd.tcpdump.pcap + + + car + application/vnd.curl.car + + + cat + application/vnd.ms-pki.seccat + + + cb7 + application/x-cbr + + + cba + application/x-cbr + + + cbr + application/x-cbr + + + cbt + application/x-cbr + + + cbz + application/x-cbr + + + cc + text/x-c + + + cct + application/x-director + + + ccxml + application/ccxml+xml + + + cdbcmsg + application/vnd.contact.cmsg + + + cdf + application/x-cdf + + + cdkey + application/vnd.mediastation.cdkey + + + cdmia + application/cdmi-capability + + + cdmic + application/cdmi-container + + + cdmid + application/cdmi-domain + + + cdmio + application/cdmi-object + + + cdmiq + application/cdmi-queue + + + cdx + chemical/x-cdx + + + cdxml + application/vnd.chemdraw+xml + + + cdy + application/vnd.cinderella + + + cer + application/pkix-cert + + + cfs + application/x-cfs-compressed + + + cgm + image/cgm + + + chat + application/x-chat + + + chm + application/vnd.ms-htmlhelp + + + chrt + application/vnd.kde.kchart + + + cif + chemical/x-cif + + + cii + application/vnd.anser-web-certificate-issue-initiation + + + cil + application/vnd.ms-artgalry + + + cla + application/vnd.claymore + + + class + application/java + + + clkk + application/vnd.crick.clicker.keyboard + + + clkp + application/vnd.crick.clicker.palette + + + clkt + application/vnd.crick.clicker.template + + + clkw + application/vnd.crick.clicker.wordbank + + + clkx + application/vnd.crick.clicker + + + clp + application/x-msclip + + + cmc + application/vnd.cosmocaller + + + cmdf + chemical/x-cmdf + + + cml + chemical/x-cml + + + cmp + application/vnd.yellowriver-custom-menu + + + cmx + image/x-cmx + + + cod + application/vnd.rim.cod + + + com + application/x-msdownload + + + conf + text/plain + + + cpio + application/x-cpio + + + cpp + text/x-c + + + cpt + application/mac-compactpro + + + crd + application/x-mscardfile + + + crl + application/pkix-crl + + + crt + application/x-x509-ca-cert + + + cryptonote + application/vnd.rig.cryptonote + + + csh + application/x-csh + + + csml + chemical/x-csml + + + csp + application/vnd.commonspace + + + css + text/css + + + cst + application/x-director + + + csv + text/csv + + + cu + application/cu-seeme + + + curl + text/vnd.curl + + + cww + application/prs.cww + + + cxt + application/x-director + + + cxx + text/x-c + + + dae + model/vnd.collada+xml + + + daf + application/vnd.mobius.daf + + + dart + application/vnd.dart + + + dataless + application/vnd.fdsn.seed + + + davmount + application/davmount+xml + + + dbk + application/docbook+xml + + + dcr + application/x-director + + + dcurl + text/vnd.curl.dcurl + + + dd2 + application/vnd.oma.dd2+xml + + + ddd + application/vnd.fujixerox.ddd + + + deb + application/x-debian-package + + + def + text/plain + + + deploy + application/octet-stream + + + der + application/x-x509-ca-cert + + + dfac + application/vnd.dreamfactory + + + dgc + application/x-dgc-compressed + + + dib + image/bmp + + + dic + text/x-c + + + dir + application/x-director + + + dis + application/vnd.mobius.dis + + + dist + application/octet-stream + + + distz + application/octet-stream + + + djv + image/vnd.djvu + + + djvu + image/vnd.djvu + + + dll + application/x-msdownload + + + dmg + application/x-apple-diskimage + + + dmp + application/vnd.tcpdump.pcap + + + dms + application/octet-stream + + + dna + application/vnd.dna + + + doc + application/msword + + + docm + application/vnd.ms-word.document.macroenabled.12 + + + docx + application/vnd.openxmlformats-officedocument.wordprocessingml.document + + + dot + application/msword + + + dotm + application/vnd.ms-word.template.macroenabled.12 + + + dotx + application/vnd.openxmlformats-officedocument.wordprocessingml.template + + + dp + application/vnd.osgi.dp + + + dpg + application/vnd.dpgraph + + + dra + audio/vnd.dra + + + dsc + text/prs.lines.tag + + + dssc + application/dssc+der + + + dtb + application/x-dtbook+xml + + + dtd + application/xml-dtd + + + dts + audio/vnd.dts + + + dtshd + audio/vnd.dts.hd + + + dump + application/octet-stream + + + dv + video/x-dv + + + dvb + video/vnd.dvb.file + + + dvi + application/x-dvi + + + dwf + model/vnd.dwf + + + dwg + image/vnd.dwg + + + dxf + image/vnd.dxf + + + dxp + application/vnd.spotfire.dxp + + + dxr + application/x-director + + + ecelp4800 + audio/vnd.nuera.ecelp4800 + + + ecelp7470 + audio/vnd.nuera.ecelp7470 + + + ecelp9600 + audio/vnd.nuera.ecelp9600 + + + ecma + application/ecmascript + + + edm + application/vnd.novadigm.edm + + + edx + application/vnd.novadigm.edx + + + efif + application/vnd.picsel + + + ei6 + application/vnd.pg.osasli + + + elc + application/octet-stream + + + emf + application/x-msmetafile + + + eml + message/rfc822 + + + emma + application/emma+xml + + + emz + application/x-msmetafile + + + eol + audio/vnd.digital-winds + + + eot + application/vnd.ms-fontobject + + + eps + application/postscript + + + epub + application/epub+zip + + + es3 + application/vnd.eszigno3+xml + + + esa + application/vnd.osgi.subsystem + + + esf + application/vnd.epson.esf + + + et3 + application/vnd.eszigno3+xml + + + etx + text/x-setext + + + eva + application/x-eva + + + evy + application/x-envoy + + + exe + application/octet-stream + + + exi + application/exi + + + ext + application/vnd.novadigm.ext + + + ez + application/andrew-inset + + + ez2 + application/vnd.ezpix-album + + + ez3 + application/vnd.ezpix-package + + + f + text/x-fortran + + + f4v + video/x-f4v + + + f77 + text/x-fortran + + + f90 + text/x-fortran + + + fbs + image/vnd.fastbidsheet + + + fcdt + application/vnd.adobe.formscentral.fcdt + + + fcs + application/vnd.isac.fcs + + + fdf + application/vnd.fdf + + + fe_launch + application/vnd.denovo.fcselayout-link + + + fg5 + application/vnd.fujitsu.oasysgp + + + fgd + application/x-director + + + fh + image/x-freehand + + + fh4 + image/x-freehand + + + fh5 + image/x-freehand + + + fh7 + image/x-freehand + + + fhc + image/x-freehand + + + fig + application/x-xfig + + + flac + audio/flac + + + fli + video/x-fli + + + flo + application/vnd.micrografx.flo + + + flv + video/x-flv + + + flw + application/vnd.kde.kivio + + + flx + text/vnd.fmi.flexstor + + + fly + text/vnd.fly + + + fm + application/vnd.framemaker + + + fnc + application/vnd.frogans.fnc + + + for + text/x-fortran + + + fpx + image/vnd.fpx + + + frame + application/vnd.framemaker + + + fsc + application/vnd.fsc.weblaunch + + + fst + image/vnd.fst + + + ftc + application/vnd.fluxtime.clip + + + fti + application/vnd.anser-web-funds-transfer-initiation + + + fvt + video/vnd.fvt + + + fxp + application/vnd.adobe.fxp + + + fxpl + application/vnd.adobe.fxp + + + fzs + application/vnd.fuzzysheet + + + g2w + application/vnd.geoplan + + + g3 + image/g3fax + + + g3w + application/vnd.geospace + + + gac + application/vnd.groove-account + + + gam + application/x-tads + + + gbr + application/rpki-ghostbusters + + + gca + application/x-gca-compressed + + + gdl + model/vnd.gdl + + + geo + application/vnd.dynageo + + + gex + application/vnd.geometry-explorer + + + ggb + application/vnd.geogebra.file + + + ggt + application/vnd.geogebra.tool + + + ghf + application/vnd.groove-help + + + gif + image/gif + + + gim + application/vnd.groove-identity-message + + + gml + application/gml+xml + + + gmx + application/vnd.gmx + + + gnumeric + application/x-gnumeric + + + gph + application/vnd.flographit + + + gpx + application/gpx+xml + + + gqf + application/vnd.grafeq + + + gqs + application/vnd.grafeq + + + gram + application/srgs + + + gramps + application/x-gramps-xml + + + gre + application/vnd.geometry-explorer + + + grv + application/vnd.groove-injector + + + grxml + application/srgs+xml + + + gsf + application/x-font-ghostscript + + + gtar + application/x-gtar + + + gtm + application/vnd.groove-tool-message + + + gtw + model/vnd.gtw + + + gv + text/vnd.graphviz + + + gxf + application/gxf + + + gxt + application/vnd.geonext + + + gz + application/x-gzip + + + h + text/x-c + + + h261 + video/h261 + + + h263 + video/h263 + + + h264 + video/h264 + + + hal + application/vnd.hal+xml + + + hbci + application/vnd.hbci + + + hdf + application/x-hdf + + + hh + text/x-c + + + hlp + application/winhlp + + + hpgl + application/vnd.hp-hpgl + + + hpid + application/vnd.hp-hpid + + + hps + application/vnd.hp-hps + + + hqx + application/mac-binhex40 + + + htc + text/x-component + + + htke + application/vnd.kenameaapp + + + htm + text/html + + + html + text/html + + + hvd + application/vnd.yamaha.hv-dic + + + hvp + application/vnd.yamaha.hv-voice + + + hvs + application/vnd.yamaha.hv-script + + + i2g + application/vnd.intergeo + + + icc + application/vnd.iccprofile + + + ice + x-conference/x-cooltalk + + + icm + application/vnd.iccprofile + + + ico + image/x-icon + + + ics + text/calendar + + + ief + image/ief + + + ifb + text/calendar + + + ifm + application/vnd.shana.informed.formdata + + + iges + model/iges + + + igl + application/vnd.igloader + + + igm + application/vnd.insors.igm + + + igs + model/iges + + + igx + application/vnd.micrografx.igx + + + iif + application/vnd.shana.informed.interchange + + + imp + application/vnd.accpac.simply.imp + + + ims + application/vnd.ms-ims + + + in + text/plain + + + ink + application/inkml+xml + + + inkml + application/inkml+xml + + + install + application/x-install-instructions + + + iota + application/vnd.astraea-software.iota + + + ipfix + application/ipfix + + + ipk + application/vnd.shana.informed.package + + + irm + application/vnd.ibm.rights-management + + + irp + application/vnd.irepository.package+xml + + + iso + application/x-iso9660-image + + + itp + application/vnd.shana.informed.formtemplate + + + ivp + application/vnd.immervision-ivp + + + ivu + application/vnd.immervision-ivu + + + jad + text/vnd.sun.j2me.app-descriptor + + + jam + application/vnd.jam + + + jar + application/java-archive + + + java + text/x-java-source + + + jisp + application/vnd.jisp + + + jlt + application/vnd.hp-jlyt + + + jnlp + application/x-java-jnlp-file + + + joda + application/vnd.joost.joda-archive + + + jpe + image/jpeg + + + jpeg + image/jpeg + + + jpg + image/jpeg + + + jpgm + video/jpm + + + jpgv + video/jpeg + + + jpm + video/jpm + + + js + application/javascript + + + jsf + text/plain + + + json + application/json + + + jsonml + application/jsonml+json + + + jspf + text/plain + + + kar + audio/midi + + + karbon + application/vnd.kde.karbon + + + kfo + application/vnd.kde.kformula + + + kia + application/vnd.kidspiration + + + kml + application/vnd.google-earth.kml+xml + + + kmz + application/vnd.google-earth.kmz + + + kne + application/vnd.kinar + + + knp + application/vnd.kinar + + + kon + application/vnd.kde.kontour + + + kpr + application/vnd.kde.kpresenter + + + kpt + application/vnd.kde.kpresenter + + + kpxx + application/vnd.ds-keypoint + + + ksp + application/vnd.kde.kspread + + + ktr + application/vnd.kahootz + + + ktx + image/ktx + + + ktz + application/vnd.kahootz + + + kwd + application/vnd.kde.kword + + + kwt + application/vnd.kde.kword + + + lasxml + application/vnd.las.las+xml + + + latex + application/x-latex + + + lbd + application/vnd.llamagraphics.life-balance.desktop + + + lbe + application/vnd.llamagraphics.life-balance.exchange+xml + + + les + application/vnd.hhe.lesson-player + + + lha + application/x-lzh-compressed + + + link66 + application/vnd.route66.link66+xml + + + list + text/plain + + + list3820 + application/vnd.ibm.modcap + + + listafp + application/vnd.ibm.modcap + + + lnk + application/x-ms-shortcut + + + log + text/plain + + + lostxml + application/lost+xml + + + lrf + application/octet-stream + + + lrm + application/vnd.ms-lrm + + + ltf + application/vnd.frogans.ltf + + + lvp + audio/vnd.lucent.voice + + + lwp + application/vnd.lotus-wordpro + + + lzh + application/x-lzh-compressed + + + m13 + application/x-msmediaview + + + m14 + application/x-msmediaview + + + m1v + video/mpeg + + + m21 + application/mp21 + + + m2a + audio/mpeg + + + m2v + video/mpeg + + + m3a + audio/mpeg + + + m3u + audio/x-mpegurl + + + m3u8 + application/vnd.apple.mpegurl + + + m4a + audio/mp4 + + + m4b + audio/mp4 + + + m4r + audio/mp4 + + + m4u + video/vnd.mpegurl + + + m4v + video/mp4 + + + ma + application/mathematica + + + mac + image/x-macpaint + + + mads + application/mads+xml + + + mag + application/vnd.ecowin.chart + + + maker + application/vnd.framemaker + + + man + text/troff + + + mar + application/octet-stream + + + mathml + application/mathml+xml + + + mb + application/mathematica + + + mbk + application/vnd.mobius.mbk + + + mbox + application/mbox + + + mc1 + application/vnd.medcalcdata + + + mcd + application/vnd.mcd + + + mcurl + text/vnd.curl.mcurl + + + mdb + application/x-msaccess + + + mdi + image/vnd.ms-modi + + + me + text/troff + + + mesh + model/mesh + + + meta4 + application/metalink4+xml + + + metalink + application/metalink+xml + + + mets + application/mets+xml + + + mfm + application/vnd.mfmp + + + mft + application/rpki-manifest + + + mgp + application/vnd.osgeo.mapguide.package + + + mgz + application/vnd.proteus.magazine + + + mid + audio/midi + + + midi + audio/midi + + + mie + application/x-mie + + + mif + application/x-mif + + + mime + message/rfc822 + + + mj2 + video/mj2 + + + mjp2 + video/mj2 + + + mk3d + video/x-matroska + + + mka + audio/x-matroska + + + mks + video/x-matroska + + + mkv + video/x-matroska + + + mlp + application/vnd.dolby.mlp + + + mmd + application/vnd.chipnuts.karaoke-mmd + + + mmf + application/vnd.smaf + + + mmr + image/vnd.fujixerox.edmics-mmr + + + mng + video/x-mng + + + mny + application/x-msmoney + + + mobi + application/x-mobipocket-ebook + + + mods + application/mods+xml + + + mov + video/quicktime + + + movie + video/x-sgi-movie + + + mp1 + audio/mpeg + + + mp2 + audio/mpeg + + + mp21 + application/mp21 + + + mp2a + audio/mpeg + + + mp3 + audio/mpeg + + + mp4 + video/mp4 + + + mp4a + audio/mp4 + + + mp4s + application/mp4 + + + mp4v + video/mp4 + + + mpa + audio/mpeg + + + mpc + application/vnd.mophun.certificate + + + mpe + video/mpeg + + + mpeg + video/mpeg + + + mpega + audio/x-mpeg + + + mpg + video/mpeg + + + mpg4 + video/mp4 + + + mpga + audio/mpeg + + + mpkg + application/vnd.apple.installer+xml + + + mpm + application/vnd.blueice.multipass + + + mpn + application/vnd.mophun.application + + + mpp + application/vnd.ms-project + + + mpt + application/vnd.ms-project + + + mpv2 + video/mpeg2 + + + mpy + application/vnd.ibm.minipay + + + mqy + application/vnd.mobius.mqy + + + mrc + application/marc + + + mrcx + application/marcxml+xml + + + ms + text/troff + + + mscml + application/mediaservercontrol+xml + + + mseed + application/vnd.fdsn.mseed + + + mseq + application/vnd.mseq + + + msf + application/vnd.epson.msf + + + msh + model/mesh + + + msi + application/x-msdownload + + + msl + application/vnd.mobius.msl + + + msty + application/vnd.muvee.style + + + mts + model/vnd.mts + + + mus + application/vnd.musician + + + musicxml + application/vnd.recordare.musicxml+xml + + + mvb + application/x-msmediaview + + + mwf + application/vnd.mfer + + + mxf + application/mxf + + + mxl + application/vnd.recordare.musicxml + + + mxml + application/xv+xml + + + mxs + application/vnd.triscape.mxs + + + mxu + video/vnd.mpegurl + + + n-gage + application/vnd.nokia.n-gage.symbian.install + + + n3 + text/n3 + + + nb + application/mathematica + + + nbp + application/vnd.wolfram.player + + + nc + application/x-netcdf + + + ncx + application/x-dtbncx+xml + + + nfo + text/x-nfo + + + ngdat + application/vnd.nokia.n-gage.data + + + nitf + application/vnd.nitf + + + nlu + application/vnd.neurolanguage.nlu + + + nml + application/vnd.enliven + + + nnd + application/vnd.noblenet-directory + + + nns + application/vnd.noblenet-sealer + + + nnw + application/vnd.noblenet-web + + + npx + image/vnd.net-fpx + + + nsc + application/x-conference + + + nsf + application/vnd.lotus-notes + + + ntf + application/vnd.nitf + + + nzb + application/x-nzb + + + oa2 + application/vnd.fujitsu.oasys2 + + + oa3 + application/vnd.fujitsu.oasys3 + + + oas + application/vnd.fujitsu.oasys + + + obd + application/x-msbinder + + + obj + application/x-tgif + + + oda + application/oda + + + + odb + application/vnd.oasis.opendocument.database + + + + odc + application/vnd.oasis.opendocument.chart + + + + odf + application/vnd.oasis.opendocument.formula + + + odft + application/vnd.oasis.opendocument.formula-template + + + + odg + application/vnd.oasis.opendocument.graphics + + + + odi + application/vnd.oasis.opendocument.image + + + + odm + application/vnd.oasis.opendocument.text-master + + + + odp + application/vnd.oasis.opendocument.presentation + + + + ods + application/vnd.oasis.opendocument.spreadsheet + + + + odt + application/vnd.oasis.opendocument.text + + + oga + audio/ogg + + + ogg + audio/ogg + + + ogv + video/ogg + + + + ogx + application/ogg + + + omdoc + application/omdoc+xml + + + onepkg + application/onenote + + + onetmp + application/onenote + + + onetoc + application/onenote + + + onetoc2 + application/onenote + + + opf + application/oebps-package+xml + + + opml + text/x-opml + + + oprc + application/vnd.palm + + + org + application/vnd.lotus-organizer + + + osf + application/vnd.yamaha.openscoreformat + + + osfpvg + application/vnd.yamaha.openscoreformat.osfpvg+xml + + + otc + application/vnd.oasis.opendocument.chart-template + + + otf + font/otf + + + + otg + application/vnd.oasis.opendocument.graphics-template + + + + oth + application/vnd.oasis.opendocument.text-web + + + oti + application/vnd.oasis.opendocument.image-template + + + + otp + application/vnd.oasis.opendocument.presentation-template + + + + ots + application/vnd.oasis.opendocument.spreadsheet-template + + + + ott + application/vnd.oasis.opendocument.text-template + + + oxps + application/oxps + + + oxt + application/vnd.openofficeorg.extension + + + p + text/x-pascal + + + p10 + application/pkcs10 + + + p12 + application/x-pkcs12 + + + p7b + application/x-pkcs7-certificates + + + p7c + application/pkcs7-mime + + + p7m + application/pkcs7-mime + + + p7r + application/x-pkcs7-certreqresp + + + p7s + application/pkcs7-signature + + + p8 + application/pkcs8 + + + pas + text/x-pascal + + + paw + application/vnd.pawaafile + + + pbd + application/vnd.powerbuilder6 + + + pbm + image/x-portable-bitmap + + + pcap + application/vnd.tcpdump.pcap + + + pcf + application/x-font-pcf + + + pcl + application/vnd.hp-pcl + + + pclxl + application/vnd.hp-pclxl + + + pct + image/pict + + + pcurl + application/vnd.curl.pcurl + + + pcx + image/x-pcx + + + pdb + application/vnd.palm + + + pdf + application/pdf + + + pfa + application/x-font-type1 + + + pfb + application/x-font-type1 + + + pfm + application/x-font-type1 + + + pfr + application/font-tdpfr + + + pfx + application/x-pkcs12 + + + pgm + image/x-portable-graymap + + + pgn + application/x-chess-pgn + + + pgp + application/pgp-encrypted + + + pic + image/pict + + + pict + image/pict + + + pkg + application/octet-stream + + + pki + application/pkixcmp + + + pkipath + application/pkix-pkipath + + + plb + application/vnd.3gpp.pic-bw-large + + + plc + application/vnd.mobius.plc + + + plf + application/vnd.pocketlearn + + + pls + audio/x-scpls + + + pml + application/vnd.ctc-posml + + + png + image/png + + + pnm + image/x-portable-anymap + + + pnt + image/x-macpaint + + + portpkg + application/vnd.macports.portpkg + + + pot + application/vnd.ms-powerpoint + + + potm + application/vnd.ms-powerpoint.template.macroenabled.12 + + + potx + application/vnd.openxmlformats-officedocument.presentationml.template + + + ppam + application/vnd.ms-powerpoint.addin.macroenabled.12 + + + ppd + application/vnd.cups-ppd + + + ppm + image/x-portable-pixmap + + + pps + application/vnd.ms-powerpoint + + + ppsm + application/vnd.ms-powerpoint.slideshow.macroenabled.12 + + + ppsx + application/vnd.openxmlformats-officedocument.presentationml.slideshow + + + ppt + application/vnd.ms-powerpoint + + + pptm + application/vnd.ms-powerpoint.presentation.macroenabled.12 + + + pptx + application/vnd.openxmlformats-officedocument.presentationml.presentation + + + pqa + application/vnd.palm + + + prc + application/x-mobipocket-ebook + + + pre + application/vnd.lotus-freelance + + + prf + application/pics-rules + + + ps + application/postscript + + + psb + application/vnd.3gpp.pic-bw-small + + + psd + image/vnd.adobe.photoshop + + + psf + application/x-font-linux-psf + + + pskcxml + application/pskc+xml + + + ptid + application/vnd.pvi.ptid1 + + + pub + application/x-mspublisher + + + pvb + application/vnd.3gpp.pic-bw-var + + + pwn + application/vnd.3m.post-it-notes + + + pya + audio/vnd.ms-playready.media.pya + + + pyv + video/vnd.ms-playready.media.pyv + + + qam + application/vnd.epson.quickanime + + + qbo + application/vnd.intu.qbo + + + qfx + application/vnd.intu.qfx + + + qps + application/vnd.publishare-delta-tree + + + qt + video/quicktime + + + qti + image/x-quicktime + + + qtif + image/x-quicktime + + + qwd + application/vnd.quark.quarkxpress + + + qwt + application/vnd.quark.quarkxpress + + + qxb + application/vnd.quark.quarkxpress + + + qxd + application/vnd.quark.quarkxpress + + + qxl + application/vnd.quark.quarkxpress + + + qxt + application/vnd.quark.quarkxpress + + + ra + audio/x-pn-realaudio + + + ram + audio/x-pn-realaudio + + + rar + application/x-rar-compressed + + + ras + image/x-cmu-raster + + + rcprofile + application/vnd.ipunplugged.rcprofile + + + rdf + application/rdf+xml + + + rdz + application/vnd.data-vision.rdz + + + rep + application/vnd.businessobjects + + + res + application/x-dtbresource+xml + + + rgb + image/x-rgb + + + rif + application/reginfo+xml + + + rip + audio/vnd.rip + + + ris + application/x-research-info-systems + + + rl + application/resource-lists+xml + + + rlc + image/vnd.fujixerox.edmics-rlc + + + rld + application/resource-lists-diff+xml + + + rm + application/vnd.rn-realmedia + + + rmi + audio/midi + + + rmp + audio/x-pn-realaudio-plugin + + + rms + application/vnd.jcp.javame.midlet-rms + + + rmvb + application/vnd.rn-realmedia-vbr + + + rnc + application/relax-ng-compact-syntax + + + roa + application/rpki-roa + + + roff + text/troff + + + rp9 + application/vnd.cloanto.rp9 + + + rpss + application/vnd.nokia.radio-presets + + + rpst + application/vnd.nokia.radio-preset + + + rq + application/sparql-query + + + rs + application/rls-services+xml + + + rsd + application/rsd+xml + + + rss + application/rss+xml + + + rtf + application/rtf + + + rtx + text/richtext + + + s + text/x-asm + + + s3m + audio/s3m + + + saf + application/vnd.yamaha.smaf-audio + + + sbml + application/sbml+xml + + + sc + application/vnd.ibm.secure-container + + + scd + application/x-msschedule + + + scm + application/vnd.lotus-screencam + + + scq + application/scvp-cv-request + + + scs + application/scvp-cv-response + + + scurl + text/vnd.curl.scurl + + + sda + application/vnd.stardivision.draw + + + sdc + application/vnd.stardivision.calc + + + sdd + application/vnd.stardivision.impress + + + sdkd + application/vnd.solent.sdkm+xml + + + sdkm + application/vnd.solent.sdkm+xml + + + sdp + application/sdp + + + sdw + application/vnd.stardivision.writer + + + see + application/vnd.seemail + + + seed + application/vnd.fdsn.seed + + + sema + application/vnd.sema + + + semd + application/vnd.semd + + + semf + application/vnd.semf + + + ser + application/java-serialized-object + + + setpay + application/set-payment-initiation + + + setreg + application/set-registration-initiation + + + sfd-hdstx + application/vnd.hydrostatix.sof-data + + + sfs + application/vnd.spotfire.sfs + + + sfv + text/x-sfv + + + sgi + image/sgi + + + sgl + application/vnd.stardivision.writer-global + + + sgm + text/sgml + + + sgml + text/sgml + + + sh + application/x-sh + + + shar + application/x-shar + + + shf + application/shf+xml + + + + sid + image/x-mrsid-image + + + sig + application/pgp-signature + + + sil + audio/silk + + + silo + model/mesh + + + sis + application/vnd.symbian.install + + + sisx + application/vnd.symbian.install + + + sit + application/x-stuffit + + + sitx + application/x-stuffitx + + + skd + application/vnd.koan + + + skm + application/vnd.koan + + + skp + application/vnd.koan + + + skt + application/vnd.koan + + + sldm + application/vnd.ms-powerpoint.slide.macroenabled.12 + + + sldx + application/vnd.openxmlformats-officedocument.presentationml.slide + + + slt + application/vnd.epson.salt + + + sm + application/vnd.stepmania.stepchart + + + smf + application/vnd.stardivision.math + + + smi + application/smil+xml + + + smil + application/smil+xml + + + smv + video/x-smv + + + smzip + application/vnd.stepmania.package + + + snd + audio/basic + + + snf + application/x-font-snf + + + so + application/octet-stream + + + spc + application/x-pkcs7-certificates + + + spf + application/vnd.yamaha.smaf-phrase + + + spl + application/x-futuresplash + + + spot + text/vnd.in3d.spot + + + spp + application/scvp-vp-response + + + spq + application/scvp-vp-request + + + spx + audio/ogg + + + sql + application/x-sql + + + src + application/x-wais-source + + + srt + application/x-subrip + + + sru + application/sru+xml + + + srx + application/sparql-results+xml + + + ssdl + application/ssdl+xml + + + sse + application/vnd.kodak-descriptor + + + ssf + application/vnd.epson.ssf + + + ssml + application/ssml+xml + + + st + application/vnd.sailingtracker.track + + + stc + application/vnd.sun.xml.calc.template + + + std + application/vnd.sun.xml.draw.template + + + stf + application/vnd.wt.stf + + + sti + application/vnd.sun.xml.impress.template + + + stk + application/hyperstudio + + + stl + application/vnd.ms-pki.stl + + + str + application/vnd.pg.format + + + stw + application/vnd.sun.xml.writer.template + + + sub + text/vnd.dvb.subtitle + + + sus + application/vnd.sus-calendar + + + susp + application/vnd.sus-calendar + + + sv4cpio + application/x-sv4cpio + + + sv4crc + application/x-sv4crc + + + svc + application/vnd.dvb.service + + + svd + application/vnd.svd + + + svg + image/svg+xml + + + svgz + image/svg+xml + + + swa + application/x-director + + + swf + application/x-shockwave-flash + + + swi + application/vnd.aristanetworks.swi + + + sxc + application/vnd.sun.xml.calc + + + sxd + application/vnd.sun.xml.draw + + + sxg + application/vnd.sun.xml.writer.global + + + sxi + application/vnd.sun.xml.impress + + + sxm + application/vnd.sun.xml.math + + + sxw + application/vnd.sun.xml.writer + + + t + text/troff + + + t3 + application/x-t3vm-image + + + taglet + application/vnd.mynfc + + + tao + application/vnd.tao.intent-module-archive + + + tar + application/x-tar + + + tcap + application/vnd.3gpp2.tcap + + + tcl + application/x-tcl + + + teacher + application/vnd.smart.teacher + + + tei + application/tei+xml + + + teicorpus + application/tei+xml + + + tex + application/x-tex + + + texi + application/x-texinfo + + + texinfo + application/x-texinfo + + + text + text/plain + + + tfi + application/thraud+xml + + + tfm + application/x-tex-tfm + + + tga + image/x-tga + + + thmx + application/vnd.ms-officetheme + + + tif + image/tiff + + + tiff + image/tiff + + + tmo + application/vnd.tmobile-livetv + + + torrent + application/x-bittorrent + + + tpl + application/vnd.groove-tool-template + + + tpt + application/vnd.trid.tpt + + + tr + text/troff + + + tra + application/vnd.trueapp + + + trm + application/x-msterminal + + + tsd + application/timestamped-data + + + tsv + text/tab-separated-values + + + ttc + font/collection + + + ttf + font/ttf + + + ttl + text/turtle + + + twd + application/vnd.simtech-mindmapper + + + twds + application/vnd.simtech-mindmapper + + + txd + application/vnd.genomatix.tuxedo + + + txf + application/vnd.mobius.txf + + + txt + text/plain + + + u32 + application/x-authorware-bin + + + udeb + application/x-debian-package + + + ufd + application/vnd.ufdl + + + ufdl + application/vnd.ufdl + + + ulw + audio/basic + + + ulx + application/x-glulx + + + umj + application/vnd.umajin + + + unityweb + application/vnd.unity + + + uoml + application/vnd.uoml+xml + + + uri + text/uri-list + + + uris + text/uri-list + + + urls + text/uri-list + + + ustar + application/x-ustar + + + utz + application/vnd.uiq.theme + + + uu + text/x-uuencode + + + uva + audio/vnd.dece.audio + + + uvd + application/vnd.dece.data + + + uvf + application/vnd.dece.data + + + uvg + image/vnd.dece.graphic + + + uvh + video/vnd.dece.hd + + + uvi + image/vnd.dece.graphic + + + uvm + video/vnd.dece.mobile + + + uvp + video/vnd.dece.pd + + + uvs + video/vnd.dece.sd + + + uvt + application/vnd.dece.ttml+xml + + + uvu + video/vnd.uvvu.mp4 + + + uvv + video/vnd.dece.video + + + uvva + audio/vnd.dece.audio + + + uvvd + application/vnd.dece.data + + + uvvf + application/vnd.dece.data + + + uvvg + image/vnd.dece.graphic + + + uvvh + video/vnd.dece.hd + + + uvvi + image/vnd.dece.graphic + + + uvvm + video/vnd.dece.mobile + + + uvvp + video/vnd.dece.pd + + + uvvs + video/vnd.dece.sd + + + uvvt + application/vnd.dece.ttml+xml + + + uvvu + video/vnd.uvvu.mp4 + + + uvvv + video/vnd.dece.video + + + uvvx + application/vnd.dece.unspecified + + + uvvz + application/vnd.dece.zip + + + uvx + application/vnd.dece.unspecified + + + uvz + application/vnd.dece.zip + + + vcard + text/vcard + + + vcd + application/x-cdlink + + + vcf + text/x-vcard + + + vcg + application/vnd.groove-vcard + + + vcs + text/x-vcalendar + + + vcx + application/vnd.vcx + + + vis + application/vnd.visionary + + + viv + video/vnd.vivo + + + vob + video/x-ms-vob + + + vor + application/vnd.stardivision.writer + + + vox + application/x-authorware-bin + + + vrml + model/vrml + + + vsd + application/vnd.visio + + + vsf + application/vnd.vsf + + + vss + application/vnd.visio + + + vst + application/vnd.visio + + + vsw + application/vnd.visio + + + vtu + model/vnd.vtu + + + vxml + application/voicexml+xml + + + w3d + application/x-director + + + wad + application/x-doom + + + wav + audio/x-wav + + + wax + audio/x-ms-wax + + + + wbmp + image/vnd.wap.wbmp + + + wbs + application/vnd.criticaltools.wbs+xml + + + wbxml + application/vnd.wap.wbxml + + + wcm + application/vnd.ms-works + + + wdb + application/vnd.ms-works + + + wdp + image/vnd.ms-photo + + + weba + audio/webm + + + webm + video/webm + + + webp + image/webp + + + wg + application/vnd.pmi.widget + + + wgt + application/widget + + + wks + application/vnd.ms-works + + + wm + video/x-ms-wm + + + wma + audio/x-ms-wma + + + wmd + application/x-ms-wmd + + + wmf + application/x-msmetafile + + + + wml + text/vnd.wap.wml + + + + wmlc + application/vnd.wap.wmlc + + + + wmls + text/vnd.wap.wmlscript + + + + wmlsc + application/vnd.wap.wmlscriptc + + + wmv + video/x-ms-wmv + + + wmx + video/x-ms-wmx + + + wmz + application/x-msmetafile + + + woff + font/woff + + + woff2 + font/woff2 + + + wpd + application/vnd.wordperfect + + + wpl + application/vnd.ms-wpl + + + wps + application/vnd.ms-works + + + wqd + application/vnd.wqd + + + wri + application/x-mswrite + + + wrl + model/vrml + + + wsdl + application/wsdl+xml + + + wspolicy + application/wspolicy+xml + + + wtb + application/vnd.webturbo + + + wvx + video/x-ms-wvx + + + x32 + application/x-authorware-bin + + + x3d + model/x3d+xml + + + x3db + model/x3d+binary + + + x3dbz + model/x3d+binary + + + x3dv + model/x3d+vrml + + + x3dvz + model/x3d+vrml + + + x3dz + model/x3d+xml + + + xaml + application/xaml+xml + + + xap + application/x-silverlight-app + + + xar + application/vnd.xara + + + xbap + application/x-ms-xbap + + + xbd + application/vnd.fujixerox.docuworks.binder + + + xbm + image/x-xbitmap + + + xdf + application/xcap-diff+xml + + + xdm + application/vnd.syncml.dm+xml + + + xdp + application/vnd.adobe.xdp+xml + + + xdssc + application/dssc+xml + + + xdw + application/vnd.fujixerox.docuworks + + + xenc + application/xenc+xml + + + xer + application/patch-ops-error+xml + + + xfdf + application/vnd.adobe.xfdf + + + xfdl + application/vnd.xfdl + + + xht + application/xhtml+xml + + + xhtml + application/xhtml+xml + + + xhvml + application/xv+xml + + + xif + image/vnd.xiff + + + xla + application/vnd.ms-excel + + + xlam + application/vnd.ms-excel.addin.macroenabled.12 + + + xlc + application/vnd.ms-excel + + + xlf + application/x-xliff+xml + + + xlm + application/vnd.ms-excel + + + xls + application/vnd.ms-excel + + + xlsb + application/vnd.ms-excel.sheet.binary.macroenabled.12 + + + xlsm + application/vnd.ms-excel.sheet.macroenabled.12 + + + xlsx + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + + xlt + application/vnd.ms-excel + + + xltm + application/vnd.ms-excel.template.macroenabled.12 + + + xltx + application/vnd.openxmlformats-officedocument.spreadsheetml.template + + + xlw + application/vnd.ms-excel + + + xm + audio/xm + + + xml + application/xml + + + xo + application/vnd.olpc-sugar + + + xop + application/xop+xml + + + xpi + application/x-xpinstall + + + xpl + application/xproc+xml + + + xpm + image/x-xpixmap + + + xpr + application/vnd.is-xpr + + + xps + application/vnd.ms-xpsdocument + + + xpw + application/vnd.intercon.formnet + + + xpx + application/vnd.intercon.formnet + + + xsl + application/xml + + + xslt + application/xslt+xml + + + xsm + application/vnd.syncml+xml + + + xspf + application/xspf+xml + + + xul + application/vnd.mozilla.xul+xml + + + xvm + application/xv+xml + + + xvml + application/xv+xml + + + xwd + image/x-xwindowdump + + + xyz + chemical/x-xyz + + + xz + application/x-xz + + + yang + application/yang + + + yin + application/yin+xml + + + z + application/x-compress + + + Z + application/x-compress + + + z1 + application/x-zmachine + + + z2 + application/x-zmachine + + + z3 + application/x-zmachine + + + z4 + application/x-zmachine + + + z5 + application/x-zmachine + + + z6 + application/x-zmachine + + + z7 + application/x-zmachine + + + z8 + application/x-zmachine + + + zaz + application/vnd.zzazz.deck+xml + + + zip + application/zip + + + zir + application/vnd.zul + + + zirz + application/vnd.zul + + + zmm + application/vnd.handheld-entertainment+xml + + + + + + + + + + + + + + + + + + index.html + index.htm + index.jsp + + + diff --git a/demos/javaapp/src/main/webapp/META-INF/MANIFEST.MF b/examples/javaapp/src/main/webapp/META-INF/MANIFEST.MF similarity index 100% rename from demos/javaapp/src/main/webapp/META-INF/MANIFEST.MF rename to examples/javaapp/src/main/webapp/META-INF/MANIFEST.MF diff --git a/examples/javaapp/src/main/webapp/WEB-INF/web.xml b/examples/javaapp/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..a3a6fd7 --- /dev/null +++ b/examples/javaapp/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,65 @@ + + + spring-embed-tomcat-demo-helloworld + + + + spring-servlet + org.springframework.web.servlet.DispatcherServlet + 1 + + contextConfigLocation + classpath:spring/spring-servlet.xml + + + + spring-servlet + / + + + + + + + encodingFilter + org.springframework.web.filter.CharacterEncodingFilter + + encoding + UTF-8 + + + forceEncoding + true + + + + encodingFilter + /* + REQUEST + FORWARD + + + + CorsFilter + io.github.dunwu.filter.CorsFilter + + headerKey + Host + + + regex + + ((http://)|(https://))?(\w*\.)*(\S)* + + + + CorsFilter + /* + + + + + /views/jsp/index.jsp + + diff --git a/demos/javaapp/src/main/webapp/views/jsp/hello.jsp b/examples/javaapp/src/main/webapp/views/jsp/hello.jsp similarity index 61% rename from demos/javaapp/src/main/webapp/views/jsp/hello.jsp rename to examples/javaapp/src/main/webapp/views/jsp/hello.jsp index 774fc94..04f4cc3 100644 --- a/demos/javaapp/src/main/webapp/views/jsp/hello.jsp +++ b/examples/javaapp/src/main/webapp/views/jsp/hello.jsp @@ -1,13 +1,13 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <% - String path = request.getContextPath(); - String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> - HelloController + HelloController

${message}

diff --git a/examples/javaapp/src/main/webapp/views/jsp/index.jsp b/examples/javaapp/src/main/webapp/views/jsp/index.jsp new file mode 100644 index 0000000..1ea75f7 --- /dev/null +++ b/examples/javaapp/src/main/webapp/views/jsp/index.jsp @@ -0,0 +1,26 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> +<% + String domain = request.getScheme() + "://" + request.getServerName() + request.getContextPath(); + String host = request.getRemoteHost(); + // int port = request.getServerPort(); + Integer port = Integer.valueOf(System.getProperty("tomcat.connector.port")); + + +%> + + + + + spring-embed-tomcat-demo + + + +

spring-embed-tomcat-demo

+

<%out.print("当前服务器信息:");%>

+
    +
  • <%out.print("domain:" + domain);%>
  • +
  • <%out.print("host:" + host);%>
  • +
  • <%out.print("port:" + port);%>
  • +
+ + diff --git a/demos/nginx-1.14.0/conf/conf.d/demo01.conf b/examples/nginx-1.14.0/conf/conf.d/demo01.conf similarity index 100% rename from demos/nginx-1.14.0/conf/conf.d/demo01.conf rename to examples/nginx-1.14.0/conf/conf.d/demo01.conf diff --git a/demos/nginx-1.14.0/conf/conf.d/demo02.conf b/examples/nginx-1.14.0/conf/conf.d/demo02.conf similarity index 100% rename from demos/nginx-1.14.0/conf/conf.d/demo02.conf rename to examples/nginx-1.14.0/conf/conf.d/demo02.conf diff --git a/demos/nginx-1.14.0/conf/conf.d/demo03.conf b/examples/nginx-1.14.0/conf/conf.d/demo03.conf similarity index 100% rename from demos/nginx-1.14.0/conf/conf.d/demo03.conf rename to examples/nginx-1.14.0/conf/conf.d/demo03.conf diff --git a/demos/nginx-1.14.0/conf/conf.d/demo04.conf b/examples/nginx-1.14.0/conf/conf.d/demo04.conf similarity index 100% rename from demos/nginx-1.14.0/conf/conf.d/demo04.conf rename to examples/nginx-1.14.0/conf/conf.d/demo04.conf diff --git a/demos/nginx-1.14.0/conf/conf.d/demo05.conf b/examples/nginx-1.14.0/conf/conf.d/demo05.conf similarity index 100% rename from demos/nginx-1.14.0/conf/conf.d/demo05.conf rename to examples/nginx-1.14.0/conf/conf.d/demo05.conf diff --git a/demos/nginx-1.14.0/conf/conf.d/demo06.conf b/examples/nginx-1.14.0/conf/conf.d/demo06.conf similarity index 100% rename from demos/nginx-1.14.0/conf/conf.d/demo06.conf rename to examples/nginx-1.14.0/conf/conf.d/demo06.conf diff --git a/demos/nginx-1.14.0/conf/fastcgi.conf b/examples/nginx-1.14.0/conf/fastcgi.conf similarity index 100% rename from demos/nginx-1.14.0/conf/fastcgi.conf rename to examples/nginx-1.14.0/conf/fastcgi.conf diff --git a/demos/nginx-1.14.0/conf/fastcgi_params b/examples/nginx-1.14.0/conf/fastcgi_params similarity index 100% rename from demos/nginx-1.14.0/conf/fastcgi_params rename to examples/nginx-1.14.0/conf/fastcgi_params diff --git a/demos/nginx-1.14.0/conf/koi-utf b/examples/nginx-1.14.0/conf/koi-utf similarity index 100% rename from demos/nginx-1.14.0/conf/koi-utf rename to examples/nginx-1.14.0/conf/koi-utf diff --git a/demos/nginx-1.14.0/conf/koi-win b/examples/nginx-1.14.0/conf/koi-win similarity index 100% rename from demos/nginx-1.14.0/conf/koi-win rename to examples/nginx-1.14.0/conf/koi-win diff --git a/demos/nginx-1.14.0/conf/mime.types b/examples/nginx-1.14.0/conf/mime.types similarity index 100% rename from demos/nginx-1.14.0/conf/mime.types rename to examples/nginx-1.14.0/conf/mime.types diff --git a/demos/nginx-1.14.0/conf/nginx.conf b/examples/nginx-1.14.0/conf/nginx.conf similarity index 100% rename from demos/nginx-1.14.0/conf/nginx.conf rename to examples/nginx-1.14.0/conf/nginx.conf diff --git a/demos/nginx-1.14.0/conf/scgi_params b/examples/nginx-1.14.0/conf/scgi_params similarity index 100% rename from demos/nginx-1.14.0/conf/scgi_params rename to examples/nginx-1.14.0/conf/scgi_params diff --git a/demos/nginx-1.14.0/conf/uwsgi_params b/examples/nginx-1.14.0/conf/uwsgi_params similarity index 100% rename from demos/nginx-1.14.0/conf/uwsgi_params rename to examples/nginx-1.14.0/conf/uwsgi_params diff --git a/demos/nginx-1.14.0/conf/win-utf b/examples/nginx-1.14.0/conf/win-utf similarity index 100% rename from demos/nginx-1.14.0/conf/win-utf rename to examples/nginx-1.14.0/conf/win-utf diff --git a/demos/nginx-1.14.0/contrib/README b/examples/nginx-1.14.0/contrib/README similarity index 100% rename from demos/nginx-1.14.0/contrib/README rename to examples/nginx-1.14.0/contrib/README diff --git a/demos/nginx-1.14.0/contrib/geo2nginx.pl b/examples/nginx-1.14.0/contrib/geo2nginx.pl similarity index 100% rename from demos/nginx-1.14.0/contrib/geo2nginx.pl rename to examples/nginx-1.14.0/contrib/geo2nginx.pl diff --git a/demos/nginx-1.14.0/contrib/unicode2nginx/koi-utf b/examples/nginx-1.14.0/contrib/unicode2nginx/koi-utf similarity index 100% rename from demos/nginx-1.14.0/contrib/unicode2nginx/koi-utf rename to examples/nginx-1.14.0/contrib/unicode2nginx/koi-utf diff --git a/demos/nginx-1.14.0/contrib/unicode2nginx/unicode-to-nginx.pl b/examples/nginx-1.14.0/contrib/unicode2nginx/unicode-to-nginx.pl similarity index 100% rename from demos/nginx-1.14.0/contrib/unicode2nginx/unicode-to-nginx.pl rename to examples/nginx-1.14.0/contrib/unicode2nginx/unicode-to-nginx.pl diff --git a/demos/nginx-1.14.0/contrib/unicode2nginx/win-utf b/examples/nginx-1.14.0/contrib/unicode2nginx/win-utf similarity index 100% rename from demos/nginx-1.14.0/contrib/unicode2nginx/win-utf rename to examples/nginx-1.14.0/contrib/unicode2nginx/win-utf diff --git a/demos/nginx-1.14.0/contrib/vim/ftdetect/nginx.vim b/examples/nginx-1.14.0/contrib/vim/ftdetect/nginx.vim similarity index 100% rename from demos/nginx-1.14.0/contrib/vim/ftdetect/nginx.vim rename to examples/nginx-1.14.0/contrib/vim/ftdetect/nginx.vim diff --git a/demos/nginx-1.14.0/contrib/vim/ftplugin/nginx.vim b/examples/nginx-1.14.0/contrib/vim/ftplugin/nginx.vim similarity index 100% rename from demos/nginx-1.14.0/contrib/vim/ftplugin/nginx.vim rename to examples/nginx-1.14.0/contrib/vim/ftplugin/nginx.vim diff --git a/demos/nginx-1.14.0/contrib/vim/indent/nginx.vim b/examples/nginx-1.14.0/contrib/vim/indent/nginx.vim similarity index 100% rename from demos/nginx-1.14.0/contrib/vim/indent/nginx.vim rename to examples/nginx-1.14.0/contrib/vim/indent/nginx.vim diff --git a/demos/nginx-1.14.0/contrib/vim/syntax/nginx.vim b/examples/nginx-1.14.0/contrib/vim/syntax/nginx.vim similarity index 100% rename from demos/nginx-1.14.0/contrib/vim/syntax/nginx.vim rename to examples/nginx-1.14.0/contrib/vim/syntax/nginx.vim diff --git a/demos/nginx-1.14.0/docs/CHANGES b/examples/nginx-1.14.0/docs/CHANGES similarity index 100% rename from demos/nginx-1.14.0/docs/CHANGES rename to examples/nginx-1.14.0/docs/CHANGES diff --git a/demos/nginx-1.14.0/docs/CHANGES.ru b/examples/nginx-1.14.0/docs/CHANGES.ru similarity index 100% rename from demos/nginx-1.14.0/docs/CHANGES.ru rename to examples/nginx-1.14.0/docs/CHANGES.ru diff --git a/demos/nginx-1.14.0/docs/LICENSE b/examples/nginx-1.14.0/docs/LICENSE similarity index 100% rename from demos/nginx-1.14.0/docs/LICENSE rename to examples/nginx-1.14.0/docs/LICENSE diff --git a/demos/nginx-1.14.0/docs/OpenSSL.LICENSE b/examples/nginx-1.14.0/docs/OpenSSL.LICENSE similarity index 100% rename from demos/nginx-1.14.0/docs/OpenSSL.LICENSE rename to examples/nginx-1.14.0/docs/OpenSSL.LICENSE diff --git a/demos/nginx-1.14.0/docs/PCRE.LICENCE b/examples/nginx-1.14.0/docs/PCRE.LICENCE similarity index 100% rename from demos/nginx-1.14.0/docs/PCRE.LICENCE rename to examples/nginx-1.14.0/docs/PCRE.LICENCE diff --git a/demos/nginx-1.14.0/docs/README b/examples/nginx-1.14.0/docs/README similarity index 100% rename from demos/nginx-1.14.0/docs/README rename to examples/nginx-1.14.0/docs/README diff --git a/demos/nginx-1.14.0/docs/zlib.LICENSE b/examples/nginx-1.14.0/docs/zlib.LICENSE similarity index 100% rename from demos/nginx-1.14.0/docs/zlib.LICENSE rename to examples/nginx-1.14.0/docs/zlib.LICENSE diff --git a/demos/nginx-1.14.0/html/50x.html b/examples/nginx-1.14.0/html/50x.html similarity index 51% rename from demos/nginx-1.14.0/html/50x.html rename to examples/nginx-1.14.0/html/50x.html index 1afb814..dee1723 100644 --- a/demos/nginx-1.14.0/html/50x.html +++ b/examples/nginx-1.14.0/html/50x.html @@ -1,21 +1,21 @@ - Error - + Error +

An error occurred.

Sorry, the page you are looking for is currently unavailable.
- Please try again later.

+ Please try again later.

If you are the system administrator of this resource then you should check - the error log for details.

+ the error log for details.

Faithfully yours, nginx.

diff --git a/examples/nginx-1.14.0/html/index.html b/examples/nginx-1.14.0/html/index.html new file mode 100644 index 0000000..ca2fcfc --- /dev/null +++ b/examples/nginx-1.14.0/html/index.html @@ -0,0 +1,25 @@ + + + + Welcome to nginx! + + + +

Welcome to nginx!

+

If you see this page, the nginx web server is successfully installed and + working. Further configuration is required.

+ +

For online documentation and support please refer to + nginx.org.
+ Commercial support is available at + nginx.com.

+ +

Thank you for using nginx.

+ + diff --git a/demos/nginx-1.14.0/nginx-start.bat b/examples/nginx-1.14.0/nginx-start.bat similarity index 100% rename from demos/nginx-1.14.0/nginx-start.bat rename to examples/nginx-1.14.0/nginx-start.bat diff --git a/demos/nginx-1.14.0/nginx-stop.bat b/examples/nginx-1.14.0/nginx-stop.bat similarity index 100% rename from demos/nginx-1.14.0/nginx-stop.bat rename to examples/nginx-1.14.0/nginx-stop.bat diff --git a/demos/nginx-1.14.0/nginx.exe b/examples/nginx-1.14.0/nginx.exe similarity index 100% rename from demos/nginx-1.14.0/nginx.exe rename to examples/nginx-1.14.0/nginx.exe diff --git a/demos/nginx.conf b/examples/nginx.conf similarity index 100% rename from demos/nginx.conf rename to examples/nginx.conf diff --git a/demos/reactadmin/.gitignore b/examples/reactadmin/.gitignore similarity index 100% rename from demos/reactadmin/.gitignore rename to examples/reactadmin/.gitignore diff --git a/demos/reactadmin/README.md b/examples/reactadmin/README.md similarity index 100% rename from demos/reactadmin/README.md rename to examples/reactadmin/README.md diff --git a/demos/reactadmin/package-lock.json b/examples/reactadmin/package-lock.json similarity index 100% rename from demos/reactadmin/package-lock.json rename to examples/reactadmin/package-lock.json diff --git a/examples/reactadmin/package.json b/examples/reactadmin/package.json new file mode 100644 index 0000000..f59a43d --- /dev/null +++ b/examples/reactadmin/package.json @@ -0,0 +1,25 @@ +{ + "name": "react-admin", + "version": "0.1.0", + "private": true, + "dependencies": { + "react": "^16.7.0", + "react-dom": "^16.7.0", + "react-scripts": "2.1.3" + }, + "scripts": { + "start": "react-scripts start", + "build": "react-scripts build", + "test": "react-scripts test", + "eject": "react-scripts eject" + }, + "eslintConfig": { + "extends": "react-app" + }, + "browserslist": [ + ">0.2%", + "not dead", + "not ie <= 11", + "not op_mini all" + ] +} diff --git a/demos/reactadmin/public/favicon.ico b/examples/reactadmin/public/favicon.ico similarity index 100% rename from demos/reactadmin/public/favicon.ico rename to examples/reactadmin/public/favicon.ico diff --git a/examples/reactadmin/public/index.html b/examples/reactadmin/public/index.html new file mode 100644 index 0000000..b934aa5 --- /dev/null +++ b/examples/reactadmin/public/index.html @@ -0,0 +1,41 @@ + + + + + + + + + + + React App + + + +
+ + + diff --git a/examples/reactadmin/public/manifest.json b/examples/reactadmin/public/manifest.json new file mode 100644 index 0000000..952449d --- /dev/null +++ b/examples/reactadmin/public/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "React App", + "name": "Create React App Sample", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/examples/reactadmin/src/App.css b/examples/reactadmin/src/App.css new file mode 100644 index 0000000..9fb43a1 --- /dev/null +++ b/examples/reactadmin/src/App.css @@ -0,0 +1,32 @@ +.App { + text-align: center; +} + +.App-logo { + animation: App-logo-spin infinite 20s linear; + height: 40vmin; +} + +.App-header { + background-color: #282C34; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: calc(10px + 2vmin); + color: white; +} + +.App-link { + color: #61DAFB; +} + +@keyframes App-logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} diff --git a/examples/reactadmin/src/App.js b/examples/reactadmin/src/App.js new file mode 100644 index 0000000..4d3cb2b --- /dev/null +++ b/examples/reactadmin/src/App.js @@ -0,0 +1,35 @@ +import React, { Component } from 'react' +import logo from './logo.svg' +import './App.css' + +class App extends Component { + render() { + return ( + < div + className = 'App' > + < header + className = 'App-header' > + < img + src = { logo } + className = 'App-logo' + alt = 'logo' / > + < p > + Edit < code > src / App.js < /code> and save to reload. + < /p> + < a + className = 'App-link' + href = 'https://reactjs.org' + target = '_blank' + rel = 'noopener noreferrer' + > + Learn + React + < /a> + < /header> + < /div> + ) + + } +} + +export default App diff --git a/examples/reactadmin/src/App.test.js b/examples/reactadmin/src/App.test.js new file mode 100644 index 0000000..9d442bf --- /dev/null +++ b/examples/reactadmin/src/App.test.js @@ -0,0 +1,10 @@ +import ReactDOM from 'react-dom' +import App from './App' + +it('renders without crashing', () => { + const div = document.createElement('div') + ReactDOM.render( < App / >, div +) + + ReactDOM.unmountComponentAtNode(div) +}) diff --git a/examples/reactadmin/src/index.css b/examples/reactadmin/src/index.css new file mode 100644 index 0000000..9c1dfbf --- /dev/null +++ b/examples/reactadmin/src/index.css @@ -0,0 +1,14 @@ +body { + margin: 0; + padding: 0; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", + "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", + sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +code { + font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", + monospace; +} diff --git a/demos/reactadmin/src/index.js b/examples/reactadmin/src/index.js similarity index 100% rename from demos/reactadmin/src/index.js rename to examples/reactadmin/src/index.js diff --git a/examples/reactadmin/src/logo.svg b/examples/reactadmin/src/logo.svg new file mode 100644 index 0000000..1b92809 --- /dev/null +++ b/examples/reactadmin/src/logo.svg @@ -0,0 +1,8 @@ + + + + + + + diff --git a/examples/reactadmin/src/serviceWorker.js b/examples/reactadmin/src/serviceWorker.js new file mode 100644 index 0000000..59cba35 --- /dev/null +++ b/examples/reactadmin/src/serviceWorker.js @@ -0,0 +1,135 @@ +// This optional code is used to register a service worker. +// register() is not called by default. + +// This lets the app load faster on subsequent visits in production, and gives +// it offline capabilities. However, it also means that developers (and users) +// will only see deployed updates on subsequent visits to a page, after all the +// existing tabs open on the page have been closed, since previously cached +// resources are updated in the background. + +// To learn more about the benefits of this model and instructions on how to +// opt-in, read http://bit.ly/CRA-PWA + +const isLocalhost = Boolean( + window.location.hostname === 'localhost' || + // [::1] is the IPv6 localhost address. + window.location.hostname === '[::1]' || + // 127.0.0.1/8 is considered localhost for IPv4. + window.location.hostname.match( + /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ + ) +) + +export function register(config) { + if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { + // The URL constructor is available in all browsers that support SW. + const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href) + if (publicUrl.origin !== window.location.origin) { + // Our service worker won't work if PUBLIC_URL is on a different origin + // from what our page is served on. This might happen if a CDN is used to + // serve assets; see https://github.com/facebook/create-react-app/issues/2374 + return + } + + window.addEventListener('load', () => { + const swUrl = `${process.env.PUBLIC_URL}/service-worker.js` + + if (isLocalhost) { + // This is running on localhost. Let's check if a service worker still exists or not. + checkValidServiceWorker(swUrl, config) + + // Add some additional logging to localhost, pointing developers to the + // service worker/PWA documentation. + navigator.serviceWorker.ready.then(() => { + console.log( + 'This web app is being served cache-first by a service ' + + 'worker. To learn more, visit http://bit.ly/CRA-PWA' + ) + }) + } else { + // Is not localhost. Just register service worker + registerValidSW(swUrl, config) + } + }) + } +} + +function registerValidSW(swUrl, config) { + navigator.serviceWorker + .register(swUrl) + .then(registration => { + registration.onupdatefound = () => { + const installingWorker = registration.installing + if (installingWorker == null) { + return + } + installingWorker.onstatechange = () => { + if (installingWorker.state === 'installed') { + if (navigator.serviceWorker.controller) { + // At this point, the updated precached content has been fetched, + // but the previous service worker will still serve the older + // content until all client tabs are closed. + console.log( + 'New content is available and will be used when all ' + + 'tabs for this page are closed. See http://bit.ly/CRA-PWA.' + ) + + // Execute callback + if (config && config.onUpdate) { + config.onUpdate(registration) + } + } else { + // At this point, everything has been precached. + // It's the perfect time to display a + // "Content is cached for offline use." message. + console.log('Content is cached for offline use.') + + // Execute callback + if (config && config.onSuccess) { + config.onSuccess(registration) + } + } + } + } + } + }) + .catch(error => { + console.error('Error during service worker registration:', error) + }) +} + +function checkValidServiceWorker(swUrl, config) { + // Check if the service worker can be found. If it can't reload the page. + fetch(swUrl) + .then(response => { + // Ensure service worker exists, and that we really are getting a JS file. + const contentType = response.headers.get('content-type') + if ( + response.status === 404 || + (contentType != null && contentType.indexOf('javascript') === -1) + ) { + // No service worker found. Probably a different app. Reload the page. + navigator.serviceWorker.ready.then(registration => { + registration.unregister().then(() => { + window.location.reload() + }) + }) + } else { + // Service worker found. Proceed as normal. + registerValidSW(swUrl, config) + } + }) + .catch(() => { + console.log( + 'No internet connection found. App is running in offline mode.' + ) + }) +} + +export function unregister() { + if ('serviceWorker' in navigator) { + navigator.serviceWorker.ready.then(registration => { + registration.unregister() + }) + } +} diff --git a/demos/reactadmin/yarn.lock b/examples/reactadmin/yarn.lock similarity index 100% rename from demos/reactadmin/yarn.lock rename to examples/reactadmin/yarn.lock diff --git a/demos/reactapp/.babelrc b/examples/reactapp/.babelrc similarity index 100% rename from demos/reactapp/.babelrc rename to examples/reactapp/.babelrc diff --git a/demos/reactapp/.editorconfig b/examples/reactapp/.editorconfig similarity index 100% rename from demos/reactapp/.editorconfig rename to examples/reactapp/.editorconfig diff --git a/demos/reactapp/.eslintrc b/examples/reactapp/.eslintrc similarity index 100% rename from demos/reactapp/.eslintrc rename to examples/reactapp/.eslintrc diff --git a/demos/reactapp/.gitattributes b/examples/reactapp/.gitattributes similarity index 100% rename from demos/reactapp/.gitattributes rename to examples/reactapp/.gitattributes diff --git a/demos/reactapp/.gitignore b/examples/reactapp/.gitignore similarity index 100% rename from demos/reactapp/.gitignore rename to examples/reactapp/.gitignore diff --git a/demos/reactapp/config/app.config.js b/examples/reactapp/config/app.config.js similarity index 100% rename from demos/reactapp/config/app.config.js rename to examples/reactapp/config/app.config.js diff --git a/demos/reactapp/config/webpack.config.base.js b/examples/reactapp/config/webpack.config.base.js similarity index 100% rename from demos/reactapp/config/webpack.config.base.js rename to examples/reactapp/config/webpack.config.base.js diff --git a/demos/reactapp/config/webpack.config.dev.js b/examples/reactapp/config/webpack.config.dev.js similarity index 100% rename from demos/reactapp/config/webpack.config.dev.js rename to examples/reactapp/config/webpack.config.dev.js diff --git a/demos/reactapp/config/webpack.config.prod.js b/examples/reactapp/config/webpack.config.prod.js similarity index 100% rename from demos/reactapp/config/webpack.config.prod.js rename to examples/reactapp/config/webpack.config.prod.js diff --git a/demos/reactapp/package.json b/examples/reactapp/package.json similarity index 100% rename from demos/reactapp/package.json rename to examples/reactapp/package.json diff --git a/demos/reactapp/public/favicon.ico b/examples/reactapp/public/favicon.ico similarity index 100% rename from demos/reactapp/public/favicon.ico rename to examples/reactapp/public/favicon.ico diff --git a/demos/reactapp/public/index.html b/examples/reactapp/public/index.html similarity index 100% rename from demos/reactapp/public/index.html rename to examples/reactapp/public/index.html diff --git a/demos/reactapp/scripts/build.sh b/examples/reactapp/scripts/build.sh similarity index 100% rename from demos/reactapp/scripts/build.sh rename to examples/reactapp/scripts/build.sh diff --git a/demos/reactapp/src/common/apiutils/ajaxCommon.js b/examples/reactapp/src/common/apiutils/ajaxCommon.js similarity index 99% rename from demos/reactapp/src/common/apiutils/ajaxCommon.js rename to examples/reactapp/src/common/apiutils/ajaxCommon.js index c388f24..8842903 100644 --- a/demos/reactapp/src/common/apiutils/ajaxCommon.js +++ b/examples/reactapp/src/common/apiutils/ajaxCommon.js @@ -92,7 +92,7 @@ function _showAuthError() { { /* 否则在 当前页登陆 。 */ } < /p>), }) - + } /** diff --git a/demos/reactapp/src/common/apiutils/apiCreator.js b/examples/reactapp/src/common/apiutils/apiCreator.js similarity index 100% rename from demos/reactapp/src/common/apiutils/apiCreator.js rename to examples/reactapp/src/common/apiutils/apiCreator.js diff --git a/demos/reactapp/src/common/apiutils/errorUtils.js b/examples/reactapp/src/common/apiutils/errorUtils.js similarity index 100% rename from demos/reactapp/src/common/apiutils/errorUtils.js rename to examples/reactapp/src/common/apiutils/errorUtils.js diff --git a/demos/reactapp/src/common/apiutils/fetchAJAX.js b/examples/reactapp/src/common/apiutils/fetchAJAX.js similarity index 100% rename from demos/reactapp/src/common/apiutils/fetchAJAX.js rename to examples/reactapp/src/common/apiutils/fetchAJAX.js diff --git a/demos/reactapp/src/common/apiutils/index.js b/examples/reactapp/src/common/apiutils/index.js similarity index 100% rename from demos/reactapp/src/common/apiutils/index.js rename to examples/reactapp/src/common/apiutils/index.js diff --git a/demos/reactapp/src/common/apiutils/reqwestAJAX.js b/examples/reactapp/src/common/apiutils/reqwestAJAX.js similarity index 100% rename from demos/reactapp/src/common/apiutils/reqwestAJAX.js rename to examples/reactapp/src/common/apiutils/reqwestAJAX.js diff --git a/demos/reactapp/src/components/index.js b/examples/reactapp/src/components/index.js similarity index 100% rename from demos/reactapp/src/components/index.js rename to examples/reactapp/src/components/index.js diff --git a/demos/reactapp/src/components/layout/Breadcrumb/Breadcrumb.jsx b/examples/reactapp/src/components/layout/Breadcrumb/Breadcrumb.jsx similarity index 100% rename from demos/reactapp/src/components/layout/Breadcrumb/Breadcrumb.jsx rename to examples/reactapp/src/components/layout/Breadcrumb/Breadcrumb.jsx diff --git a/demos/reactapp/src/components/layout/Breadcrumb/Breadcrumb.less b/examples/reactapp/src/components/layout/Breadcrumb/Breadcrumb.less similarity index 100% rename from demos/reactapp/src/components/layout/Breadcrumb/Breadcrumb.less rename to examples/reactapp/src/components/layout/Breadcrumb/Breadcrumb.less diff --git a/demos/reactapp/src/components/layout/Content/Content.jsx b/examples/reactapp/src/components/layout/Content/Content.jsx similarity index 100% rename from demos/reactapp/src/components/layout/Content/Content.jsx rename to examples/reactapp/src/components/layout/Content/Content.jsx diff --git a/demos/reactapp/src/components/layout/Content/Content.less b/examples/reactapp/src/components/layout/Content/Content.less similarity index 100% rename from demos/reactapp/src/components/layout/Content/Content.less rename to examples/reactapp/src/components/layout/Content/Content.less diff --git a/demos/reactapp/src/components/layout/Footer/Footer.jsx b/examples/reactapp/src/components/layout/Footer/Footer.jsx similarity index 100% rename from demos/reactapp/src/components/layout/Footer/Footer.jsx rename to examples/reactapp/src/components/layout/Footer/Footer.jsx diff --git a/demos/reactapp/src/components/layout/Footer/index.less b/examples/reactapp/src/components/layout/Footer/index.less similarity index 100% rename from demos/reactapp/src/components/layout/Footer/index.less rename to examples/reactapp/src/components/layout/Footer/index.less diff --git a/demos/reactapp/src/components/layout/Header/Header.jsx b/examples/reactapp/src/components/layout/Header/Header.jsx similarity index 100% rename from demos/reactapp/src/components/layout/Header/Header.jsx rename to examples/reactapp/src/components/layout/Header/Header.jsx diff --git a/demos/reactapp/src/components/layout/Header/Header.less b/examples/reactapp/src/components/layout/Header/Header.less similarity index 100% rename from demos/reactapp/src/components/layout/Header/Header.less rename to examples/reactapp/src/components/layout/Header/Header.less diff --git a/demos/reactapp/src/components/layout/Sidebar/Sidebar.jsx b/examples/reactapp/src/components/layout/Sidebar/Sidebar.jsx similarity index 100% rename from demos/reactapp/src/components/layout/Sidebar/Sidebar.jsx rename to examples/reactapp/src/components/layout/Sidebar/Sidebar.jsx diff --git a/demos/reactapp/src/components/layout/Sidebar/Sidebar.less b/examples/reactapp/src/components/layout/Sidebar/Sidebar.less similarity index 100% rename from demos/reactapp/src/components/layout/Sidebar/Sidebar.less rename to examples/reactapp/src/components/layout/Sidebar/Sidebar.less diff --git a/demos/reactapp/src/components/layout/Sidebar/antd.svg b/examples/reactapp/src/components/layout/Sidebar/antd.svg similarity index 100% rename from demos/reactapp/src/components/layout/Sidebar/antd.svg rename to examples/reactapp/src/components/layout/Sidebar/antd.svg diff --git a/demos/reactapp/src/containers/Core/CoreContainer.jsx b/examples/reactapp/src/containers/Core/CoreContainer.jsx similarity index 100% rename from demos/reactapp/src/containers/Core/CoreContainer.jsx rename to examples/reactapp/src/containers/Core/CoreContainer.jsx diff --git a/demos/reactapp/src/containers/Core/CoreContainer.less b/examples/reactapp/src/containers/Core/CoreContainer.less similarity index 100% rename from demos/reactapp/src/containers/Core/CoreContainer.less rename to examples/reactapp/src/containers/Core/CoreContainer.less diff --git a/demos/reactapp/src/containers/Core/package.json b/examples/reactapp/src/containers/Core/package.json similarity index 100% rename from demos/reactapp/src/containers/Core/package.json rename to examples/reactapp/src/containers/Core/package.json diff --git a/demos/reactapp/src/containers/Root/ReduxDevTools.jsx b/examples/reactapp/src/containers/Root/ReduxDevTools.jsx similarity index 100% rename from demos/reactapp/src/containers/Root/ReduxDevTools.jsx rename to examples/reactapp/src/containers/Root/ReduxDevTools.jsx diff --git a/demos/reactapp/src/containers/Root/RootContainer.dev.jsx b/examples/reactapp/src/containers/Root/RootContainer.dev.jsx similarity index 100% rename from demos/reactapp/src/containers/Root/RootContainer.dev.jsx rename to examples/reactapp/src/containers/Root/RootContainer.dev.jsx diff --git a/demos/reactapp/src/containers/Root/RootContainer.jsx b/examples/reactapp/src/containers/Root/RootContainer.jsx similarity index 100% rename from demos/reactapp/src/containers/Root/RootContainer.jsx rename to examples/reactapp/src/containers/Root/RootContainer.jsx diff --git a/demos/reactapp/src/containers/Root/RootContainer.prod.jsx b/examples/reactapp/src/containers/Root/RootContainer.prod.jsx similarity index 100% rename from demos/reactapp/src/containers/Root/RootContainer.prod.jsx rename to examples/reactapp/src/containers/Root/RootContainer.prod.jsx diff --git a/demos/reactapp/src/index.jsx b/examples/reactapp/src/index.jsx similarity index 100% rename from demos/reactapp/src/index.jsx rename to examples/reactapp/src/index.jsx diff --git a/demos/reactapp/src/redux/actions/auth.js b/examples/reactapp/src/redux/actions/auth.js similarity index 100% rename from demos/reactapp/src/redux/actions/auth.js rename to examples/reactapp/src/redux/actions/auth.js diff --git a/demos/reactapp/src/redux/actions/menu.js b/examples/reactapp/src/redux/actions/menu.js similarity index 100% rename from demos/reactapp/src/redux/actions/menu.js rename to examples/reactapp/src/redux/actions/menu.js diff --git a/demos/reactapp/src/redux/constants/authActionType.js b/examples/reactapp/src/redux/constants/authActionType.js similarity index 100% rename from demos/reactapp/src/redux/constants/authActionType.js rename to examples/reactapp/src/redux/constants/authActionType.js diff --git a/demos/reactapp/src/redux/constants/commonActionTypes.js b/examples/reactapp/src/redux/constants/commonActionTypes.js similarity index 100% rename from demos/reactapp/src/redux/constants/commonActionTypes.js rename to examples/reactapp/src/redux/constants/commonActionTypes.js diff --git a/demos/reactapp/src/redux/constants/menuActionType.js b/examples/reactapp/src/redux/constants/menuActionType.js similarity index 100% rename from demos/reactapp/src/redux/constants/menuActionType.js rename to examples/reactapp/src/redux/constants/menuActionType.js diff --git a/demos/reactapp/src/redux/middlewares/promiseMiddleware.js b/examples/reactapp/src/redux/middlewares/promiseMiddleware.js similarity index 100% rename from demos/reactapp/src/redux/middlewares/promiseMiddleware.js rename to examples/reactapp/src/redux/middlewares/promiseMiddleware.js diff --git a/demos/reactapp/src/redux/reducers/auth.js b/examples/reactapp/src/redux/reducers/auth.js similarity index 100% rename from demos/reactapp/src/redux/reducers/auth.js rename to examples/reactapp/src/redux/reducers/auth.js diff --git a/demos/reactapp/src/redux/reducers/index.js b/examples/reactapp/src/redux/reducers/index.js similarity index 100% rename from demos/reactapp/src/redux/reducers/index.js rename to examples/reactapp/src/redux/reducers/index.js diff --git a/demos/reactapp/src/redux/reducers/menu.js b/examples/reactapp/src/redux/reducers/menu.js similarity index 100% rename from demos/reactapp/src/redux/reducers/menu.js rename to examples/reactapp/src/redux/reducers/menu.js diff --git a/demos/reactapp/src/redux/store/configureStore.dev.js b/examples/reactapp/src/redux/store/configureStore.dev.js similarity index 100% rename from demos/reactapp/src/redux/store/configureStore.dev.js rename to examples/reactapp/src/redux/store/configureStore.dev.js diff --git a/demos/reactapp/src/redux/store/configureStore.js b/examples/reactapp/src/redux/store/configureStore.js similarity index 100% rename from demos/reactapp/src/redux/store/configureStore.js rename to examples/reactapp/src/redux/store/configureStore.js diff --git a/demos/reactapp/src/redux/store/configureStore.prod.js b/examples/reactapp/src/redux/store/configureStore.prod.js similarity index 100% rename from demos/reactapp/src/redux/store/configureStore.prod.js rename to examples/reactapp/src/redux/store/configureStore.prod.js diff --git a/demos/reactapp/src/routes/index.jsx b/examples/reactapp/src/routes/index.jsx similarity index 100% rename from demos/reactapp/src/routes/index.jsx rename to examples/reactapp/src/routes/index.jsx diff --git a/demos/reactapp/src/utils/asyncLoadHOC.js b/examples/reactapp/src/utils/asyncLoadHOC.js similarity index 100% rename from demos/reactapp/src/utils/asyncLoadHOC.js rename to examples/reactapp/src/utils/asyncLoadHOC.js diff --git a/demos/reactapp/src/utils/authHOC.jsx b/examples/reactapp/src/utils/authHOC.jsx similarity index 100% rename from demos/reactapp/src/utils/authHOC.jsx rename to examples/reactapp/src/utils/authHOC.jsx diff --git a/demos/reactapp/src/utils/http.js b/examples/reactapp/src/utils/http.js similarity index 100% rename from demos/reactapp/src/utils/http.js rename to examples/reactapp/src/utils/http.js diff --git a/demos/reactapp/src/utils/index.jsx b/examples/reactapp/src/utils/index.jsx similarity index 100% rename from demos/reactapp/src/utils/index.jsx rename to examples/reactapp/src/utils/index.jsx diff --git a/demos/reactapp/src/views/pages/home/Home.jsx b/examples/reactapp/src/views/pages/home/Home.jsx similarity index 100% rename from demos/reactapp/src/views/pages/home/Home.jsx rename to examples/reactapp/src/views/pages/home/Home.jsx diff --git a/demos/reactapp/src/views/pages/home/Home.less b/examples/reactapp/src/views/pages/home/Home.less similarity index 100% rename from demos/reactapp/src/views/pages/home/Home.less rename to examples/reactapp/src/views/pages/home/Home.less diff --git a/demos/reactadmin/src/logo.svg b/examples/reactapp/src/views/pages/home/logo.svg similarity index 100% rename from demos/reactadmin/src/logo.svg rename to examples/reactapp/src/views/pages/home/logo.svg diff --git a/demos/reactapp/src/views/pages/login/Login.jsx b/examples/reactapp/src/views/pages/login/Login.jsx similarity index 100% rename from demos/reactapp/src/views/pages/login/Login.jsx rename to examples/reactapp/src/views/pages/login/Login.jsx diff --git a/demos/reactapp/src/views/pages/login/Login.less b/examples/reactapp/src/views/pages/login/Login.less similarity index 100% rename from demos/reactapp/src/views/pages/login/Login.less rename to examples/reactapp/src/views/pages/login/Login.less diff --git a/demos/reactapp/src/views/pages/login/bg.jpg b/examples/reactapp/src/views/pages/login/bg.jpg similarity index 100% rename from demos/reactapp/src/views/pages/login/bg.jpg rename to examples/reactapp/src/views/pages/login/bg.jpg diff --git a/demos/reactapp/src/views/pages/login/login-logo.png b/examples/reactapp/src/views/pages/login/login-logo.png similarity index 100% rename from demos/reactapp/src/views/pages/login/login-logo.png rename to examples/reactapp/src/views/pages/login/login-logo.png diff --git a/demos/reactapp/src/views/pages/mail/Mailbox.jsx b/examples/reactapp/src/views/pages/mail/Mailbox.jsx similarity index 100% rename from demos/reactapp/src/views/pages/mail/Mailbox.jsx rename to examples/reactapp/src/views/pages/mail/Mailbox.jsx diff --git a/demos/reactapp/src/views/pages/user/User.jsx b/examples/reactapp/src/views/pages/user/User.jsx similarity index 100% rename from demos/reactapp/src/views/pages/user/User.jsx rename to examples/reactapp/src/views/pages/user/User.jsx diff --git a/demos/reactapp/src/views/pages/user/User.less b/examples/reactapp/src/views/pages/user/User.less similarity index 100% rename from demos/reactapp/src/views/pages/user/User.less rename to examples/reactapp/src/views/pages/user/User.less diff --git a/demos/reactapp/src/webapi/mock/index.js b/examples/reactapp/src/webapi/mock/index.js similarity index 100% rename from demos/reactapp/src/webapi/mock/index.js rename to examples/reactapp/src/webapi/mock/index.js diff --git a/demos/reactapp/src/webapi/mock/menu.js b/examples/reactapp/src/webapi/mock/menu.js similarity index 100% rename from demos/reactapp/src/webapi/mock/menu.js rename to examples/reactapp/src/webapi/mock/menu.js diff --git a/demos/reactapp/src/webapi/mock/user.js b/examples/reactapp/src/webapi/mock/user.js similarity index 100% rename from demos/reactapp/src/webapi/mock/user.js rename to examples/reactapp/src/webapi/mock/user.js diff --git a/demos/reactapp/src/webapi/package.json b/examples/reactapp/src/webapi/package.json similarity index 100% rename from demos/reactapp/src/webapi/package.json rename to examples/reactapp/src/webapi/package.json diff --git a/demos/reactapp/src/webapi/webapi.js b/examples/reactapp/src/webapi/webapi.js similarity index 100% rename from demos/reactapp/src/webapi/webapi.js rename to examples/reactapp/src/webapi/webapi.js diff --git a/demos/scripts/build-javaapp.bat b/examples/scripts/build-javaapp.bat similarity index 100% rename from demos/scripts/build-javaapp.bat rename to examples/scripts/build-javaapp.bat diff --git a/demos/scripts/build-reactadmin.bat b/examples/scripts/build-reactadmin.bat similarity index 100% rename from demos/scripts/build-reactadmin.bat rename to examples/scripts/build-reactadmin.bat diff --git a/demos/scripts/build-reactapp.bat b/examples/scripts/build-reactapp.bat similarity index 100% rename from demos/scripts/build-reactapp.bat rename to examples/scripts/build-reactapp.bat diff --git a/demos/scripts/demo01-start.bat b/examples/scripts/demo01-start.bat similarity index 100% rename from demos/scripts/demo01-start.bat rename to examples/scripts/demo01-start.bat diff --git a/demos/scripts/demo02-start.bat b/examples/scripts/demo02-start.bat similarity index 100% rename from demos/scripts/demo02-start.bat rename to examples/scripts/demo02-start.bat diff --git a/demos/scripts/demo03-start.bat b/examples/scripts/demo03-start.bat similarity index 100% rename from demos/scripts/demo03-start.bat rename to examples/scripts/demo03-start.bat diff --git a/demos/scripts/demo04-start.bat b/examples/scripts/demo04-start.bat similarity index 100% rename from demos/scripts/demo04-start.bat rename to examples/scripts/demo04-start.bat diff --git a/demos/scripts/demo05-start.bat b/examples/scripts/demo05-start.bat similarity index 100% rename from demos/scripts/demo05-start.bat rename to examples/scripts/demo05-start.bat diff --git a/demos/scripts/demo06-start.bat b/examples/scripts/demo06-start.bat similarity index 100% rename from demos/scripts/demo06-start.bat rename to examples/scripts/demo06-start.bat diff --git a/demos/scripts/startup.sh b/examples/scripts/startup.sh similarity index 100% rename from demos/scripts/startup.sh rename to examples/scripts/startup.sh