├── .gitattributes ├── .gitignore ├── admin ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── connext │ │ │ └── zm │ │ │ ├── ZmApplication.java │ │ │ ├── config │ │ │ ├── MyCommandLineRunner.java │ │ │ └── WebSecurityConfig.java │ │ │ ├── controller │ │ │ ├── IndexControl.java │ │ │ ├── RecordControl.java │ │ │ └── UserController.java │ │ │ ├── dao │ │ │ ├── AuthorityRepository.java │ │ │ ├── RecordRepository.java │ │ │ └── UserRepository.java │ │ │ ├── entity │ │ │ ├── Authority.java │ │ │ ├── Record.java │ │ │ └── User.java │ │ │ ├── service │ │ │ ├── AuthorityService.java │ │ │ ├── RecordService.java │ │ │ ├── UserService.java │ │ │ └── impl │ │ │ │ ├── RecordServiceImpl.java │ │ │ │ ├── UserDetailServiceImpl.java │ │ │ │ └── UserServiceImpl.java │ │ │ └── util │ │ │ ├── Data.java │ │ │ ├── Orientation.java │ │ │ ├── SerialUtil.java │ │ │ └── TwoWaySerialComm.java │ └── resources │ │ ├── application.yml │ │ ├── static │ │ ├── css │ │ │ ├── app.74f4f332.css │ │ │ └── login.css │ │ ├── favicon.ico │ │ ├── fonts │ │ │ ├── element-icons.2fad952a.woff │ │ │ └── element-icons.6f0a7632.ttf │ │ ├── images │ │ │ ├── 1.jpg │ │ │ ├── 2.jpg │ │ │ └── 3.jpg │ │ ├── js │ │ │ ├── about.8400eabb.js │ │ │ ├── about.8400eabb.js.map │ │ │ ├── app.08209abe.js │ │ │ ├── app.08209abe.js.map │ │ │ ├── chunk-vendors.1068027b.js │ │ │ └── chunk-vendors.1068027b.js.map │ │ └── vue │ │ │ ├── axios.min.js │ │ │ ├── ele.css │ │ │ ├── fonts │ │ │ ├── element-icons.ttf │ │ │ └── element-icons.woff │ │ │ ├── login.js │ │ │ └── vue.js │ │ └── templates │ │ ├── index.html │ │ └── login.html │ └── test │ └── java │ └── com │ └── connext │ └── zm │ ├── ZmApplicationTests.java │ └── service │ ├── RecordServiceTest.java │ └── UserServiceTest.java ├── backoffice ├── .idea │ ├── backoffice.iml │ ├── encodings.xml │ ├── inspectionProfiles │ │ └── Project_Default.xml │ ├── misc.xml │ ├── modules.xml │ ├── vcs.xml │ └── workspace.xml ├── README.md ├── babel.config.js ├── dist │ ├── css │ │ └── app.74f4f332.css │ ├── favicon.ico │ ├── fonts │ │ ├── element-icons.2fad952a.woff │ │ └── element-icons.6f0a7632.ttf │ ├── index.html │ └── js │ │ ├── about.8400eabb.js │ │ ├── about.8400eabb.js.map │ │ ├── app.08209abe.js │ │ ├── app.08209abe.js.map │ │ ├── chunk-vendors.1068027b.js │ │ └── chunk-vendors.1068027b.js.map ├── package-lock.json ├── package.json ├── public │ ├── favicon.ico │ └── index.html └── src │ ├── App.vue │ ├── assets │ ├── echarts.common.min.js │ └── logo.png │ ├── components │ └── menu_left.vue │ ├── element-variables.scss │ ├── main.js │ ├── plugins │ ├── axios.js │ └── element.js │ ├── router.js │ └── views │ ├── Home.vue │ ├── Remote.vue │ ├── addUser.vue │ ├── recordList.vue │ └── user.vue ├── doc ├── 任务书 │ └── 交通灯任务书.doc ├── 仿真图 │ ├── Last Loaded 交通灯.DBK │ ├── 交通灯.DSN │ └── 交通灯.PWI ├── 使用前必读.doc ├── 元件清单 │ └── 245驱动交通灯原件清单.doc ├── 制作详解 │ ├── 0.36两位数码管 │ │ ├── 0.362引脚标号.png │ │ ├── 引脚图.png │ │ └── 引脚标号和段.png │ ├── DC电源插口 │ │ ├── CON2为电源插针(电路中可以不接).jpg │ │ ├── DC电源接口及开关(简易版).jpg │ │ ├── DC电源插口内部透视图.jpg │ │ ├── DC电源插口原理图.jpg │ │ ├── DC电源插口原理图介绍说明.txt │ │ └── DC电源插口硬件图.jpg │ ├── 三极管 │ │ ├── NPN型原理图.jpg │ │ ├── PNP型原理图.jpg │ │ ├── 三极管介绍.txt │ │ └── 三极管引脚介绍.jpg │ ├── 上拉排阻 │ │ ├── 8个电阻组成的上拉电阻.jpg │ │ ├── 上拉电阻介绍.txt │ │ ├── 单片机使用上拉电阻及作用.doc │ │ ├── 排阻上拉电阻.jpg │ │ ├── 排阻上拉电阻原理图.jpg │ │ └── 排阻的识别.jpg │ ├── 供电方式 │ │ ├── DC插头.jpg │ │ ├── USB电源线.jpg │ │ └── 电池盒.jpg │ ├── 各种电阻、贴片、可调电阻焊接方法 │ │ ├── 光敏电阻.jpg │ │ ├── 可调电阻.jpg │ │ ├── 可调电阻焊接方法.doc │ │ ├── 电位器.jpg │ │ ├── 电路图中的光敏电阻.jpg │ │ ├── 色环电阻.jpg │ │ ├── 贴片电阻.jpg │ │ └── 贴片电阻焊接方法.doc │ ├── 自锁开关 │ │ ├── 自锁开关原理图.jpg │ │ ├── 自锁开关硬件图.jpg │ │ └── 自锁开关说明.txt │ └── 轻触按键 │ │ ├── 图.png │ │ ├── 按键原理图.jpg │ │ ├── 按键解析图.jpg │ │ ├── 按键解析图标注.jpg │ │ └── 轻触按键实物图.jpg ├── 原理图和PCB图 │ ├── 99s │ │ ├── BACKUP OF SHEET2.SCH │ │ ├── Previous Backup of Sheet2.Sch │ │ ├── 交通灯控制系统加蜂鸣器.Bkp │ │ └── 交通灯控制系统加蜂鸣器.ddb │ ├── DXP │ │ ├── BACKUP OF SHEET2.SCH │ │ ├── BACKUP OF SHEET2.SCHPreview │ │ └── History │ │ │ ├── BACKUP OF SHEET2.~(1).SCH │ │ │ └── BACKUP OF SHEET2.~(2).SCH │ ├── pcb源文件 │ │ ├── 1.pdf │ │ ├── Backup of PCB1.PCB │ │ ├── Backup of Sheet2.Sch │ │ ├── Previous Backup of PCB1.PCB │ │ ├── 交通灯控制系统加蜂鸣器.Bkp │ │ ├── 交通灯控制系统加蜂鸣器.ddb │ │ ├── 焊接图.pdf │ │ └── 飞线说明.jpg │ ├── 原理图.doc │ └── 原理图.pdf ├── 参考论文 │ ├── 19-答辩常见问题合集 │ │ ├── 答辩常见问题合集.doc │ │ ├── 答辩常见问题解答.doc │ │ └── 答辩技巧大全.doc │ ├── 2-正版+更新+单片机交通灯控制.doc │ ├── 加蜂鸣器 2-正版+更新+单片机交通灯控制.doc │ ├── 单片机交通灯控制_毕业设计.doc │ ├── 基于单片机的交通灯设计论文.doc │ └── 硬件框图.docx ├── 参考资料 │ ├── 18-调试讲解和焊接注意事项 │ │ └── 调试讲解和焊接注意事项.txt │ ├── 74HC245.pdf │ ├── AT89C51.pdf │ ├── AT89S51.doc │ ├── AT89S52的中文资料.doc │ ├── STC89C51.pdf │ ├── STC89C51应用介绍.pdf │ ├── STC89C52单片机.doc │ ├── at89c52.docx │ ├── stc89c52单片机.pdf │ ├── 红外光电传感器.txt │ └── 红外光电传感器E18-D50NK.txt ├── 实物图 │ ├── IMG_0430.JPG │ ├── IMG_0431.JPG │ ├── IMG_0432.JPG │ ├── IMG_0433.JPG │ ├── IMG_0434.JPG │ ├── 样品2(1).JPG │ ├── 样品2(2).JPG │ └── 说明.JPG ├── 开题报告 │ └── 开题报告.doc ├── 操作视频 │ ├── 2-交通灯原理图介绍.wmv │ ├── 51单片机仿真中最小系统.txt │ ├── 51单片机原理图中最小系统介绍.txt │ ├── 51单片机最小系统电路相关知识.docx │ └── 基于51单片机的智能交通灯系统设计 车流量检测 红绿灯设计 交通灯红外检测.mp4.16524405 ├── 相关软件下载与教程 │ ├── 300个仿真例程.txt │ ├── 51单片机初学者视频.txt │ ├── AD教程.txt │ ├── Altium Designer 15.txt │ ├── Altium Designer 6.9 原理图 PCB图建议安装这个打开.txt │ ├── Altium Designer Sunner画图软件学习视频.txt │ ├── AltiumDesignerSummer9 画图软件.txt │ ├── C语言学习资料.txt │ ├── C语言视频教程.txt │ ├── Keil软件安装.txt │ ├── Protel99Se 软件.txt │ ├── Protel99Se教学视频.txt │ ├── 下载程序及其驱动.txt │ ├── 串口下载程序软件stc.txt │ ├── 仿真教程.txt │ ├── 仿真软件proteus7.8.txt │ ├── 单片机十天征服你视频教程及课件.txt │ ├── 单片机辅助开发工具.txt │ ├── 各类学习视频链接.txt │ ├── 画图软件protel99se.txt │ ├── 相关软件---百度云盘下载地址.doc │ ├── 答辩PPT模板.txt │ └── 编写c程序软件keil4.txt ├── 程序 │ ├── STARTUP.A51 │ ├── STARTUP.LST │ ├── STARTUP.OBJ │ ├── jtd │ ├── jtd.LST │ ├── jtd.M51 │ ├── jtd.OBJ │ ├── jtd.c │ ├── jtd.hex │ ├── jtd.lnp │ ├── jtd.plg │ ├── jtd.uvopt │ ├── jtd.uvproj │ ├── jtd_uvopt.bak │ └── jtd_uvproj.bak └── 答辩技巧 │ ├── 点阵板焊接技巧.pdf │ ├── 答辩常见问题合集.txt │ └── 答辩技巧大全.doc ├── install └── mfz-rxtx-2.2-20081207-win-x64 │ ├── BuildProperties.txt │ ├── Install.txt │ ├── RXTXcomm.jar │ ├── Readme.txt │ ├── ReleaseNotes.txt │ ├── rxtxParallel.dll │ └── rxtxSerial.dll ├── master ├── keil │ ├── STARTUP.A51 │ ├── STARTUP.LST │ ├── STARTUP.OBJ │ ├── main.LST │ ├── main.OBJ │ ├── main.c │ ├── main.c.orig │ ├── zm │ ├── zm.M51 │ ├── zm.hex │ ├── zm.lnp │ ├── zm.omf │ ├── zm.uvgui.Mengchao.Lv │ ├── zm.uvgui.Mengchao_Lv.bak │ ├── zm.uvgui.c │ ├── zm.uvgui_c.bak │ ├── zm.uvopt │ └── zm.uvproj └── proteus │ ├── Backup Of zm.DBK │ ├── Last Loaded zm.DBK │ ├── zm.DSN │ └── zm.PWI ├── nginx-1.15.9 ├── conf │ ├── fastcgi.conf │ ├── fastcgi_params │ ├── koi-utf │ ├── koi-win │ ├── mime.types │ ├── nginx.conf │ ├── scgi_params │ ├── uwsgi_params │ └── win-utf ├── contrib │ ├── README │ ├── geo2nginx.pl │ ├── unicode2nginx │ │ ├── koi-utf │ │ ├── unicode-to-nginx.pl │ │ └── win-utf │ └── vim │ │ ├── ftdetect │ │ └── nginx.vim │ │ ├── ftplugin │ │ └── nginx.vim │ │ ├── indent │ │ └── nginx.vim │ │ └── syntax │ │ └── nginx.vim ├── docs │ ├── CHANGES │ ├── CHANGES.ru │ ├── LICENSE │ ├── OpenSSL.LICENSE │ ├── PCRE.LICENCE │ ├── README │ └── zlib.LICENSE ├── html │ ├── 50x.html │ └── index.html ├── logs │ ├── access.log │ ├── error.log │ └── nginx.pid └── nginx.exe ├── source ├── 仿真图 │ ├── Last Loaded 交通灯.DBK │ ├── 交通灯.DSN │ └── 交通灯.PWI └── 程序 │ ├── STARTUP.A51 │ ├── STARTUP.LST │ ├── STARTUP.OBJ │ ├── jtd.LST │ ├── jtd.M51 │ ├── jtd.c │ ├── jtd.hex │ ├── jtd.lnp │ ├── jtd.plg │ ├── jtd.uvgui.Mengchao.Lv │ ├── jtd.uvgui.Mengchao_Lv.bak │ ├── jtd.uvgui.c │ ├── jtd.uvgui_c.bak │ ├── jtd.uvopt │ ├── jtd.uvproj │ ├── jtd_uvopt.bak │ └── jtd_uvproj.bak └── test ├── 1.c ├── STARTUP.A51 ├── STARTUP.LST ├── STARTUP.OBJ ├── test ├── test.LST ├── test.M51 ├── test.OBJ ├── test.c ├── test.c.orig ├── test.hex ├── test.lnp ├── test.plg ├── test.uvgui.Mengchao.Lv ├── test.uvgui.Mengchao_Lv.bak ├── test.uvgui.c ├── test.uvgui.c.orig ├── test.uvgui_c.bak ├── test.uvopt └── test.uvproj /.gitattributes: -------------------------------------------------------------------------------- 1 | *.js linguist-language=C 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.lnk 2 | *.mp4 3 | *.plg 4 | eclipse 5 | backoffice/node_modules 6 | -------------------------------------------------------------------------------- /admin/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | /target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | 5 | ### STS ### 6 | .apt_generated 7 | .classpath 8 | .factorypath 9 | .project 10 | .settings 11 | .springBeans 12 | .sts4-cache 13 | 14 | ### IntelliJ IDEA ### 15 | .idea 16 | *.iws 17 | *.iml 18 | *.ipr 19 | 20 | ### NetBeans ### 21 | /nbproject/private/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ 26 | /build/ 27 | 28 | ### VS Code ### 29 | .vscode/ 30 | -------------------------------------------------------------------------------- /admin/.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | https://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | import java.io.File; 21 | import java.io.FileInputStream; 22 | import java.io.FileOutputStream; 23 | import java.io.IOException; 24 | import java.net.URL; 25 | import java.nio.channels.Channels; 26 | import java.nio.channels.ReadableByteChannel; 27 | import java.util.Properties; 28 | 29 | public class MavenWrapperDownloader { 30 | 31 | /** 32 | * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided. 33 | */ 34 | private static final String DEFAULT_DOWNLOAD_URL = 35 | "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"; 36 | 37 | /** 38 | * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to 39 | * use instead of the default one. 40 | */ 41 | private static final String MAVEN_WRAPPER_PROPERTIES_PATH = 42 | ".mvn/wrapper/maven-wrapper.properties"; 43 | 44 | /** 45 | * Path where the maven-wrapper.jar will be saved to. 46 | */ 47 | private static final String MAVEN_WRAPPER_JAR_PATH = 48 | ".mvn/wrapper/maven-wrapper.jar"; 49 | 50 | /** 51 | * Name of the property which should be used to override the default download url for the wrapper. 52 | */ 53 | private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl"; 54 | 55 | public static void main(String args[]) { 56 | System.out.println("- Downloader started"); 57 | File baseDirectory = new File(args[0]); 58 | System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath()); 59 | 60 | // If the maven-wrapper.properties exists, read it and check if it contains a custom 61 | // wrapperUrl parameter. 62 | File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); 63 | String url = DEFAULT_DOWNLOAD_URL; 64 | if (mavenWrapperPropertyFile.exists()) { 65 | FileInputStream mavenWrapperPropertyFileInputStream = null; 66 | try { 67 | mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile); 68 | Properties mavenWrapperProperties = new Properties(); 69 | mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream); 70 | url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url); 71 | } catch (IOException e) { 72 | System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'"); 73 | } finally { 74 | try { 75 | if (mavenWrapperPropertyFileInputStream != null) { 76 | mavenWrapperPropertyFileInputStream.close(); 77 | } 78 | } catch (IOException e) { 79 | // Ignore ... 80 | } 81 | } 82 | } 83 | System.out.println("- Downloading from: : " + url); 84 | 85 | File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH); 86 | if (!outputFile.getParentFile().exists()) { 87 | if (!outputFile.getParentFile().mkdirs()) { 88 | System.out.println( 89 | "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'"); 90 | } 91 | } 92 | System.out.println("- Downloading to: " + outputFile.getAbsolutePath()); 93 | try { 94 | downloadFileFromURL(url, outputFile); 95 | System.out.println("Done"); 96 | System.exit(0); 97 | } catch (Throwable e) { 98 | System.out.println("- Error downloading"); 99 | e.printStackTrace(); 100 | System.exit(1); 101 | } 102 | } 103 | 104 | private static void downloadFileFromURL(String urlString, File destination) throws Exception { 105 | URL website = new URL(urlString); 106 | ReadableByteChannel rbc; 107 | rbc = Channels.newChannel(website.openStream()); 108 | FileOutputStream fos = new FileOutputStream(destination); 109 | fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); 110 | fos.close(); 111 | rbc.close(); 112 | } 113 | 114 | } 115 | -------------------------------------------------------------------------------- /admin/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/admin/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /admin/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /admin/mvnw.cmd: -------------------------------------------------------------------------------- 1 | @REM ---------------------------------------------------------------------------- 2 | @REM Licensed to the Apache Software Foundation (ASF) under one 3 | @REM or more contributor license agreements. See the NOTICE file 4 | @REM distributed with this work for additional information 5 | @REM regarding copyright ownership. The ASF licenses this file 6 | @REM to you under the Apache License, Version 2.0 (the 7 | @REM "License"); you may not use this file except in compliance 8 | @REM with the License. You may obtain a copy of the License at 9 | @REM 10 | @REM https://www.apache.org/licenses/LICENSE-2.0 11 | @REM 12 | @REM Unless required by applicable law or agreed to in writing, 13 | @REM software distributed under the License is distributed on an 14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | @REM KIND, either express or implied. See the License for the 16 | @REM specific language governing permissions and limitations 17 | @REM under the License. 18 | @REM ---------------------------------------------------------------------------- 19 | 20 | @REM ---------------------------------------------------------------------------- 21 | @REM Maven2 Start Up Batch script 22 | @REM 23 | @REM Required ENV vars: 24 | @REM JAVA_HOME - location of a JDK home dir 25 | @REM 26 | @REM Optional ENV vars 27 | @REM M2_HOME - location of maven2's installed home dir 28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands 29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending 30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven 31 | @REM e.g. to debug Maven itself, use 32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files 34 | @REM ---------------------------------------------------------------------------- 35 | 36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' 37 | @echo off 38 | @REM set title of command window 39 | title %0 40 | @REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' 41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% 42 | 43 | @REM set %HOME% to equivalent of $HOME 44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") 45 | 46 | @REM Execute a user defined script before this one 47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre 48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending 49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" 50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" 51 | :skipRcPre 52 | 53 | @setlocal 54 | 55 | set ERROR_CODE=0 56 | 57 | @REM To isolate internal variables from possible post scripts, we use another setlocal 58 | @setlocal 59 | 60 | @REM ==== START VALIDATION ==== 61 | if not "%JAVA_HOME%" == "" goto OkJHome 62 | 63 | echo. 64 | echo Error: JAVA_HOME not found in your environment. >&2 65 | echo Please set the JAVA_HOME variable in your environment to match the >&2 66 | echo location of your Java installation. >&2 67 | echo. 68 | goto error 69 | 70 | :OkJHome 71 | if exist "%JAVA_HOME%\bin\java.exe" goto init 72 | 73 | echo. 74 | echo Error: JAVA_HOME is set to an invalid directory. >&2 75 | echo JAVA_HOME = "%JAVA_HOME%" >&2 76 | echo Please set the JAVA_HOME variable in your environment to match the >&2 77 | echo location of your Java installation. >&2 78 | echo. 79 | goto error 80 | 81 | @REM ==== END VALIDATION ==== 82 | 83 | :init 84 | 85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn". 86 | @REM Fallback to current working directory if not found. 87 | 88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% 89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir 90 | 91 | set EXEC_DIR=%CD% 92 | set WDIR=%EXEC_DIR% 93 | :findBaseDir 94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound 95 | cd .. 96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound 97 | set WDIR=%CD% 98 | goto findBaseDir 99 | 100 | :baseDirFound 101 | set MAVEN_PROJECTBASEDIR=%WDIR% 102 | cd "%EXEC_DIR%" 103 | goto endDetectBaseDir 104 | 105 | :baseDirNotFound 106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR% 107 | cd "%EXEC_DIR%" 108 | 109 | :endDetectBaseDir 110 | 111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig 112 | 113 | @setlocal EnableExtensions EnableDelayedExpansion 114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a 115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% 116 | 117 | :endReadAdditionalConfig 118 | 119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" 120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" 121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 122 | 123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar" 124 | FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO ( 125 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B 126 | ) 127 | 128 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 129 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data. 130 | if exist %WRAPPER_JAR% ( 131 | echo Found %WRAPPER_JAR% 132 | ) else ( 133 | echo Couldn't find %WRAPPER_JAR%, downloading it ... 134 | echo Downloading from: %DOWNLOAD_URL% 135 | powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')" 136 | echo Finished downloading %WRAPPER_JAR% 137 | ) 138 | @REM End of extension 139 | 140 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* 141 | if ERRORLEVEL 1 goto error 142 | goto end 143 | 144 | :error 145 | set ERROR_CODE=1 146 | 147 | :end 148 | @endlocal & set ERROR_CODE=%ERROR_CODE% 149 | 150 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost 151 | @REM check for post script, once with legacy .bat ending and once with .cmd ending 152 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" 153 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" 154 | :skipRcPost 155 | 156 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' 157 | if "%MAVEN_BATCH_PAUSE%" == "on" pause 158 | 159 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% 160 | 161 | exit /B %ERROR_CODE% 162 | -------------------------------------------------------------------------------- /admin/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.1.3.RELEASE 9 | 10 | 11 | com.connext 12 | zm 13 | 0.0.1-SNAPSHOT 14 | zm 15 | Demo project for Spring Boot 16 | 17 | 18 | 1.8 19 | 20 | 21 | 22 | 23 | org.springframework.boot 24 | spring-boot-starter-data-jpa 25 | 26 | 27 | org.springframework.boot 28 | spring-boot-starter-jdbc 29 | 30 | 31 | 32 | mysql 33 | mysql-connector-java 34 | 8.0.15 35 | 36 | 37 | 38 | org.springframework.boot 39 | spring-boot-starter-security 40 | 41 | 42 | org.springframework.boot 43 | spring-boot-starter-thymeleaf 44 | 45 | 46 | org.springframework.boot 47 | spring-boot-starter-web 48 | 49 | 50 | 51 | mysql 52 | mysql-connector-java 53 | runtime 54 | 55 | 56 | org.springframework.boot 57 | spring-boot-starter-test 58 | test 59 | 60 | 61 | org.springframework.security 62 | spring-security-test 63 | test 64 | 65 | 66 | org.junit.jupiter 67 | junit-jupiter-api 68 | 5.3.1 69 | test 70 | 71 | 72 | org.junit.jupiter 73 | junit-jupiter-api 74 | 5.3.1 75 | test 76 | 77 | 78 | org.springframework.boot 79 | spring-boot-devtools 80 | true 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | org.springframework.boot 89 | spring-boot-maven-plugin 90 | 91 | true 92 | 93 | 94 | 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/ZmApplication.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm; 2 | 3 | import com.connext.zm.util.SerialUtil; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration; 7 | import org.springframework.boot.autoconfigure.security.servlet.SpringBootWebSecurityConfiguration; 8 | import org.springframework.context.annotation.Bean; 9 | import org.springframework.data.jpa.repository.config.EnableJpaAuditing; 10 | import org.springframework.security.web.firewall.HttpFirewall; 11 | import org.springframework.security.web.firewall.StrictHttpFirewall; 12 | 13 | @SpringBootApplication//(exclude = {SecurityAutoConfiguration.class}) 14 | @EnableJpaAuditing 15 | public class ZmApplication { 16 | 17 | public static void main(String[] args){ 18 | SpringApplication.run(ZmApplication.class, args); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/config/MyCommandLineRunner.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.config; 2 | 3 | import com.connext.zm.util.SerialUtil; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.boot.CommandLineRunner; 6 | import org.springframework.core.Ordered; 7 | import org.springframework.stereotype.Component; 8 | 9 | import java.util.Date; 10 | 11 | @Component 12 | public class MyCommandLineRunner implements CommandLineRunner, Ordered { 13 | private final SerialUtil serialUtil; 14 | 15 | @Autowired 16 | public MyCommandLineRunner(SerialUtil serialUtil) { 17 | this.serialUtil = serialUtil; 18 | } 19 | 20 | @Override 21 | public int getOrder() { 22 | return 1;//返回执行顺序 23 | } 24 | 25 | @Override 26 | public void run(String... var1) throws Exception { 27 | //TODO 端口号设置 28 | serialUtil.start("COM2"); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/config/WebSecurityConfig.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.config; 2 | 3 | import com.connext.zm.service.impl.UserDetailServiceImpl; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.context.annotation.Configuration; 7 | import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; 8 | import org.springframework.security.config.annotation.web.builders.HttpSecurity; 9 | import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; 10 | import org.springframework.security.core.AuthenticationException; 11 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; 12 | import org.springframework.security.web.authentication.AuthenticationFailureHandler; 13 | import org.springframework.security.web.firewall.HttpFirewall; 14 | import org.springframework.security.web.firewall.StrictHttpFirewall; 15 | 16 | import javax.servlet.ServletException; 17 | import javax.servlet.http.HttpServletRequest; 18 | import javax.servlet.http.HttpServletResponse; 19 | import java.io.IOException; 20 | import java.io.PrintWriter; 21 | 22 | /** @Author: Marcus @Date: 2018/12/21 10:18 @Version 1.0 */ 23 | @Configuration 24 | public class WebSecurityConfig extends WebSecurityConfigurerAdapter { 25 | private final UserDetailServiceImpl userDetailService; 26 | 27 | @Autowired 28 | public WebSecurityConfig(UserDetailServiceImpl userDetailService) { 29 | this.userDetailService = userDetailService; 30 | } 31 | 32 | @Override 33 | protected void configure(AuthenticationManagerBuilder auth) throws Exception { 34 | auth.userDetailsService(userDetailService).passwordEncoder(new BCryptPasswordEncoder()); 35 | } 36 | 37 | @Override 38 | protected void configure(HttpSecurity http) throws Exception { 39 | http.csrf() 40 | .disable() 41 | .authorizeRequests() 42 | .antMatchers("/css/**", "/js/**", "/images/**", "/vue/**") 43 | .permitAll() 44 | .antMatchers("/login") 45 | .permitAll() 46 | .anyRequest() 47 | .authenticated() 48 | .and() 49 | .formLogin() 50 | .loginPage("/login") 51 | .successHandler( 52 | (httpServletRequest, httpServletResponse, authentication) -> { 53 | httpServletResponse.setContentType("application/json;charset=utf-8"); 54 | PrintWriter out = httpServletResponse.getWriter(); 55 | out.write("Access"); 56 | out.flush(); 57 | out.close(); 58 | }) 59 | .failureHandler( 60 | (httpServletRequest, httpServletResponse, e) -> { 61 | httpServletResponse.setContentType("application/json;charset=utf-8"); 62 | PrintWriter out = httpServletResponse.getWriter(); 63 | out.write(e.getMessage()); 64 | out.flush(); 65 | out.close(); 66 | }) 67 | .and() 68 | .rememberMe() 69 | .and() 70 | .logout(); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/controller/IndexControl.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.GetMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | @Controller 8 | public class IndexControl { 9 | @GetMapping("/") 10 | public String index() { 11 | return "index"; 12 | } 13 | 14 | @GetMapping("/login") 15 | public String login() { 16 | return "login"; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/controller/RecordControl.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.controller; 2 | 3 | import com.connext.zm.entity.Record; 4 | import com.connext.zm.service.RecordService; 5 | import com.connext.zm.util.SerialUtil; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.data.domain.Page; 8 | import org.springframework.web.bind.annotation.*; 9 | 10 | import java.util.List; 11 | 12 | @RestController 13 | @RequestMapping("/record") 14 | public class RecordControl { 15 | private final RecordService recordService; 16 | private final SerialUtil serialUtil; 17 | 18 | @Autowired 19 | public RecordControl(RecordService recordService, SerialUtil serialUtil) { 20 | this.recordService = recordService; 21 | this.serialUtil = serialUtil; 22 | } 23 | 24 | @GetMapping("/all") 25 | List all() { 26 | return recordService.getAll(); 27 | } 28 | 29 | @GetMapping("/today") 30 | List today() { 31 | return recordService.getToday(); 32 | } 33 | 34 | @GetMapping("/page/{page}") 35 | Page today(@PathVariable Integer page) { 36 | return recordService.getAllByPage(page); 37 | } 38 | 39 | 40 | @GetMapping("/normal") 41 | void normal() { 42 | serialUtil.send(0); 43 | } 44 | 45 | @GetMapping("/ew") 46 | void ew() { 47 | serialUtil.send(1); 48 | } 49 | 50 | @GetMapping("/sn") 51 | void sn() { 52 | serialUtil.send(2); 53 | } 54 | 55 | @GetMapping("/stop") 56 | void stop() { 57 | serialUtil.send(3); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/controller/UserController.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.controller; 2 | 3 | import com.connext.zm.entity.User; 4 | import com.connext.zm.service.UserService; 5 | import com.connext.zm.util.Data; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.ui.Model; 8 | import org.springframework.web.bind.annotation.*; 9 | 10 | import java.util.ArrayList; 11 | import java.util.Arrays; 12 | import java.util.List; 13 | 14 | @RestController 15 | @RequestMapping("/user") 16 | public class UserController { 17 | private final UserService userService; 18 | 19 | @Autowired 20 | public UserController(UserService userService) { 21 | this.userService = userService; 22 | } 23 | 24 | @GetMapping("/all") 25 | public List allUser(Model model) { 26 | return userService.allUser(); 27 | } 28 | 29 | @PostMapping("/add") 30 | public String addUser( 31 | @RequestParam String username, @RequestParam String password, @RequestParam String roles) { 32 | userService.CreateUser(username, password); 33 | List role = Arrays.asList(roles.split(",")); 34 | userService.setRole(username, role); 35 | return "true"; 36 | } 37 | 38 | @GetMapping("/roles") 39 | public List getUser() { 40 | List roles = new ArrayList<>(); 41 | User user = userService.getUser(); 42 | user.getAuthorities().forEach(i -> roles.add(i.getName())); 43 | return roles; 44 | } 45 | 46 | @GetMapping("/{username}/delete") 47 | public Data deleteUser(@PathVariable String username) { 48 | Data data = new Data(); 49 | userService.delete(username); 50 | return data; 51 | } 52 | 53 | @PostMapping("/{username}/role") 54 | public String setRole(@PathVariable String username, String role) { 55 | List roles = Arrays.asList(role.split(",")); 56 | userService.setRole(username, roles); 57 | return "Success"; 58 | } 59 | 60 | @GetMapping("/{username}/roles") 61 | public List getRole(@PathVariable String username) { 62 | List roles = new ArrayList<>(); 63 | User user = userService.getUserById(username); 64 | user.getAuthorities().forEach(i -> roles.add(i.getName())); 65 | return roles; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/dao/AuthorityRepository.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.dao; 2 | 3 | import com.connext.zm.entity.Authority; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface AuthorityRepository extends CrudRepository { 7 | Authority findByNameEquals(String name); 8 | } 9 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/dao/RecordRepository.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.dao; 2 | 3 | import com.connext.zm.entity.Record; 4 | import com.connext.zm.entity.User; 5 | import org.springframework.data.domain.Page; 6 | import org.springframework.data.domain.Pageable; 7 | import org.springframework.data.repository.CrudRepository; 8 | 9 | import java.util.Calendar; 10 | import java.util.Date; 11 | import java.util.List; 12 | import java.util.Optional; 13 | 14 | /** 15 | * @Author: Marcus 16 | * @Date: 2018/12/20 10:25 17 | * @Version 1.0 18 | */ 19 | public interface RecordRepository extends CrudRepository { 20 | List findAll(); 21 | 22 | Page findAll(Pageable page); 23 | 24 | List findByTimeAfter(Date today); 25 | 26 | Page findAllByOrderByTimeDesc(Pageable page); 27 | } 28 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/dao/UserRepository.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.dao; 2 | 3 | import com.connext.zm.entity.User; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | import java.util.List; 7 | import java.util.Optional; 8 | 9 | /** 10 | * @Author: Marcus 11 | * @Date: 2018/12/20 10:25 12 | * @Version 1.0 13 | */ 14 | 15 | public interface UserRepository extends CrudRepository { 16 | /** 17 | * fetch data by phone 18 | * 19 | * @param username user's username 20 | * @return User 21 | */ 22 | Optional findByUsername(String username); 23 | 24 | List findAll(); 25 | } 26 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/entity/Authority.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.entity; 2 | 3 | import org.springframework.data.annotation.CreatedDate; 4 | import org.springframework.data.annotation.LastModifiedDate; 5 | import org.springframework.data.jpa.domain.support.AuditingEntityListener; 6 | 7 | import javax.persistence.*; 8 | import java.util.Date; 9 | /**@Author: Marcus 10 | * @Date: 2018/12/20 10:21 11 | * @Version 1.0 12 | */ 13 | @Entity 14 | @EntityListeners(AuditingEntityListener.class) 15 | public class Authority { 16 | @Id 17 | @GeneratedValue(strategy = GenerationType.AUTO) 18 | private Integer id; 19 | @Column(unique = true,nullable=false) 20 | private String name; 21 | @CreatedDate 22 | private Date createTime; 23 | @LastModifiedDate 24 | private Date modifiedTime; 25 | 26 | public Authority(){} 27 | 28 | public Authority(String name) { 29 | this.name = name; 30 | } 31 | 32 | public Integer getId() { 33 | return id; 34 | } 35 | 36 | public void setId(Integer id) { 37 | this.id = id; 38 | } 39 | 40 | public String getName() { 41 | return name; 42 | } 43 | 44 | public void setName(String name) { 45 | this.name = name; 46 | } 47 | 48 | public Date getCreateTime() { 49 | return createTime; 50 | } 51 | 52 | public void setCreateTime(Date createTime) { 53 | this.createTime = createTime; 54 | } 55 | 56 | public Date getModifiedTime() { 57 | return modifiedTime; 58 | } 59 | 60 | public void setModifiedTime(Date modifiedTime) { 61 | this.modifiedTime = modifiedTime; 62 | } 63 | 64 | @Override 65 | public String toString() { 66 | return "Authority{" + 67 | "id=" + id + 68 | ", name='" + name + '\'' + 69 | ", createTime=" + createTime + 70 | ", modifiedTime=" + modifiedTime + 71 | '}'; 72 | } 73 | } -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/entity/Record.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.entity; 2 | 3 | import org.springframework.data.annotation.CreatedDate; 4 | import org.springframework.data.jpa.domain.support.AuditingEntityListener; 5 | 6 | import javax.persistence.*; 7 | import java.util.Date; 8 | 9 | @Entity 10 | @EntityListeners(AuditingEntityListener.class) 11 | public class Record { 12 | @Id 13 | @GeneratedValue(strategy = GenerationType.AUTO) 14 | private Integer id; 15 | @CreatedDate 16 | private Date time; 17 | 18 | private String orientation; 19 | 20 | private int num; 21 | 22 | public Integer getId() { 23 | return id; 24 | } 25 | 26 | public void setId(Integer id) { 27 | this.id = id; 28 | } 29 | 30 | public Date getTime() { 31 | return time; 32 | } 33 | 34 | public void setTime(Date time) { 35 | this.time = time; 36 | } 37 | 38 | public String getOrientation() { 39 | return orientation; 40 | } 41 | 42 | public void setOrientation(String orientation) { 43 | this.orientation = orientation; 44 | } 45 | 46 | public int getNum() { 47 | return num; 48 | } 49 | 50 | public void setNum(int num) { 51 | this.num = num; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/entity/User.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.entity; 2 | 3 | import org.hibernate.annotations.UpdateTimestamp; 4 | import org.springframework.data.annotation.CreatedDate; 5 | import org.springframework.data.annotation.LastModifiedDate; 6 | import org.springframework.data.jpa.domain.support.AuditingEntityListener; 7 | 8 | import javax.persistence.*; 9 | import java.util.Date; 10 | import java.util.List; 11 | 12 | @Entity 13 | @EntityListeners(AuditingEntityListener.class) 14 | public class User { 15 | @Id 16 | @GeneratedValue(strategy = GenerationType.AUTO) 17 | private Integer id; 18 | 19 | @Column(unique = true) 20 | private String username; 21 | 22 | private String password; 23 | @CreatedDate private Date time; 24 | @LastModifiedDate private Date modifiedTime; 25 | 26 | @ManyToMany private List authorities; 27 | 28 | public Integer getId() { 29 | return id; 30 | } 31 | 32 | public void setId(Integer id) { 33 | this.id = id; 34 | } 35 | 36 | public String getUsername() { 37 | return username; 38 | } 39 | 40 | public void setUsername(String username) { 41 | this.username = username; 42 | } 43 | 44 | public String getPassword() { 45 | return password; 46 | } 47 | 48 | public void setPassword(String password) { 49 | this.password = password; 50 | } 51 | 52 | public Date getTime() { 53 | return time; 54 | } 55 | 56 | public void setTime(Date time) { 57 | this.time = time; 58 | } 59 | 60 | public Date getModifiedTime() { 61 | return modifiedTime; 62 | } 63 | 64 | public void setModifiedTime(Date modifiedTime) { 65 | this.modifiedTime = modifiedTime; 66 | } 67 | 68 | public List getAuthorities() { 69 | return authorities; 70 | } 71 | 72 | public void setAuthorities(List authorities) { 73 | this.authorities = authorities; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/service/AuthorityService.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.service; 2 | 3 | public interface AuthorityService { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/service/RecordService.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.service; 2 | 3 | import com.connext.zm.entity.Record; 4 | import com.connext.zm.util.Orientation; 5 | import org.springframework.data.domain.Page; 6 | 7 | import java.util.List; 8 | 9 | public interface RecordService { 10 | 11 | void insert(Record record); 12 | 13 | List getAll(); 14 | 15 | Page getAllByPage(Integer page); 16 | 17 | void remoteControl(int signal); 18 | 19 | List getToday(); 20 | 21 | String getOrientation(); 22 | } 23 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.service; 2 | 3 | import com.connext.zm.entity.User; 4 | import org.springframework.stereotype.Service; 5 | 6 | import java.util.List; 7 | 8 | public interface UserService { 9 | void CreateUser(String username, String password); 10 | 11 | /** 12 | * Add roles for user 13 | * 14 | * @param username The user who want to add Roles. 15 | * @param roles Roles 16 | * @return true or false 17 | */ 18 | void setRole(String username, List roles); 19 | 20 | /** 21 | * Find all user. 22 | * @return All user. 23 | */ 24 | List allUser(); 25 | 26 | /** 27 | * Find a user. 28 | * @return a user. 29 | */ 30 | User getUser(); 31 | 32 | User getUserById(String username); 33 | 34 | void delete(String username); 35 | } 36 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/service/impl/RecordServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.service.impl; 2 | 3 | import com.connext.zm.dao.RecordRepository; 4 | import com.connext.zm.entity.Record; 5 | import com.connext.zm.service.RecordService; 6 | import com.connext.zm.util.Orientation; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.data.domain.Page; 9 | import org.springframework.data.domain.PageRequest; 10 | import org.springframework.stereotype.Service; 11 | 12 | import java.util.Calendar; 13 | import java.util.Date; 14 | import java.util.List; 15 | 16 | @Service 17 | public class RecordServiceImpl implements RecordService { 18 | 19 | private final RecordRepository recordRepository; 20 | 21 | private String now = "SN"; 22 | 23 | @Autowired 24 | public RecordServiceImpl(RecordRepository recordRepository) { 25 | this.recordRepository = recordRepository; 26 | } 27 | 28 | @Override 29 | public void insert(Record record) { 30 | recordRepository.save(record); 31 | } 32 | 33 | @Override 34 | public List getAll() { 35 | return recordRepository.findAll(); 36 | } 37 | 38 | @Override 39 | public Page getAllByPage(Integer page) { 40 | return recordRepository.findAllByOrderByTimeDesc(new PageRequest(page, 10)); 41 | } 42 | 43 | @Override 44 | public void remoteControl(int signal) { 45 | // serialUtil.send(signal); 46 | } 47 | 48 | @Override 49 | public List getToday() { 50 | 51 | Calendar calendar = Calendar.getInstance(); 52 | calendar.setTime(new Date()); 53 | calendar.set(Calendar.HOUR, 0); 54 | calendar.set(Calendar.MINUTE, 0); 55 | calendar.set(Calendar.SECOND, 0); 56 | Date date = calendar.getTime(); 57 | return recordRepository.findByTimeAfter(date); 58 | } 59 | 60 | @Override 61 | public String getOrientation() { 62 | this.now = Orientation.getOppositeOrientation(now).toString(); 63 | return now; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/service/impl/UserDetailServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.service.impl; 2 | 3 | import com.connext.zm.dao.UserRepository; 4 | import com.connext.zm.entity.Authority; 5 | import com.connext.zm.entity.User; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.security.authentication.BadCredentialsException; 8 | import org.springframework.security.core.GrantedAuthority; 9 | import org.springframework.security.core.userdetails.UserDetails; 10 | import org.springframework.security.core.userdetails.UserDetailsService; 11 | import org.springframework.stereotype.Service; 12 | 13 | import javax.transaction.Transactional; 14 | import java.util.ArrayList; 15 | import java.util.List; 16 | import java.util.Optional; 17 | import java.util.stream.Collectors; 18 | 19 | /** 20 | * @Author: Marcus 21 | * @Date: 2018/12/21 10:18 22 | * @Version 1.0 23 | */ 24 | @Service 25 | @Transactional(rollbackOn = {Exception.class}) 26 | public class UserDetailServiceImpl implements UserDetailsService { 27 | private final UserRepository userRepository; 28 | 29 | @Autowired 30 | public UserDetailServiceImpl(UserRepository userRepository) { 31 | this.userRepository = userRepository; 32 | } 33 | 34 | @Override 35 | public UserDetails loadUserByUsername(String username) throws BadCredentialsException { 36 | Optional user = userRepository.findByUsername(username); 37 | if (user.isPresent()) { 38 | 39 | List authorities = user.get().getAuthorities(); 40 | List list = new ArrayList(); 41 | authorities.forEach(i -> list.add(new GrantedAuthority() { 42 | @Override 43 | public String getAuthority() { 44 | return i.getName(); 45 | } 46 | })); 47 | return new org.springframework.security.core.userdetails.User(user.get().getUsername(), user.get().getPassword(), list); 48 | } else { 49 | throw new BadCredentialsException("用户未注册!"); 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.service.impl; 2 | 3 | import com.connext.zm.dao.AuthorityRepository; 4 | import com.connext.zm.dao.UserRepository; 5 | import com.connext.zm.entity.Authority; 6 | import com.connext.zm.entity.User; 7 | import com.connext.zm.service.UserService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.security.core.Authentication; 10 | import org.springframework.security.core.GrantedAuthority; 11 | import org.springframework.security.core.context.SecurityContextHolder; 12 | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; 13 | import org.springframework.stereotype.Service; 14 | 15 | import java.util.ArrayList; 16 | import java.util.List; 17 | 18 | @Service 19 | public class UserServiceImpl implements UserService { 20 | 21 | private UserRepository userRepository; 22 | private AuthorityRepository authorityRepository; 23 | 24 | @Autowired 25 | public UserServiceImpl(UserRepository userRepository, AuthorityRepository authorityRepository) { 26 | this.userRepository = userRepository; 27 | this.authorityRepository = authorityRepository; 28 | } 29 | 30 | @Override 31 | public void CreateUser(String username, String password) { 32 | User newUser = new User(); 33 | newUser.setUsername(username); 34 | newUser.setPassword(new BCryptPasswordEncoder().encode(password)); 35 | userRepository.save(newUser); 36 | } 37 | 38 | @Override 39 | public void setRole(String username, List roles) { 40 | User user = userRepository.findByUsername(username).get(); 41 | List authorities = new ArrayList<>(); 42 | roles.forEach(i -> authorities.add(authorityRepository.findByNameEquals(i))); 43 | user.setAuthorities(authorities); 44 | userRepository.save(user); 45 | } 46 | 47 | @Override 48 | public List allUser() { 49 | return userRepository.findAll(); 50 | } 51 | 52 | @Override 53 | public User getUser() { 54 | Authentication auth = SecurityContextHolder.getContext().getAuthentication(); 55 | org.springframework.security.core.userdetails.User user = 56 | (org.springframework.security.core.userdetails.User) auth.getPrincipal(); 57 | User realUser = userRepository.findByUsername(user.getUsername()).get(); 58 | return realUser; 59 | } 60 | 61 | @Override 62 | public User getUserById(String username) { 63 | User user = userRepository.findByUsername(username).get(); 64 | return user; 65 | } 66 | 67 | @Override 68 | public void delete(String username) { 69 | User user = userRepository.findByUsername(username).get(); 70 | userRepository.delete(user); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/util/Data.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.util; 2 | 3 | import com.connext.zm.entity.Authority; 4 | import com.connext.zm.entity.User; 5 | 6 | import java.util.List; 7 | 8 | public class Data { 9 | public List users; 10 | public User user; 11 | public List authorities; 12 | public List roles; 13 | public String username; 14 | public String password; 15 | 16 | @Override 17 | public String toString() { 18 | return "Data{" + 19 | "users=" + users + 20 | ", user=" + user + 21 | ", authorities=" + authorities + 22 | ", roles=" + roles + 23 | ", username='" + username + '\'' + 24 | ", password='" + password + '\'' + 25 | '}'; 26 | } 27 | 28 | public String getUsername() { 29 | return username; 30 | } 31 | 32 | public void setUsername(String username) { 33 | this.username = username; 34 | } 35 | 36 | public String getPassword() { 37 | return password; 38 | } 39 | 40 | public void setPassword(String password) { 41 | this.password = password; 42 | } 43 | 44 | public List getRoles() { 45 | return roles; 46 | } 47 | 48 | public void setRoles(List roles) { 49 | this.roles = roles; 50 | } 51 | 52 | public List getUsers() { 53 | return users; 54 | } 55 | 56 | public void setUsers(List users) { 57 | this.users = users; 58 | } 59 | 60 | public User getUser() { 61 | return user; 62 | } 63 | 64 | public void setUser(User user) { 65 | this.user = user; 66 | } 67 | 68 | public List getAuthorities() { 69 | return authorities; 70 | } 71 | 72 | public void setAuthorities(List authorities) { 73 | this.authorities = authorities; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/util/Orientation.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.util; 2 | 3 | /** @Author: Marcus @Date: 2019/4/29 10:54 @Version 1.0 */ 4 | public enum Orientation { 5 | SN, 6 | EW; 7 | 8 | public static Orientation getOppositeOrientation(String var1) { 9 | Orientation source = Orientation.valueOf(var1); 10 | for (Orientation temp : Orientation.values()) { 11 | if (!temp.equals(source)) { 12 | return temp; 13 | } 14 | } 15 | return null; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/util/SerialUtil.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.util; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Component; 5 | 6 | import java.io.OutputStream; 7 | @Component 8 | public class SerialUtil { 9 | private final TwoWaySerialComm comm; 10 | 11 | @Autowired 12 | public SerialUtil(TwoWaySerialComm comm) { 13 | this.comm = comm; 14 | } 15 | 16 | public void start(String com) { 17 | try { 18 | comm.connect("COM2"); 19 | } catch (Exception e) { 20 | e.printStackTrace(); 21 | } 22 | } 23 | public void send(int opinion){ 24 | comm.sendData((byte) opinion); 25 | } 26 | } -------------------------------------------------------------------------------- /admin/src/main/java/com/connext/zm/util/TwoWaySerialComm.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.util; 2 | 3 | import com.connext.zm.entity.Record; 4 | import com.connext.zm.service.RecordService; 5 | import gnu.io.CommPort; 6 | import gnu.io.CommPortIdentifier; 7 | import gnu.io.SerialPort; 8 | import gnu.io.SerialPortEvent; 9 | import gnu.io.SerialPortEventListener; 10 | import org.slf4j.Logger; 11 | import org.slf4j.LoggerFactory; 12 | import org.springframework.beans.factory.annotation.Autowired; 13 | import org.springframework.stereotype.Component; 14 | 15 | import java.io.IOException; 16 | import java.io.InputStream; 17 | import java.io.OutputStream; 18 | 19 | /** 20 | * This version of the TwoWaySerialComm example makes use of the SerialPortEventListener to avoid 21 | * polling. 22 | */ 23 | @Component 24 | public class TwoWaySerialComm { 25 | 26 | SerialPort port; 27 | @Autowired private final RecordService recordService; 28 | 29 | private static final Logger logger = LoggerFactory.getLogger(TwoWaySerialComm.class); 30 | 31 | public TwoWaySerialComm(RecordService recordService) { 32 | this.recordService = recordService; 33 | } 34 | 35 | void connect(String portName) throws Exception { 36 | CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(portName); 37 | if (portIdentifier.isCurrentlyOwned()) { 38 | System.out.println("Error: Port is currently in use"); 39 | } else { 40 | CommPort commPort = portIdentifier.open(this.getClass().getName(), 2000); 41 | 42 | if (commPort instanceof SerialPort) { 43 | SerialPort serialPort = (SerialPort) commPort; 44 | // TODO 波特率设置 45 | serialPort.setSerialPortParams( 46 | 9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); 47 | 48 | InputStream in = serialPort.getInputStream(); 49 | OutputStream out = serialPort.getOutputStream(); 50 | 51 | // (new Thread(new SerialWriter(out))).start(); 52 | 53 | serialPort.addEventListener(new SerialReader(in)); 54 | serialPort.notifyOnDataAvailable(true); 55 | this.port = serialPort; 56 | 57 | } else { 58 | System.out.println("Error: Only serial ports are handled by this example."); 59 | } 60 | } 61 | } 62 | 63 | /** 64 | * Handles the input coming from the serial port. A new line character is treated as the end of a 65 | * block in this example. 66 | */ 67 | public class SerialReader implements SerialPortEventListener { 68 | private InputStream in; 69 | private byte[] buffer = new byte[1]; 70 | 71 | public SerialReader(InputStream in) { 72 | this.in = in; 73 | } 74 | 75 | public void serialEvent(SerialPortEvent arg0) { 76 | int data; 77 | 78 | try { 79 | int len = 0; 80 | while ((data = in.read()) > -1) { 81 | if (data == '\n') { 82 | break; 83 | } 84 | buffer[len++] = (byte) data; 85 | } 86 | logger.info("当前有" + bytesToIntString(buffer) + "个行人经过!"); 87 | Record record = new Record(); 88 | record.setNum(Integer.parseInt(bytesToIntString(buffer))); 89 | record.setOrientation(recordService.getOrientation()); 90 | recordService.insert(record); 91 | } catch (IOException e) { 92 | e.printStackTrace(); 93 | System.exit(-1); 94 | } 95 | } 96 | } 97 | 98 | /** */ 99 | private String bytesToIntString(byte[] src) { 100 | StringBuilder stringBuilder = new StringBuilder(""); 101 | if (src == null || src.length <= 0) { 102 | return null; 103 | } 104 | for (int i = 0; i < src.length; i++) { 105 | int v = src[i] & 0xFF; 106 | String hv = Integer.toHexString(v); 107 | if (hv.length() < 2) { 108 | stringBuilder.append(0); 109 | } 110 | stringBuilder.append(hv); 111 | } 112 | return String.valueOf(Integer.parseInt(stringBuilder.toString(), 16)); 113 | } 114 | 115 | void sendData(byte data) { 116 | OutputStream os = null; 117 | SerialPort serialPort = this.port; 118 | try { 119 | os = serialPort.getOutputStream(); // 获得串口的输出流 120 | os.write(data); 121 | os.flush(); 122 | } catch (IOException e) { 123 | e.printStackTrace(); 124 | } finally { 125 | try { 126 | if (os != null) { 127 | os.close(); 128 | os = null; 129 | } 130 | } catch (IOException e) { 131 | e.printStackTrace(); 132 | } 133 | } 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /admin/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | jpa: 3 | hibernate: 4 | ddl-auto: update 5 | naming: 6 | implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy 7 | show-sql: false 8 | database: mysql 9 | database-platform: org.hibernate.dialect.MySQL5InnoDBDialect 10 | 11 | datasource: 12 | url: jdbc:mysql://120.77.45.136:3306/zm?characterEncoding=UTF-8&nullCatalogMeansCurrent=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8 13 | username: anymre 14 | password: c1234567 15 | driver-class-name: com.mysql.cj.jdbc.Driver 16 | jackson: 17 | date-format: yyyy-MM-dd HH:mm:ss 18 | time-zone: GMT+8 -------------------------------------------------------------------------------- /admin/src/main/resources/static/css/login.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url("/images/3.jpg"); 3 | animation-name: myfirst; 4 | animation-duration: 12s; 5 | /*变换时间*/ 6 | animation-delay: 2s; 7 | /*动画开始时间*/ 8 | animation-iteration-count: infinite; 9 | /*下一周期循环播放*/ 10 | animation-play-state: running; 11 | /*动画开始运行*/ 12 | } 13 | 14 | /*@keyframes myfirst {*/ 15 | /*0% {*/ 16 | /*background: url("/images/1.jpg");*/ 17 | /*}*/ 18 | /*34% {*/ 19 | /*background: url("/images/2.jpg");*/ 20 | /*}*/ 21 | /*67% {*/ 22 | /*background: url("/images/3.jpg");*/ 23 | /*}*/ 24 | /*100% {*/ 25 | /*background: url("/images/1.jpg");*/ 26 | /*}*/ 27 | /*}*/ 28 | 29 | .inner { 30 | background: hsla(0, 0%, 100%, .3); 31 | } 32 | 33 | 34 | .form-title { 35 | text-align: center; 36 | } 37 | 38 | .form { 39 | background: rgba(255, 255, 255, 0.2); 40 | width: 400px; 41 | margin: 120px auto; 42 | padding-left: 50px; 43 | padding-right: 50px; 44 | padding-top: 26px; 45 | padding-bottom: 26px; 46 | } 47 | 48 | /*阴影*/ 49 | .fa { 50 | display: inline-block; 51 | top: 27px; 52 | left: 6px; 53 | position: relative; 54 | color: #ccc; 55 | } 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /admin/src/main/resources/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/admin/src/main/resources/static/favicon.ico -------------------------------------------------------------------------------- /admin/src/main/resources/static/fonts/element-icons.2fad952a.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/admin/src/main/resources/static/fonts/element-icons.2fad952a.woff -------------------------------------------------------------------------------- /admin/src/main/resources/static/fonts/element-icons.6f0a7632.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/admin/src/main/resources/static/fonts/element-icons.6f0a7632.ttf -------------------------------------------------------------------------------- /admin/src/main/resources/static/images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/admin/src/main/resources/static/images/1.jpg -------------------------------------------------------------------------------- /admin/src/main/resources/static/images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/admin/src/main/resources/static/images/2.jpg -------------------------------------------------------------------------------- /admin/src/main/resources/static/images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/admin/src/main/resources/static/images/3.jpg -------------------------------------------------------------------------------- /admin/src/main/resources/static/js/app.08209abe.js: -------------------------------------------------------------------------------- 1 | (function(t){function e(e){for(var r,u,i=e[0],s=e[1],c=e[2],l=0,d=[];l 2 | 3 | 4 | 5 | 6 | 7 | 8 | 交通路口行人探测后台系统 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /admin/src/main/resources/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 交通路口行人探测后台系统 8 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 |
26 |

交通路口行人探测后台系统

27 |
28 |
29 |
30 | 31 |
32 | 33 | 37 |
38 |
39 | 40 | 43 |
44 |
45 | 48 |
49 | 50 |
51 |
52 |
53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /admin/src/test/java/com/connext/zm/ZmApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ZmApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /admin/src/test/java/com/connext/zm/service/RecordServiceTest.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.service; 2 | 3 | import com.connext.zm.service.impl.UserServiceImpl; 4 | import org.junit.Test; 5 | import org.junit.runner.RunWith; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.boot.test.context.SpringBootTest; 8 | import org.springframework.test.context.junit4.SpringRunner; 9 | 10 | @RunWith(SpringRunner.class) 11 | @SpringBootTest 12 | public class RecordServiceTest { 13 | @Autowired 14 | private RecordService recordService; 15 | 16 | @Test 17 | public void send() { 18 | recordService.remoteControl(0); 19 | } 20 | @Test 21 | public void today(){ 22 | recordService.getToday().forEach(System.out::println); 23 | } 24 | } -------------------------------------------------------------------------------- /admin/src/test/java/com/connext/zm/service/UserServiceTest.java: -------------------------------------------------------------------------------- 1 | package com.connext.zm.service; 2 | 3 | import com.connext.zm.dao.AuthorityRepository; 4 | import com.connext.zm.dao.UserRepository; 5 | import com.connext.zm.entity.Authority; 6 | import org.junit.Test; 7 | import org.junit.runner.RunWith; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.boot.test.context.SpringBootTest; 10 | import org.springframework.test.context.junit4.SpringRunner; 11 | 12 | 13 | import javax.transaction.Transactional; 14 | 15 | import static org.junit.Assert.*; 16 | 17 | @RunWith(SpringRunner.class) 18 | @SpringBootTest 19 | 20 | public class UserServiceTest { 21 | @Autowired 22 | private UserService userService; 23 | @Autowired 24 | private AuthorityRepository authorityRepository; 25 | 26 | @Test 27 | public void createUser() { 28 | userService.CreateUser("admin", "123456"); 29 | } 30 | @Test 31 | public void init(){ 32 | authorityRepository.save(new Authority("admin")); 33 | authorityRepository.save(new Authority("view")); 34 | authorityRepository.save(new Authority("action")); 35 | authorityRepository.save(new Authority("user")); 36 | authorityRepository.save(new Authority("add")); 37 | } 38 | @Test 39 | public void test(){ 40 | System.out.println(authorityRepository.findByNameEquals("admin")); 41 | } 42 | } -------------------------------------------------------------------------------- /backoffice/.idea/backoffice.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /backoffice/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /backoffice/.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /backoffice/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /backoffice/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /backoffice/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /backoffice/README.md: -------------------------------------------------------------------------------- 1 | # backoffice 2 | 3 | ## Project setup 4 | ``` 5 | npm install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | npm run serve 11 | ``` 12 | 13 | ### Compiles and minifies for production 14 | ``` 15 | npm run build 16 | ``` 17 | 18 | ### Run your tests 19 | ``` 20 | npm run test 21 | ``` 22 | 23 | ### Lints and fixes files 24 | ``` 25 | npm run lint 26 | ``` 27 | 28 | ### Customize configuration 29 | See [Configuration Reference](https://cli.vuejs.org/config/). 30 | -------------------------------------------------------------------------------- /backoffice/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /backoffice/dist/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/backoffice/dist/favicon.ico -------------------------------------------------------------------------------- /backoffice/dist/fonts/element-icons.2fad952a.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/backoffice/dist/fonts/element-icons.2fad952a.woff -------------------------------------------------------------------------------- /backoffice/dist/fonts/element-icons.6f0a7632.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/backoffice/dist/fonts/element-icons.6f0a7632.ttf -------------------------------------------------------------------------------- /backoffice/dist/index.html: -------------------------------------------------------------------------------- 1 | backoffice
-------------------------------------------------------------------------------- /backoffice/dist/js/app.08209abe.js: -------------------------------------------------------------------------------- 1 | (function(t){function e(e){for(var r,u,i=e[0],s=e[1],c=e[2],l=0,d=[];l 1%", 52 | "last 2 versions", 53 | "not ie <= 8" 54 | ] 55 | } 56 | -------------------------------------------------------------------------------- /backoffice/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/backoffice/public/favicon.ico -------------------------------------------------------------------------------- /backoffice/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | backoffice 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /backoffice/src/App.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 19 | 20 | 29 | -------------------------------------------------------------------------------- /backoffice/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/backoffice/src/assets/logo.png -------------------------------------------------------------------------------- /backoffice/src/components/menu_left.vue: -------------------------------------------------------------------------------- 1 | 19 | 20 | 83 | 84 | 91 | -------------------------------------------------------------------------------- /backoffice/src/element-variables.scss: -------------------------------------------------------------------------------- 1 | /* 2 | Write your variables here. All available variables can be 3 | found in element-ui/packages/theme-chalk/src/common/var.scss. 4 | For example, to overwrite the theme color: 5 | */ 6 | $--color-primary: teal; 7 | 8 | /* icon font path, required */ 9 | $--font-path: '~element-ui/lib/theme-chalk/fonts'; 10 | 11 | @import "~element-ui/packages/theme-chalk/src/index"; 12 | -------------------------------------------------------------------------------- /backoffice/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import axios from './plugins/axios' 3 | import App from './App.vue' 4 | import router from './router' 5 | import './plugins/element.js' 6 | import Qs from "qs" 7 | import VCharts from 'v-charts' 8 | 9 | Vue.config.productionTip = false 10 | Vue.use(axios) 11 | Vue.use(VCharts) 12 | 13 | Vue.prototype.qs = Qs; 14 | 15 | new Vue({ 16 | router, 17 | render: h => h(App) 18 | }).$mount('#app') 19 | -------------------------------------------------------------------------------- /backoffice/src/plugins/axios.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | import Vue from 'vue'; 4 | import axios from "axios"; 5 | 6 | // Full config: https://github.com/axios/axios#request-config 7 | // axios.defaults.baseURL = process.env.baseURL || process.env.apiUrl || ''; 8 | // axios.defaults.headers.common['Authorization'] = AUTH_TOKEN; 9 | // axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; 10 | 11 | let config = { 12 | // baseURL: process.env.baseURL || process.env.apiUrl || "" 13 | // timeout: 60 * 1000, // Timeout 14 | // withCredentials: true, // Check cross-site Access-Control 15 | }; 16 | 17 | const _axios = axios.create(config); 18 | 19 | _axios.interceptors.request.use( 20 | function(config) { 21 | // Do something before request is sent 22 | return config; 23 | }, 24 | function(error) { 25 | // Do something with request error 26 | return Promise.reject(error); 27 | } 28 | ); 29 | 30 | // Add a response interceptor 31 | _axios.interceptors.response.use( 32 | function(response) { 33 | // Do something with response data 34 | return response; 35 | }, 36 | function(error) { 37 | // Do something with response error 38 | return Promise.reject(error); 39 | } 40 | ); 41 | 42 | Plugin.install = function(Vue, options) { 43 | Vue.axios = _axios; 44 | window.axios = _axios; 45 | Object.defineProperties(Vue.prototype, { 46 | axios: { 47 | get() { 48 | return _axios; 49 | } 50 | }, 51 | $axios: { 52 | get() { 53 | return _axios; 54 | } 55 | }, 56 | }); 57 | }; 58 | 59 | Vue.use(Plugin) 60 | 61 | export default Plugin; 62 | -------------------------------------------------------------------------------- /backoffice/src/plugins/element.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Element from 'element-ui' 3 | import '../element-variables.scss' 4 | 5 | Vue.use(Element) 6 | -------------------------------------------------------------------------------- /backoffice/src/router.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | import Home from './views/Home.vue' 4 | 5 | Vue.use(Router) 6 | 7 | export default new Router({ 8 | routes: [ 9 | { 10 | path: '/', 11 | name: 'home', 12 | component: Home 13 | }, 14 | { 15 | path: '/remote', 16 | name: 'Remote', 17 | component: () => import(/* webpackChunkName: "about" */ './views/Remote.vue') 18 | }, 19 | { 20 | path: '/user', 21 | name: 'User', 22 | component: () => import(/* webpackChunkName: "about" */ './views/user.vue') 23 | }, 24 | { 25 | path: '/user/add', 26 | name: 'Useradd', 27 | component: () => import(/* webpackChunkName: "about" */ './views/addUser.vue') 28 | }, 29 | { 30 | path: '/record', 31 | name: 'record', 32 | component: () => import(/* webpackChunkName: "about" */ './views/recordList.vue') 33 | }, 34 | ] 35 | }) 36 | -------------------------------------------------------------------------------- /backoffice/src/views/Home.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 51 | -------------------------------------------------------------------------------- /backoffice/src/views/Remote.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | 47 | 48 | 51 | -------------------------------------------------------------------------------- /backoffice/src/views/addUser.vue: -------------------------------------------------------------------------------- 1 | 27 | 28 | 29 | 143 | 144 | 147 | -------------------------------------------------------------------------------- /backoffice/src/views/recordList.vue: -------------------------------------------------------------------------------- 1 | 27 | 28 | 50 | 51 | 54 | -------------------------------------------------------------------------------- /backoffice/src/views/user.vue: -------------------------------------------------------------------------------- 1 | 48 | 49 | 131 | 132 | 135 | -------------------------------------------------------------------------------- /doc/任务书/交通灯任务书.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/任务书/交通灯任务书.doc -------------------------------------------------------------------------------- /doc/仿真图/Last Loaded 交通灯.DBK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/仿真图/Last Loaded 交通灯.DBK -------------------------------------------------------------------------------- /doc/仿真图/交通灯.DSN: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/仿真图/交通灯.DSN -------------------------------------------------------------------------------- /doc/仿真图/交通灯.PWI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/仿真图/交通灯.PWI -------------------------------------------------------------------------------- /doc/使用前必读.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/使用前必读.doc -------------------------------------------------------------------------------- /doc/元件清单/245驱动交通灯原件清单.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/元件清单/245驱动交通灯原件清单.doc -------------------------------------------------------------------------------- /doc/制作详解/0.36两位数码管/0.362引脚标号.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/0.36两位数码管/0.362引脚标号.png -------------------------------------------------------------------------------- /doc/制作详解/0.36两位数码管/引脚图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/0.36两位数码管/引脚图.png -------------------------------------------------------------------------------- /doc/制作详解/0.36两位数码管/引脚标号和段.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/0.36两位数码管/引脚标号和段.png -------------------------------------------------------------------------------- /doc/制作详解/DC电源插口/CON2为电源插针(电路中可以不接).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/DC电源插口/CON2为电源插针(电路中可以不接).jpg -------------------------------------------------------------------------------- /doc/制作详解/DC电源插口/DC电源接口及开关(简易版).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/DC电源插口/DC电源接口及开关(简易版).jpg -------------------------------------------------------------------------------- /doc/制作详解/DC电源插口/DC电源插口内部透视图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/DC电源插口/DC电源插口内部透视图.jpg -------------------------------------------------------------------------------- /doc/制作详解/DC电源插口/DC电源插口原理图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/DC电源插口/DC电源插口原理图.jpg -------------------------------------------------------------------------------- /doc/制作详解/DC电源插口/DC电源插口原理图介绍说明.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/DC电源插口/DC电源插口原理图介绍说明.txt -------------------------------------------------------------------------------- /doc/制作详解/DC电源插口/DC电源插口硬件图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/DC电源插口/DC电源插口硬件图.jpg -------------------------------------------------------------------------------- /doc/制作详解/三极管/NPN型原理图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/三极管/NPN型原理图.jpg -------------------------------------------------------------------------------- /doc/制作详解/三极管/PNP型原理图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/三极管/PNP型原理图.jpg -------------------------------------------------------------------------------- /doc/制作详解/三极管/三极管介绍.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/三极管/三极管介绍.txt -------------------------------------------------------------------------------- /doc/制作详解/三极管/三极管引脚介绍.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/三极管/三极管引脚介绍.jpg -------------------------------------------------------------------------------- /doc/制作详解/上拉排阻/8个电阻组成的上拉电阻.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/上拉排阻/8个电阻组成的上拉电阻.jpg -------------------------------------------------------------------------------- /doc/制作详解/上拉排阻/上拉电阻介绍.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/上拉排阻/上拉电阻介绍.txt -------------------------------------------------------------------------------- /doc/制作详解/上拉排阻/单片机使用上拉电阻及作用.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/上拉排阻/单片机使用上拉电阻及作用.doc -------------------------------------------------------------------------------- /doc/制作详解/上拉排阻/排阻上拉电阻.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/上拉排阻/排阻上拉电阻.jpg -------------------------------------------------------------------------------- /doc/制作详解/上拉排阻/排阻上拉电阻原理图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/上拉排阻/排阻上拉电阻原理图.jpg -------------------------------------------------------------------------------- /doc/制作详解/上拉排阻/排阻的识别.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/上拉排阻/排阻的识别.jpg -------------------------------------------------------------------------------- /doc/制作详解/供电方式/DC插头.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/供电方式/DC插头.jpg -------------------------------------------------------------------------------- /doc/制作详解/供电方式/USB电源线.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/供电方式/USB电源线.jpg -------------------------------------------------------------------------------- /doc/制作详解/供电方式/电池盒.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/供电方式/电池盒.jpg -------------------------------------------------------------------------------- /doc/制作详解/各种电阻、贴片、可调电阻焊接方法/光敏电阻.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/各种电阻、贴片、可调电阻焊接方法/光敏电阻.jpg -------------------------------------------------------------------------------- /doc/制作详解/各种电阻、贴片、可调电阻焊接方法/可调电阻.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/各种电阻、贴片、可调电阻焊接方法/可调电阻.jpg -------------------------------------------------------------------------------- /doc/制作详解/各种电阻、贴片、可调电阻焊接方法/可调电阻焊接方法.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/各种电阻、贴片、可调电阻焊接方法/可调电阻焊接方法.doc -------------------------------------------------------------------------------- /doc/制作详解/各种电阻、贴片、可调电阻焊接方法/电位器.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/各种电阻、贴片、可调电阻焊接方法/电位器.jpg -------------------------------------------------------------------------------- /doc/制作详解/各种电阻、贴片、可调电阻焊接方法/电路图中的光敏电阻.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/各种电阻、贴片、可调电阻焊接方法/电路图中的光敏电阻.jpg -------------------------------------------------------------------------------- /doc/制作详解/各种电阻、贴片、可调电阻焊接方法/色环电阻.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/各种电阻、贴片、可调电阻焊接方法/色环电阻.jpg -------------------------------------------------------------------------------- /doc/制作详解/各种电阻、贴片、可调电阻焊接方法/贴片电阻.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/各种电阻、贴片、可调电阻焊接方法/贴片电阻.jpg -------------------------------------------------------------------------------- /doc/制作详解/各种电阻、贴片、可调电阻焊接方法/贴片电阻焊接方法.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/各种电阻、贴片、可调电阻焊接方法/贴片电阻焊接方法.doc -------------------------------------------------------------------------------- /doc/制作详解/自锁开关/自锁开关原理图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/自锁开关/自锁开关原理图.jpg -------------------------------------------------------------------------------- /doc/制作详解/自锁开关/自锁开关硬件图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/自锁开关/自锁开关硬件图.jpg -------------------------------------------------------------------------------- /doc/制作详解/自锁开关/自锁开关说明.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/自锁开关/自锁开关说明.txt -------------------------------------------------------------------------------- /doc/制作详解/轻触按键/图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/轻触按键/图.png -------------------------------------------------------------------------------- /doc/制作详解/轻触按键/按键原理图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/轻触按键/按键原理图.jpg -------------------------------------------------------------------------------- /doc/制作详解/轻触按键/按键解析图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/轻触按键/按键解析图.jpg -------------------------------------------------------------------------------- /doc/制作详解/轻触按键/按键解析图标注.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/轻触按键/按键解析图标注.jpg -------------------------------------------------------------------------------- /doc/制作详解/轻触按键/轻触按键实物图.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/制作详解/轻触按键/轻触按键实物图.jpg -------------------------------------------------------------------------------- /doc/原理图和PCB图/99s/BACKUP OF SHEET2.SCH: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/99s/BACKUP OF SHEET2.SCH -------------------------------------------------------------------------------- /doc/原理图和PCB图/99s/Previous Backup of Sheet2.Sch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/99s/Previous Backup of Sheet2.Sch -------------------------------------------------------------------------------- /doc/原理图和PCB图/99s/交通灯控制系统加蜂鸣器.Bkp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/99s/交通灯控制系统加蜂鸣器.Bkp -------------------------------------------------------------------------------- /doc/原理图和PCB图/99s/交通灯控制系统加蜂鸣器.ddb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/99s/交通灯控制系统加蜂鸣器.ddb -------------------------------------------------------------------------------- /doc/原理图和PCB图/DXP/BACKUP OF SHEET2.SCH: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/DXP/BACKUP OF SHEET2.SCH -------------------------------------------------------------------------------- /doc/原理图和PCB图/DXP/History/BACKUP OF SHEET2.~(1).SCH: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/DXP/History/BACKUP OF SHEET2.~(1).SCH -------------------------------------------------------------------------------- /doc/原理图和PCB图/DXP/History/BACKUP OF SHEET2.~(2).SCH: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/DXP/History/BACKUP OF SHEET2.~(2).SCH -------------------------------------------------------------------------------- /doc/原理图和PCB图/pcb源文件/1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/pcb源文件/1.pdf -------------------------------------------------------------------------------- /doc/原理图和PCB图/pcb源文件/Backup of PCB1.PCB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/pcb源文件/Backup of PCB1.PCB -------------------------------------------------------------------------------- /doc/原理图和PCB图/pcb源文件/Backup of Sheet2.Sch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/pcb源文件/Backup of Sheet2.Sch -------------------------------------------------------------------------------- /doc/原理图和PCB图/pcb源文件/Previous Backup of PCB1.PCB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/pcb源文件/Previous Backup of PCB1.PCB -------------------------------------------------------------------------------- /doc/原理图和PCB图/pcb源文件/交通灯控制系统加蜂鸣器.Bkp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/pcb源文件/交通灯控制系统加蜂鸣器.Bkp -------------------------------------------------------------------------------- /doc/原理图和PCB图/pcb源文件/交通灯控制系统加蜂鸣器.ddb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/pcb源文件/交通灯控制系统加蜂鸣器.ddb -------------------------------------------------------------------------------- /doc/原理图和PCB图/pcb源文件/焊接图.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/pcb源文件/焊接图.pdf -------------------------------------------------------------------------------- /doc/原理图和PCB图/pcb源文件/飞线说明.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/pcb源文件/飞线说明.jpg -------------------------------------------------------------------------------- /doc/原理图和PCB图/原理图.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/原理图.doc -------------------------------------------------------------------------------- /doc/原理图和PCB图/原理图.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/原理图和PCB图/原理图.pdf -------------------------------------------------------------------------------- /doc/参考论文/19-答辩常见问题合集/答辩常见问题合集.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考论文/19-答辩常见问题合集/答辩常见问题合集.doc -------------------------------------------------------------------------------- /doc/参考论文/19-答辩常见问题合集/答辩常见问题解答.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考论文/19-答辩常见问题合集/答辩常见问题解答.doc -------------------------------------------------------------------------------- /doc/参考论文/19-答辩常见问题合集/答辩技巧大全.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考论文/19-答辩常见问题合集/答辩技巧大全.doc -------------------------------------------------------------------------------- /doc/参考论文/2-正版+更新+单片机交通灯控制.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考论文/2-正版+更新+单片机交通灯控制.doc -------------------------------------------------------------------------------- /doc/参考论文/加蜂鸣器 2-正版+更新+单片机交通灯控制.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考论文/加蜂鸣器 2-正版+更新+单片机交通灯控制.doc -------------------------------------------------------------------------------- /doc/参考论文/单片机交通灯控制_毕业设计.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考论文/单片机交通灯控制_毕业设计.doc -------------------------------------------------------------------------------- /doc/参考论文/基于单片机的交通灯设计论文.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考论文/基于单片机的交通灯设计论文.doc -------------------------------------------------------------------------------- /doc/参考论文/硬件框图.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考论文/硬件框图.docx -------------------------------------------------------------------------------- /doc/参考资料/18-调试讲解和焊接注意事项/调试讲解和焊接注意事项.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/18-调试讲解和焊接注意事项/调试讲解和焊接注意事项.txt -------------------------------------------------------------------------------- /doc/参考资料/74HC245.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/74HC245.pdf -------------------------------------------------------------------------------- /doc/参考资料/AT89C51.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/AT89C51.pdf -------------------------------------------------------------------------------- /doc/参考资料/AT89S51.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/AT89S51.doc -------------------------------------------------------------------------------- /doc/参考资料/AT89S52的中文资料.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/AT89S52的中文资料.doc -------------------------------------------------------------------------------- /doc/参考资料/STC89C51.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/STC89C51.pdf -------------------------------------------------------------------------------- /doc/参考资料/STC89C51应用介绍.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/STC89C51应用介绍.pdf -------------------------------------------------------------------------------- /doc/参考资料/STC89C52单片机.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/STC89C52单片机.doc -------------------------------------------------------------------------------- /doc/参考资料/at89c52.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/at89c52.docx -------------------------------------------------------------------------------- /doc/参考资料/stc89c52单片机.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/stc89c52单片机.pdf -------------------------------------------------------------------------------- /doc/参考资料/红外光电传感器.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/红外光电传感器.txt -------------------------------------------------------------------------------- /doc/参考资料/红外光电传感器E18-D50NK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/参考资料/红外光电传感器E18-D50NK.txt -------------------------------------------------------------------------------- /doc/实物图/IMG_0430.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/实物图/IMG_0430.JPG -------------------------------------------------------------------------------- /doc/实物图/IMG_0431.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/实物图/IMG_0431.JPG -------------------------------------------------------------------------------- /doc/实物图/IMG_0432.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/实物图/IMG_0432.JPG -------------------------------------------------------------------------------- /doc/实物图/IMG_0433.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/实物图/IMG_0433.JPG -------------------------------------------------------------------------------- /doc/实物图/IMG_0434.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/实物图/IMG_0434.JPG -------------------------------------------------------------------------------- /doc/实物图/样品2(1).JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/实物图/样品2(1).JPG -------------------------------------------------------------------------------- /doc/实物图/样品2(2).JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/实物图/样品2(2).JPG -------------------------------------------------------------------------------- /doc/实物图/说明.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/实物图/说明.JPG -------------------------------------------------------------------------------- /doc/开题报告/开题报告.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/开题报告/开题报告.doc -------------------------------------------------------------------------------- /doc/操作视频/2-交通灯原理图介绍.wmv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/操作视频/2-交通灯原理图介绍.wmv -------------------------------------------------------------------------------- /doc/操作视频/51单片机仿真中最小系统.txt: -------------------------------------------------------------------------------- 1 | http://v.youku.com/v_show/id_XODM4MDg4OTM2.html?f=23135740 2 | 3 | -------------------------------------------------------------------------------- /doc/操作视频/51单片机原理图中最小系统介绍.txt: -------------------------------------------------------------------------------- 1 | http://v.youku.com/v_show/id_XODM4MDg5NzMy.html?f=23135740 2 | 3 | -------------------------------------------------------------------------------- /doc/操作视频/51单片机最小系统电路相关知识.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/操作视频/51单片机最小系统电路相关知识.docx -------------------------------------------------------------------------------- /doc/操作视频/基于51单片机的智能交通灯系统设计 车流量检测 红绿灯设计 交通灯红外检测.mp4.16524405: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/操作视频/基于51单片机的智能交通灯系统设计 车流量检测 红绿灯设计 交通灯红外检测.mp4.16524405 -------------------------------------------------------------------------------- /doc/相关软件下载与教程/300个仿真例程.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/300个仿真例程.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/51单片机初学者视频.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/51单片机初学者视频.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/AD教程.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/AD教程.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/Altium Designer 15.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/Altium Designer 15.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/Altium Designer 6.9 原理图 PCB图建议安装这个打开.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/Altium Designer 6.9 原理图 PCB图建议安装这个打开.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/Altium Designer Sunner画图软件学习视频.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/Altium Designer Sunner画图软件学习视频.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/AltiumDesignerSummer9 画图软件.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/AltiumDesignerSummer9 画图软件.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/C语言学习资料.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/C语言学习资料.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/C语言视频教程.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/C语言视频教程.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/Keil软件安装.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/Keil软件安装.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/Protel99Se 软件.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/Protel99Se 软件.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/Protel99Se教学视频.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/Protel99Se教学视频.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/下载程序及其驱动.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/下载程序及其驱动.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/串口下载程序软件stc.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/串口下载程序软件stc.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/仿真教程.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/仿真教程.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/仿真软件proteus7.8.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/仿真软件proteus7.8.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/单片机十天征服你视频教程及课件.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/单片机十天征服你视频教程及课件.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/单片机辅助开发工具.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/单片机辅助开发工具.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/各类学习视频链接.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/各类学习视频链接.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/画图软件protel99se.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/画图软件protel99se.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/相关软件---百度云盘下载地址.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/相关软件---百度云盘下载地址.doc -------------------------------------------------------------------------------- /doc/相关软件下载与教程/答辩PPT模板.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/答辩PPT模板.txt -------------------------------------------------------------------------------- /doc/相关软件下载与教程/编写c程序软件keil4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/相关软件下载与教程/编写c程序软件keil4.txt -------------------------------------------------------------------------------- /doc/程序/STARTUP.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/程序/STARTUP.OBJ -------------------------------------------------------------------------------- /doc/程序/jtd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/程序/jtd -------------------------------------------------------------------------------- /doc/程序/jtd.LST: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/程序/jtd.LST -------------------------------------------------------------------------------- /doc/程序/jtd.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/程序/jtd.OBJ -------------------------------------------------------------------------------- /doc/程序/jtd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/程序/jtd.c -------------------------------------------------------------------------------- /doc/程序/jtd.lnp: -------------------------------------------------------------------------------- 1 | "STARTUP.obj", 2 | "jtd.obj" 3 | TO "jtd" 4 | -------------------------------------------------------------------------------- /doc/程序/jtd.plg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/程序/jtd.plg -------------------------------------------------------------------------------- /doc/答辩技巧/点阵板焊接技巧.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/答辩技巧/点阵板焊接技巧.pdf -------------------------------------------------------------------------------- /doc/答辩技巧/答辩常见问题合集.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/答辩技巧/答辩常见问题合集.txt -------------------------------------------------------------------------------- /doc/答辩技巧/答辩技巧大全.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/doc/答辩技巧/答辩技巧大全.doc -------------------------------------------------------------------------------- /install/mfz-rxtx-2.2-20081207-win-x64/BuildProperties.txt: -------------------------------------------------------------------------------- 1 | Build Date: Sun 12/07/2008 10:45 2 | Compiled on Processor Architecture: AMD64 3 | Compiled on Processor Identifier: Intel64 Family 15 Model 6 Stepping 4, GenuineIntel 4 | Compiled on Processor Level: 15 5 | Compiled on Processor Revision: 0604 6 | Java Virtual Machine: 7 | java version "1.6.0_10" 8 | Java(TM) SE Runtime Environment (build 1.6.0_10-b33) 9 | Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode) 10 | -------------------------------------------------------------------------------- /install/mfz-rxtx-2.2-20081207-win-x64/Install.txt: -------------------------------------------------------------------------------- 1 | 2 | Windows 3 | ---------------------------------------------------- 4 | 5 | Choose your binary build - x64 or x86 (based on which version of 6 | the JVM you are installing to) 7 | 8 | NOTE: You MUST match your architecture. You can't install the i386 9 | version on a 64-bit version of the JDK and vice-versa. 10 | 11 | For a JDK installation: 12 | 13 | Copy RXTXcomm.jar ---> \jre\lib\ext 14 | Copy rxtxSerial.dll ---> \jre\bin 15 | Copy rxtxParallel.dll ---> \jre\bin 16 | 17 | Linux 18 | ---------------------------------------------------- 19 | 20 | Choose your binary build - x86_64 or i386 (based on which version of 21 | the JVM you are installing to) 22 | 23 | NOTE: You MUST match your architecture. You can't install the i386 24 | version on a 64-bit version of the JDK and vice-versa. 25 | 26 | For a JDK installation on architecture=i386 27 | 28 | Copy RXTXcomm.jar ---> /jre/lib/ext 29 | Copy librxtxSerial.so ---> /jre/lib/i386/ 30 | Copy librxtxParallel.so ---> /jre/lib/i386/ 31 | 32 | NOTE: For a JDK installation on architecture=x86_64, just change the 33 | i386 to x86_64 above. -------------------------------------------------------------------------------- /install/mfz-rxtx-2.2-20081207-win-x64/RXTXcomm.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/install/mfz-rxtx-2.2-20081207-win-x64/RXTXcomm.jar -------------------------------------------------------------------------------- /install/mfz-rxtx-2.2-20081207-win-x64/Readme.txt: -------------------------------------------------------------------------------- 1 | Overview 2 | ----------------------------------------------- 3 | This package contains a custom binary distribution of 4 | the RXTX serial package for Java. 5 | 6 | Courtesy of Mfizz, Inc. (http://mfizz.com/) 7 | http://mfizz.com/oss/rxtx-for-java 8 | 9 | NOTE: If you include my builds in any of your distributions, 10 | please make sure to at least provide a note of thanks to 11 | Cloudhopper in your own ReleaseNotes. For example, 12 | 13 | "RXTX binary builds provided by Mfizz Inc. (http://mfizz.com/). 14 | Please see http://mfizz.com/oss/rxtx-for-java for more info." 15 | 16 | RXTX is a great package, but they were lacking pre-built 17 | binaries for x64 versions of Windows. I also wanted a 18 | version built explicitly with Microsoft Visual Studio 19 | rather than MinGW. 20 | 21 | Please see ReleaseNotes.txt for information about this 22 | specific release. 23 | 24 | 25 | Customization 26 | ----------------------------------------------- 27 | 28 | 1. I've based my build on recent CVS snapshots. Please 29 | see the ReleaseNotes.txt for information about which 30 | snapshot I based this distribution on. 31 | 32 | 2. Removed UTS_NAME warning from .c files to match 33 | kernel with the version you compiled against. 34 | 35 | 3. Changed version in RXTXVersion.jar and in SerialImp.c 36 | to match my release so that I know its compiled via a CVS 37 | snapshot. 38 | 39 | 40 | win-x86, win-x64, ia64 41 | ----------------------------------------------- 42 | Built using Microsoft Visual C++ 2008 - not MinGW. The 43 | x86 and x64 versions are native and do not rely on 44 | any other non-standard windows libraries. Just drop 45 | in the compiled .dlls that are specific to the version 46 | of Java you run. If you installed the 64-bit version 47 | of the JDK, then install the x64 build. 48 | 49 | I've tested the x86 and x64 version with Windows 2008, 50 | 2003, and Vista SP1. 51 | 52 | 53 | linux-i386 & linux-x86_64 54 | ----------------------------------------------- 55 | Built using CentOS 5.2 and gcc 4.1.2. 56 | 57 | Just drop in the compiled .dlls that are specific to 58 | the version of Java you run. If you installed the 64-bit 59 | version of the JDK, then install the x64 build. 60 | 61 | I've tested the x86 and x64 versions with x86 and x64 62 | versions of CentOS 5.0 and 5.2. 63 | -------------------------------------------------------------------------------- /install/mfz-rxtx-2.2-20081207-win-x64/ReleaseNotes.txt: -------------------------------------------------------------------------------- 1 | Release Notes 2 | -------------------------------------------------- 3 | 4 | Mfizz distibution of RXTX serial package for Java. 5 | 6 | http://mfizz.com/oss/rxtx-for-java 7 | 8 | 2.2-20081207 9 | 10 | * Initial distribution 11 | * linux-i386 and linux-x86_64 using CentOS 5.2 and GCC 4.1.2 12 | * win-x86, win-x64, and win-ia64 builds using MSCV 2008 13 | * CVS snapshot of RXTX-2.2 from 12/07/2008 14 | * Please see BuildInfo.txt for more information about the 15 | particular build you downloaded 16 | * All windows builds crash the JVM if a COM port becomes 17 | unavailable. For example, if using a USB-to-serial port 18 | cable and you pull it out while your app is connected to the 19 | port. The linux version throws an exception in this scenario. 20 | Please note that even when compiled using mingw vs. MSVC, the 21 | build will have the same behavior. 22 | -------------------------------------------------------------------------------- /install/mfz-rxtx-2.2-20081207-win-x64/rxtxParallel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/install/mfz-rxtx-2.2-20081207-win-x64/rxtxParallel.dll -------------------------------------------------------------------------------- /install/mfz-rxtx-2.2-20081207-win-x64/rxtxSerial.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/install/mfz-rxtx-2.2-20081207-win-x64/rxtxSerial.dll -------------------------------------------------------------------------------- /master/keil/STARTUP.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/keil/STARTUP.OBJ -------------------------------------------------------------------------------- /master/keil/main.LST: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/keil/main.LST -------------------------------------------------------------------------------- /master/keil/main.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/keil/main.OBJ -------------------------------------------------------------------------------- /master/keil/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/keil/main.c -------------------------------------------------------------------------------- /master/keil/main.c.orig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/keil/main.c.orig -------------------------------------------------------------------------------- /master/keil/zm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/keil/zm -------------------------------------------------------------------------------- /master/keil/zm.hex: -------------------------------------------------------------------------------- 1 | :030000000202CF2A 2 | :0C02CF00787FE4F6D8FD75813502031637 3 | :0A065A00C0F9A4B0999282F88090D4 4 | :100542000232000F0234000F021E000F0222000FBF 5 | :10055200022C0007022E000A0228000302240003D4 6 | :1005620002200000022A0001021200010210000013 7 | :10057200020C000002080000020A0000021800003B 8 | :08058200021400000226000132 9 | :08066D0012063E12043780FB67 10 | :0F063E00D2AFD288D2A8D28AD2AAD2A9020621DC 11 | :03000B0002058B60 12 | :10058B00C0E0C0F0C083C082C0D075D000C000C036 13 | :10059B0001C002C003C004C005C006C007758C4C67 14 | :1005AB00758A00120026120190120495D007D0060E 15 | :1005BB00D005D004D003D002D001D000D0D0D0824F 16 | :0705CB00D083D0F0D0E03234 17 | :1003CF00EE7064EF146021146031146043240370E5 18 | :1003DF0056E4F520F521F52675270185342E853550 19 | :1003EF002F85322C85332D22752C00752D63752E9C 20 | :1003FF0000752F63E4F520F5218028752C00752DED 21 | :10040F0063752E00752F63752000752102E480132C 22 | :10041F00752C00752D63752E00752F637520007573 23 | :08042F002104E4F526F5272263 24 | :10043700AE2EAF2F7C007D0A1204ED8F1AAE2EAFC1 25 | :100447002F7C007D0A1204ED8D1BAE2CAF2D7C0096 26 | :100457007D0A1204ED8F1CAE2CAF2D7C007D0A1295 27 | :1004670004ED8D1D759001E51A1205D2759002E510 28 | :100477001B1205D2759004E51C1205D2759008E58C 29 | :0E0487001D90065A93F5807F017E000205DC71 30 | :10019000E52060030202CEE52114605314607C1454 31 | :1001A000700302025614700302028A2404600302E0 32 | :1001B00002CEE512451324FF92A1B392A3E51345A5 33 | :1001C0001270047F0180027F00750C008F0DE51214 34 | :1001D000451324FFB392A4E512451324FF92A6E52C 35 | :1001E00013451270057F010202C97F000202C9E5B2 36 | :1001F00012451324FFB392A192A385120C85130D0F 37 | :1002000092A492A5E512451324FF92A6E513451288 38 | :1002100070047F0180027F000202C9E512451324A9 39 | :10022000FFB392A1E512451324FF92A3E5134512F3 40 | :1002300070047F0180027F00750C008F0DE5124570 41 | :100240001324FF92A4B392A6E513451270047F0114 42 | :1002500080027F008073E512451324FFB392A1E56D 43 | :1002600012451324FF92A3E513451270047F018009 44 | :10027000027F00750C008F0DE512451324FFB39229 45 | :10028000A492A685121085131122E512451324FFAE 46 | :10029000B392A1E512451324FF92A3E51345127012 47 | :1002A000047F0180027F00750C008F0DE51245135D 48 | :1002B00024FFB392A4E512451324FF92A6E513454B 49 | :0F02C0001270047F0180027F007510008F1122E1 50 | :100495000517E51770020516C3940AE51694004082 51 | :1004A50046E4F516F517050FE50F7002050ED39412 52 | :1004B5000AE50E94004005E4F50EF50FE51145102B 53 | :1004C5006007E50F1392A58009E512451324FFB3D4 54 | :1004D50092A5E50D450C6006E50F1392A222E512E3 55 | :0804E500451324FFB392A2228B 56 | :100026000531E53170020530C39414E53094005073 57 | :100036000302018FE5274526700302018FE4F530A0 58 | :10004600F531E52F152F7002152EE52D152D7002B1 59 | :10005600152CE52B452A70030200F9D3E52D9400F3 60 | :10006600E52C9400400EE50D450C7008F520F521B1 61 | :10007600F50CF50DD3E52D9400E52C94005016E50E 62 | :100086000D450C701085242C85252DF50C750D015C 63 | :10009600F520752101D3E52D9400E52C9400503E02 64 | :1000A600E50D6401450C7036F50CF50D12035BE5A4 65 | :1000B600232525F52DE5223524F52C85222E8523AD 66 | :1000C6002F85342285352385321E85331FE52B4542 67 | :1000D6002A70047F0180027F00752A008F2BD3E5EA 68 | :1000E6002F9400E52E9400400302018F852C2E8567 69 | :1000F6002D2F22D3E52F9400E52E9400400FE51115 70 | :1001060045107009F520752102F510F511D3E52F7C 71 | :100116009400E52E94005016E511451070108528C0 72 | :100126002E85292FF510751101F520752103D3E5CC 73 | :100136002F9400E52E9400503FE5116401451070A0 74 | :100146003712035B851E2C851F2DE52D2529F52FDE 75 | :10015600E52C3528F52E85342285352385321E85F6 76 | :10016600331FE4F510F511E52B452A70047F018055 77 | :10017600027F00752A008F2BD3E52D9400E52C9481 78 | :0A018600005006852E2C852F2D2237 79 | :10035B00E52B452A6006AE08AF098004AE0AAF0B49 80 | :10036B007C007D031204EDEF2519F519EE3518F518 81 | :10037B0018D3E519940AE518940040067E007F0A0D 82 | :10038B008004AE18AF198E188F19E52B452A600E15 83 | :10039B00E5192523F523E5183522F522800CE519FF 84 | :1003AB00251FF51FE518351EF51EE50925E0FFE5B0 85 | :1003BB000833FE120664E4F518F519F508F509F58E 86 | :0403CB000AF50B2202 87 | :0A05D20090065A93F5807F017E0029 88 | :1005DC00E4FDFCC3ED9FEC9E5015E4FBFA0BBB0055 89 | :0F05EC00010AEB647C4A70F50DBD00010C80E440 90 | :0105FB0022DD 91 | :10062100758921E4F58A758C4CC28DD28C759850F0 92 | :0D063100F587758BFD758DFDD28ED2AC2244 93 | :090664008F99751400751501222F 94 | :03000300020016E2 95 | :0D001600C0E00509E50970020508D0E032E0 96 | :0300130002064D95 97 | :0D064D00C0E0050BE50B7002050AD0E0329D 98 | :030023000205FCD7 99 | :1005FC00C0E0C0D075D000C006C007309809C298C2 100 | :10060C00AF997E001203CF309902C299D007D00661 101 | :05061C00D0D0D0E03257 102 | :03000600020000F5 103 | :1002DB0002066DE493A3F8E493A34003F68001F2C6 104 | :1002EB0008DFF48029E493A3F85407240CC8C33324 105 | :1002FB00C4540F4420C8834004F456800146F6DFF3 106 | :10030B00E4800B0102040810204080900542E47E3B 107 | :10031B00019360BCA3FF543F30E509541FFEE493E7 108 | :10032B00A360010ECF54C025E060A840B8E493A3AE 109 | :10033B00FAE493A3F8E493A3C8C582C8CAC583CAD9 110 | :10034B00F0A3C8C582C8CAC583CADFE9DEE780BE91 111 | :01058A000070 112 | :1004ED00BC000BBE0029EF8DF084FFADF022E4CCF3 113 | :1004FD00F875F008EF2FFFEE33FEEC33FCEE9DECBC 114 | :10050D00984005FCEE9DFE0FD5F0E9E4CEFD22ED01 115 | :10051D00F8F5F0EE8420D21CFEADF075F008EF2F4B 116 | :10052D00FFED33FD4007985006D5F0F222C398FD3C 117 | :05053D000FD5F0EA22D9 118 | :00000001FF 119 | -------------------------------------------------------------------------------- /master/keil/zm.lnp: -------------------------------------------------------------------------------- 1 | "STARTUP.obj", 2 | "main.obj" 3 | TO "zm" 4 | -------------------------------------------------------------------------------- /master/keil/zm.omf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/keil/zm.omf -------------------------------------------------------------------------------- /master/proteus/Backup Of zm.DBK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/proteus/Backup Of zm.DBK -------------------------------------------------------------------------------- /master/proteus/Last Loaded zm.DBK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/proteus/Last Loaded zm.DBK -------------------------------------------------------------------------------- /master/proteus/zm.DSN: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/proteus/zm.DSN -------------------------------------------------------------------------------- /master/proteus/zm.PWI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/master/proteus/zm.PWI -------------------------------------------------------------------------------- /nginx-1.15.9/conf/fastcgi.conf: -------------------------------------------------------------------------------- 1 | 2 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 3 | fastcgi_param QUERY_STRING $query_string; 4 | fastcgi_param REQUEST_METHOD $request_method; 5 | fastcgi_param CONTENT_TYPE $content_type; 6 | fastcgi_param CONTENT_LENGTH $content_length; 7 | 8 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 9 | fastcgi_param REQUEST_URI $request_uri; 10 | fastcgi_param DOCUMENT_URI $document_uri; 11 | fastcgi_param DOCUMENT_ROOT $document_root; 12 | fastcgi_param SERVER_PROTOCOL $server_protocol; 13 | fastcgi_param REQUEST_SCHEME $scheme; 14 | fastcgi_param HTTPS $https if_not_empty; 15 | 16 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 17 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 18 | 19 | fastcgi_param REMOTE_ADDR $remote_addr; 20 | fastcgi_param REMOTE_PORT $remote_port; 21 | fastcgi_param SERVER_ADDR $server_addr; 22 | fastcgi_param SERVER_PORT $server_port; 23 | fastcgi_param SERVER_NAME $server_name; 24 | 25 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 26 | fastcgi_param REDIRECT_STATUS 200; 27 | -------------------------------------------------------------------------------- /nginx-1.15.9/conf/fastcgi_params: -------------------------------------------------------------------------------- 1 | 2 | fastcgi_param QUERY_STRING $query_string; 3 | fastcgi_param REQUEST_METHOD $request_method; 4 | fastcgi_param CONTENT_TYPE $content_type; 5 | fastcgi_param CONTENT_LENGTH $content_length; 6 | 7 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 8 | fastcgi_param REQUEST_URI $request_uri; 9 | fastcgi_param DOCUMENT_URI $document_uri; 10 | fastcgi_param DOCUMENT_ROOT $document_root; 11 | fastcgi_param SERVER_PROTOCOL $server_protocol; 12 | fastcgi_param REQUEST_SCHEME $scheme; 13 | fastcgi_param HTTPS $https if_not_empty; 14 | 15 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 16 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 17 | 18 | fastcgi_param REMOTE_ADDR $remote_addr; 19 | fastcgi_param REMOTE_PORT $remote_port; 20 | fastcgi_param SERVER_ADDR $server_addr; 21 | fastcgi_param SERVER_PORT $server_port; 22 | fastcgi_param SERVER_NAME $server_name; 23 | 24 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 25 | fastcgi_param REDIRECT_STATUS 200; 26 | -------------------------------------------------------------------------------- /nginx-1.15.9/conf/koi-utf: -------------------------------------------------------------------------------- 1 | 2 | # This map is not a full koi8-r <> utf8 map: it does not contain 3 | # box-drawing and some other characters. Besides this map contains 4 | # several koi8-u and Byelorussian letters which are not in koi8-r. 5 | # If you need a full and standard map, use contrib/unicode2nginx/koi-utf 6 | # map instead. 7 | 8 | charset_map koi8-r utf-8 { 9 | 10 | 80 E282AC ; # euro 11 | 12 | 95 E280A2 ; # bullet 13 | 14 | 9A C2A0 ; #   15 | 16 | 9E C2B7 ; # · 17 | 18 | A3 D191 ; # small yo 19 | A4 D194 ; # small Ukrainian ye 20 | 21 | A6 D196 ; # small Ukrainian i 22 | A7 D197 ; # small Ukrainian yi 23 | 24 | AD D291 ; # small Ukrainian soft g 25 | AE D19E ; # small Byelorussian short u 26 | 27 | B0 C2B0 ; # ° 28 | 29 | B3 D081 ; # capital YO 30 | B4 D084 ; # capital Ukrainian YE 31 | 32 | B6 D086 ; # capital Ukrainian I 33 | B7 D087 ; # capital Ukrainian YI 34 | 35 | B9 E28496 ; # numero sign 36 | 37 | BD D290 ; # capital Ukrainian soft G 38 | BE D18E ; # capital Byelorussian short U 39 | 40 | BF C2A9 ; # (C) 41 | 42 | C0 D18E ; # small yu 43 | C1 D0B0 ; # small a 44 | C2 D0B1 ; # small b 45 | C3 D186 ; # small ts 46 | C4 D0B4 ; # small d 47 | C5 D0B5 ; # small ye 48 | C6 D184 ; # small f 49 | C7 D0B3 ; # small g 50 | C8 D185 ; # small kh 51 | C9 D0B8 ; # small i 52 | CA D0B9 ; # small j 53 | CB D0BA ; # small k 54 | CC D0BB ; # small l 55 | CD D0BC ; # small m 56 | CE D0BD ; # small n 57 | CF D0BE ; # small o 58 | 59 | D0 D0BF ; # small p 60 | D1 D18F ; # small ya 61 | D2 D180 ; # small r 62 | D3 D181 ; # small s 63 | D4 D182 ; # small t 64 | D5 D183 ; # small u 65 | D6 D0B6 ; # small zh 66 | D7 D0B2 ; # small v 67 | D8 D18C ; # small soft sign 68 | D9 D18B ; # small y 69 | DA D0B7 ; # small z 70 | DB D188 ; # small sh 71 | DC D18D ; # small e 72 | DD D189 ; # small shch 73 | DE D187 ; # small ch 74 | DF D18A ; # small hard sign 75 | 76 | E0 D0AE ; # capital YU 77 | E1 D090 ; # capital A 78 | E2 D091 ; # capital B 79 | E3 D0A6 ; # capital TS 80 | E4 D094 ; # capital D 81 | E5 D095 ; # capital YE 82 | E6 D0A4 ; # capital F 83 | E7 D093 ; # capital G 84 | E8 D0A5 ; # capital KH 85 | E9 D098 ; # capital I 86 | EA D099 ; # capital J 87 | EB D09A ; # capital K 88 | EC D09B ; # capital L 89 | ED D09C ; # capital M 90 | EE D09D ; # capital N 91 | EF D09E ; # capital O 92 | 93 | F0 D09F ; # capital P 94 | F1 D0AF ; # capital YA 95 | F2 D0A0 ; # capital R 96 | F3 D0A1 ; # capital S 97 | F4 D0A2 ; # capital T 98 | F5 D0A3 ; # capital U 99 | F6 D096 ; # capital ZH 100 | F7 D092 ; # capital V 101 | F8 D0AC ; # capital soft sign 102 | F9 D0AB ; # capital Y 103 | FA D097 ; # capital Z 104 | FB D0A8 ; # capital SH 105 | FC D0AD ; # capital E 106 | FD D0A9 ; # capital SHCH 107 | FE D0A7 ; # capital CH 108 | FF D0AA ; # capital hard sign 109 | } 110 | -------------------------------------------------------------------------------- /nginx-1.15.9/conf/koi-win: -------------------------------------------------------------------------------- 1 | 2 | charset_map koi8-r windows-1251 { 3 | 4 | 80 88 ; # euro 5 | 6 | 95 95 ; # bullet 7 | 8 | 9A A0 ; #   9 | 10 | 9E B7 ; # · 11 | 12 | A3 B8 ; # small yo 13 | A4 BA ; # small Ukrainian ye 14 | 15 | A6 B3 ; # small Ukrainian i 16 | A7 BF ; # small Ukrainian yi 17 | 18 | AD B4 ; # small Ukrainian soft g 19 | AE A2 ; # small Byelorussian short u 20 | 21 | B0 B0 ; # ° 22 | 23 | B3 A8 ; # capital YO 24 | B4 AA ; # capital Ukrainian YE 25 | 26 | B6 B2 ; # capital Ukrainian I 27 | B7 AF ; # capital Ukrainian YI 28 | 29 | B9 B9 ; # numero sign 30 | 31 | BD A5 ; # capital Ukrainian soft G 32 | BE A1 ; # capital Byelorussian short U 33 | 34 | BF A9 ; # (C) 35 | 36 | C0 FE ; # small yu 37 | C1 E0 ; # small a 38 | C2 E1 ; # small b 39 | C3 F6 ; # small ts 40 | C4 E4 ; # small d 41 | C5 E5 ; # small ye 42 | C6 F4 ; # small f 43 | C7 E3 ; # small g 44 | C8 F5 ; # small kh 45 | C9 E8 ; # small i 46 | CA E9 ; # small j 47 | CB EA ; # small k 48 | CC EB ; # small l 49 | CD EC ; # small m 50 | CE ED ; # small n 51 | CF EE ; # small o 52 | 53 | D0 EF ; # small p 54 | D1 FF ; # small ya 55 | D2 F0 ; # small r 56 | D3 F1 ; # small s 57 | D4 F2 ; # small t 58 | D5 F3 ; # small u 59 | D6 E6 ; # small zh 60 | D7 E2 ; # small v 61 | D8 FC ; # small soft sign 62 | D9 FB ; # small y 63 | DA E7 ; # small z 64 | DB F8 ; # small sh 65 | DC FD ; # small e 66 | DD F9 ; # small shch 67 | DE F7 ; # small ch 68 | DF FA ; # small hard sign 69 | 70 | E0 DE ; # capital YU 71 | E1 C0 ; # capital A 72 | E2 C1 ; # capital B 73 | E3 D6 ; # capital TS 74 | E4 C4 ; # capital D 75 | E5 C5 ; # capital YE 76 | E6 D4 ; # capital F 77 | E7 C3 ; # capital G 78 | E8 D5 ; # capital KH 79 | E9 C8 ; # capital I 80 | EA C9 ; # capital J 81 | EB CA ; # capital K 82 | EC CB ; # capital L 83 | ED CC ; # capital M 84 | EE CD ; # capital N 85 | EF CE ; # capital O 86 | 87 | F0 CF ; # capital P 88 | F1 DF ; # capital YA 89 | F2 D0 ; # capital R 90 | F3 D1 ; # capital S 91 | F4 D2 ; # capital T 92 | F5 D3 ; # capital U 93 | F6 C6 ; # capital ZH 94 | F7 C2 ; # capital V 95 | F8 DC ; # capital soft sign 96 | F9 DB ; # capital Y 97 | FA C7 ; # capital Z 98 | FB D8 ; # capital SH 99 | FC DD ; # capital E 100 | FD D9 ; # capital SHCH 101 | FE D7 ; # capital CH 102 | FF DA ; # capital hard sign 103 | } 104 | -------------------------------------------------------------------------------- /nginx-1.15.9/conf/mime.types: -------------------------------------------------------------------------------- 1 | 2 | types { 3 | text/html html htm shtml; 4 | text/css css; 5 | text/xml xml; 6 | image/gif gif; 7 | image/jpeg jpeg jpg; 8 | application/javascript js; 9 | application/atom+xml atom; 10 | application/rss+xml rss; 11 | 12 | text/mathml mml; 13 | text/plain txt; 14 | text/vnd.sun.j2me.app-descriptor jad; 15 | text/vnd.wap.wml wml; 16 | text/x-component htc; 17 | 18 | image/png png; 19 | image/svg+xml svg svgz; 20 | image/tiff tif tiff; 21 | image/vnd.wap.wbmp wbmp; 22 | image/webp webp; 23 | image/x-icon ico; 24 | image/x-jng jng; 25 | image/x-ms-bmp bmp; 26 | 27 | font/woff woff; 28 | font/woff2 woff2; 29 | 30 | application/java-archive jar war ear; 31 | application/json json; 32 | application/mac-binhex40 hqx; 33 | application/msword doc; 34 | application/pdf pdf; 35 | application/postscript ps eps ai; 36 | application/rtf rtf; 37 | application/vnd.apple.mpegurl m3u8; 38 | application/vnd.google-earth.kml+xml kml; 39 | application/vnd.google-earth.kmz kmz; 40 | application/vnd.ms-excel xls; 41 | application/vnd.ms-fontobject eot; 42 | application/vnd.ms-powerpoint ppt; 43 | application/vnd.oasis.opendocument.graphics odg; 44 | application/vnd.oasis.opendocument.presentation odp; 45 | application/vnd.oasis.opendocument.spreadsheet ods; 46 | application/vnd.oasis.opendocument.text odt; 47 | application/vnd.openxmlformats-officedocument.presentationml.presentation 48 | pptx; 49 | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet 50 | xlsx; 51 | application/vnd.openxmlformats-officedocument.wordprocessingml.document 52 | docx; 53 | application/vnd.wap.wmlc wmlc; 54 | application/x-7z-compressed 7z; 55 | application/x-cocoa cco; 56 | application/x-java-archive-diff jardiff; 57 | application/x-java-jnlp-file jnlp; 58 | application/x-makeself run; 59 | application/x-perl pl pm; 60 | application/x-pilot prc pdb; 61 | application/x-rar-compressed rar; 62 | application/x-redhat-package-manager rpm; 63 | application/x-sea sea; 64 | application/x-shockwave-flash swf; 65 | application/x-stuffit sit; 66 | application/x-tcl tcl tk; 67 | application/x-x509-ca-cert der pem crt; 68 | application/x-xpinstall xpi; 69 | application/xhtml+xml xhtml; 70 | application/xspf+xml xspf; 71 | application/zip zip; 72 | 73 | application/octet-stream bin exe dll; 74 | application/octet-stream deb; 75 | application/octet-stream dmg; 76 | application/octet-stream iso img; 77 | application/octet-stream msi msp msm; 78 | 79 | audio/midi mid midi kar; 80 | audio/mpeg mp3; 81 | audio/ogg ogg; 82 | audio/x-m4a m4a; 83 | audio/x-realaudio ra; 84 | 85 | video/3gpp 3gpp 3gp; 86 | video/mp2t ts; 87 | video/mp4 mp4; 88 | video/mpeg mpeg mpg; 89 | video/quicktime mov; 90 | video/webm webm; 91 | video/x-flv flv; 92 | video/x-m4v m4v; 93 | video/x-mng mng; 94 | video/x-ms-asf asx asf; 95 | video/x-ms-wmv wmv; 96 | video/x-msvideo avi; 97 | } 98 | -------------------------------------------------------------------------------- /nginx-1.15.9/conf/nginx.conf: -------------------------------------------------------------------------------- 1 | 2 | #user nobody; 3 | worker_processes 1; 4 | 5 | #error_log logs/error.log; 6 | #error_log logs/error.log notice; 7 | #error_log logs/error.log info; 8 | 9 | #pid logs/nginx.pid; 10 | 11 | 12 | events { 13 | worker_connections 1024; 14 | } 15 | 16 | 17 | http { 18 | include mime.types; 19 | default_type application/octet-stream; 20 | 21 | #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 22 | # '$status $body_bytes_sent "$http_referer" ' 23 | # '"$http_user_agent" "$http_x_forwarded_for"'; 24 | 25 | #access_log logs/access.log main; 26 | 27 | sendfile on; 28 | #tcp_nopush on; 29 | 30 | #keepalive_timeout 0; 31 | keepalive_timeout 65; 32 | 33 | #gzip on; 34 | 35 | server { 36 | listen 80; 37 | server_name localhost; 38 | 39 | #charset koi8-r; 40 | 41 | #access_log logs/host.access.log main; 42 | 43 | location / { 44 | root html; 45 | index index.html index.htm; 46 | } 47 | 48 | #error_page 404 /404.html; 49 | 50 | # redirect server error pages to the static page /50x.html 51 | # 52 | error_page 500 502 503 504 /50x.html; 53 | location = /50x.html { 54 | root html; 55 | } 56 | 57 | # proxy the PHP scripts to Apache listening on 127.0.0.1:80 58 | # 59 | #location ~ \.php$ { 60 | # proxy_pass http://127.0.0.1; 61 | #} 62 | 63 | # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 64 | # 65 | #location ~ \.php$ { 66 | # root html; 67 | # fastcgi_pass 127.0.0.1:9000; 68 | # fastcgi_index index.php; 69 | # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; 70 | # include fastcgi_params; 71 | #} 72 | 73 | # deny access to .htaccess files, if Apache's document root 74 | # concurs with nginx's one 75 | # 76 | #location ~ /\.ht { 77 | # deny all; 78 | #} 79 | } 80 | 81 | 82 | # another virtual host using mix of IP-, name-, and port-based configuration 83 | # 84 | server { 85 | listen 8001; 86 | server_name localhost; 87 | 88 | location / { 89 | proxy_pass http://127.0.0.1:8081; 90 | } 91 | location /user { 92 | proxy_pass http://127.0.0.1:8080/user; 93 | } 94 | location /record { 95 | proxy_pass http://127.0.0.1:8080/record; 96 | } 97 | } 98 | 99 | 100 | # HTTPS server 101 | # 102 | #server { 103 | # listen 443 ssl; 104 | # server_name localhost; 105 | 106 | # ssl_certificate cert.pem; 107 | # ssl_certificate_key cert.key; 108 | 109 | # ssl_session_cache shared:SSL:1m; 110 | # ssl_session_timeout 5m; 111 | 112 | # ssl_ciphers HIGH:!aNULL:!MD5; 113 | # ssl_prefer_server_ciphers on; 114 | 115 | # location / { 116 | # root html; 117 | # index index.html index.htm; 118 | # } 119 | #} 120 | 121 | } 122 | -------------------------------------------------------------------------------- /nginx-1.15.9/conf/scgi_params: -------------------------------------------------------------------------------- 1 | 2 | scgi_param REQUEST_METHOD $request_method; 3 | scgi_param REQUEST_URI $request_uri; 4 | scgi_param QUERY_STRING $query_string; 5 | scgi_param CONTENT_TYPE $content_type; 6 | 7 | scgi_param DOCUMENT_URI $document_uri; 8 | scgi_param DOCUMENT_ROOT $document_root; 9 | scgi_param SCGI 1; 10 | scgi_param SERVER_PROTOCOL $server_protocol; 11 | scgi_param REQUEST_SCHEME $scheme; 12 | scgi_param HTTPS $https if_not_empty; 13 | 14 | scgi_param REMOTE_ADDR $remote_addr; 15 | scgi_param REMOTE_PORT $remote_port; 16 | scgi_param SERVER_PORT $server_port; 17 | scgi_param SERVER_NAME $server_name; 18 | -------------------------------------------------------------------------------- /nginx-1.15.9/conf/uwsgi_params: -------------------------------------------------------------------------------- 1 | 2 | uwsgi_param QUERY_STRING $query_string; 3 | uwsgi_param REQUEST_METHOD $request_method; 4 | uwsgi_param CONTENT_TYPE $content_type; 5 | uwsgi_param CONTENT_LENGTH $content_length; 6 | 7 | uwsgi_param REQUEST_URI $request_uri; 8 | uwsgi_param PATH_INFO $document_uri; 9 | uwsgi_param DOCUMENT_ROOT $document_root; 10 | uwsgi_param SERVER_PROTOCOL $server_protocol; 11 | uwsgi_param REQUEST_SCHEME $scheme; 12 | uwsgi_param HTTPS $https if_not_empty; 13 | 14 | uwsgi_param REMOTE_ADDR $remote_addr; 15 | uwsgi_param REMOTE_PORT $remote_port; 16 | uwsgi_param SERVER_PORT $server_port; 17 | uwsgi_param SERVER_NAME $server_name; 18 | -------------------------------------------------------------------------------- /nginx-1.15.9/conf/win-utf: -------------------------------------------------------------------------------- 1 | 2 | # This map is not a full windows-1251 <> utf8 map: it does not 3 | # contain Serbian and Macedonian letters. If you need a full map, 4 | # use contrib/unicode2nginx/win-utf map instead. 5 | 6 | charset_map windows-1251 utf-8 { 7 | 8 | 82 E2809A ; # single low-9 quotation mark 9 | 10 | 84 E2809E ; # double low-9 quotation mark 11 | 85 E280A6 ; # ellipsis 12 | 86 E280A0 ; # dagger 13 | 87 E280A1 ; # double dagger 14 | 88 E282AC ; # euro 15 | 89 E280B0 ; # per mille 16 | 17 | 91 E28098 ; # left single quotation mark 18 | 92 E28099 ; # right single quotation mark 19 | 93 E2809C ; # left double quotation mark 20 | 94 E2809D ; # right double quotation mark 21 | 95 E280A2 ; # bullet 22 | 96 E28093 ; # en dash 23 | 97 E28094 ; # em dash 24 | 25 | 99 E284A2 ; # trade mark sign 26 | 27 | A0 C2A0 ; #   28 | A1 D18E ; # capital Byelorussian short U 29 | A2 D19E ; # small Byelorussian short u 30 | 31 | A4 C2A4 ; # currency sign 32 | A5 D290 ; # capital Ukrainian soft G 33 | A6 C2A6 ; # borken bar 34 | A7 C2A7 ; # section sign 35 | A8 D081 ; # capital YO 36 | A9 C2A9 ; # (C) 37 | AA D084 ; # capital Ukrainian YE 38 | AB C2AB ; # left-pointing double angle quotation mark 39 | AC C2AC ; # not sign 40 | AD C2AD ; # soft hypen 41 | AE C2AE ; # (R) 42 | AF D087 ; # capital Ukrainian YI 43 | 44 | B0 C2B0 ; # ° 45 | B1 C2B1 ; # plus-minus sign 46 | B2 D086 ; # capital Ukrainian I 47 | B3 D196 ; # small Ukrainian i 48 | B4 D291 ; # small Ukrainian soft g 49 | B5 C2B5 ; # micro sign 50 | B6 C2B6 ; # pilcrow sign 51 | B7 C2B7 ; # · 52 | B8 D191 ; # small yo 53 | B9 E28496 ; # numero sign 54 | BA D194 ; # small Ukrainian ye 55 | BB C2BB ; # right-pointing double angle quotation mark 56 | 57 | BF D197 ; # small Ukrainian yi 58 | 59 | C0 D090 ; # capital A 60 | C1 D091 ; # capital B 61 | C2 D092 ; # capital V 62 | C3 D093 ; # capital G 63 | C4 D094 ; # capital D 64 | C5 D095 ; # capital YE 65 | C6 D096 ; # capital ZH 66 | C7 D097 ; # capital Z 67 | C8 D098 ; # capital I 68 | C9 D099 ; # capital J 69 | CA D09A ; # capital K 70 | CB D09B ; # capital L 71 | CC D09C ; # capital M 72 | CD D09D ; # capital N 73 | CE D09E ; # capital O 74 | CF D09F ; # capital P 75 | 76 | D0 D0A0 ; # capital R 77 | D1 D0A1 ; # capital S 78 | D2 D0A2 ; # capital T 79 | D3 D0A3 ; # capital U 80 | D4 D0A4 ; # capital F 81 | D5 D0A5 ; # capital KH 82 | D6 D0A6 ; # capital TS 83 | D7 D0A7 ; # capital CH 84 | D8 D0A8 ; # capital SH 85 | D9 D0A9 ; # capital SHCH 86 | DA D0AA ; # capital hard sign 87 | DB D0AB ; # capital Y 88 | DC D0AC ; # capital soft sign 89 | DD D0AD ; # capital E 90 | DE D0AE ; # capital YU 91 | DF D0AF ; # capital YA 92 | 93 | E0 D0B0 ; # small a 94 | E1 D0B1 ; # small b 95 | E2 D0B2 ; # small v 96 | E3 D0B3 ; # small g 97 | E4 D0B4 ; # small d 98 | E5 D0B5 ; # small ye 99 | E6 D0B6 ; # small zh 100 | E7 D0B7 ; # small z 101 | E8 D0B8 ; # small i 102 | E9 D0B9 ; # small j 103 | EA D0BA ; # small k 104 | EB D0BB ; # small l 105 | EC D0BC ; # small m 106 | ED D0BD ; # small n 107 | EE D0BE ; # small o 108 | EF D0BF ; # small p 109 | 110 | F0 D180 ; # small r 111 | F1 D181 ; # small s 112 | F2 D182 ; # small t 113 | F3 D183 ; # small u 114 | F4 D184 ; # small f 115 | F5 D185 ; # small kh 116 | F6 D186 ; # small ts 117 | F7 D187 ; # small ch 118 | F8 D188 ; # small sh 119 | F9 D189 ; # small shch 120 | FA D18A ; # small hard sign 121 | FB D18B ; # small y 122 | FC D18C ; # small soft sign 123 | FD D18D ; # small e 124 | FE D18E ; # small yu 125 | FF D18F ; # small ya 126 | } 127 | -------------------------------------------------------------------------------- /nginx-1.15.9/contrib/README: -------------------------------------------------------------------------------- 1 | 2 | geo2nginx.pl by Andrei Nigmatulin 3 | 4 | The perl script to convert CSV geoip database ( free download 5 | at http://www.maxmind.com/app/geoip_country ) to format, suitable 6 | for use by the ngx_http_geo_module. 7 | 8 | 9 | unicode2nginx by Maxim Dounin 10 | 11 | The perl script to convert unicode mappings ( available 12 | at http://www.unicode.org/Public/MAPPINGS/ ) to the nginx 13 | configuration file format. 14 | Two generated full maps for windows-1251 and koi8-r. 15 | 16 | 17 | vim by Evan Miller 18 | 19 | Syntax highlighting of nginx configuration for vim, to be 20 | placed into ~/.vim/. 21 | 22 | -------------------------------------------------------------------------------- /nginx-1.15.9/contrib/geo2nginx.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | 3 | # (c) Andrei Nigmatulin, 2005 4 | # 5 | # this script provided "as is", without any warranties. use it at your own risk. 6 | # 7 | # special thanx to Andrew Sitnikov for perl port 8 | # 9 | # this script converts CSV geoip database (free download at http://www.maxmind.com/app/geoip_country) 10 | # to format, suitable for use with nginx_http_geo module (http://sysoev.ru/nginx) 11 | # 12 | # for example, line with ip range 13 | # 14 | # "62.16.68.0","62.16.127.255","1041253376","1041268735","RU","Russian Federation" 15 | # 16 | # will be converted to four subnetworks: 17 | # 18 | # 62.16.68.0/22 RU; 19 | # 62.16.72.0/21 RU; 20 | # 62.16.80.0/20 RU; 21 | # 62.16.96.0/19 RU; 22 | 23 | 24 | use warnings; 25 | use strict; 26 | 27 | while( ){ 28 | if (/"[^"]+","[^"]+","([^"]+)","([^"]+)","([^"]+)"/){ 29 | print_subnets($1, $2, $3); 30 | } 31 | } 32 | 33 | sub print_subnets { 34 | my ($a1, $a2, $c) = @_; 35 | my $l; 36 | while ($a1 <= $a2) { 37 | for ($l = 0; ($a1 & (1 << $l)) == 0 && ($a1 + ((1 << ($l + 1)) - 1)) <= $a2; $l++){}; 38 | print long2ip($a1) . "/" . (32 - $l) . " " . $c . ";\n"; 39 | $a1 += (1 << $l); 40 | } 41 | } 42 | 43 | sub long2ip { 44 | my $ip = shift; 45 | 46 | my $str = 0; 47 | 48 | $str = ($ip & 255); 49 | 50 | $ip >>= 8; 51 | $str = ($ip & 255).".$str"; 52 | 53 | $ip >>= 8; 54 | $str = ($ip & 255).".$str"; 55 | 56 | $ip >>= 8; 57 | $str = ($ip & 255).".$str"; 58 | } 59 | -------------------------------------------------------------------------------- /nginx-1.15.9/contrib/unicode2nginx/koi-utf: -------------------------------------------------------------------------------- 1 | charset_map koi8-r utf-8 { 2 | 3 | 80 E29480 ; # BOX DRAWINGS LIGHT HORIZONTAL 4 | 81 E29482 ; # BOX DRAWINGS LIGHT VERTICAL 5 | 82 E2948C ; # BOX DRAWINGS LIGHT DOWN AND RIGHT 6 | 83 E29490 ; # BOX DRAWINGS LIGHT DOWN AND LEFT 7 | 84 E29494 ; # BOX DRAWINGS LIGHT UP AND RIGHT 8 | 85 E29498 ; # BOX DRAWINGS LIGHT UP AND LEFT 9 | 86 E2949C ; # BOX DRAWINGS LIGHT VERTICAL AND RIGHT 10 | 87 E294A4 ; # BOX DRAWINGS LIGHT VERTICAL AND LEFT 11 | 88 E294AC ; # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL 12 | 89 E294B4 ; # BOX DRAWINGS LIGHT UP AND HORIZONTAL 13 | 8A E294BC ; # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL 14 | 8B E29680 ; # UPPER HALF BLOCK 15 | 8C E29684 ; # LOWER HALF BLOCK 16 | 8D E29688 ; # FULL BLOCK 17 | 8E E2968C ; # LEFT HALF BLOCK 18 | 8F E29690 ; # RIGHT HALF BLOCK 19 | 90 E29691 ; # LIGHT SHADE 20 | 91 E29692 ; # MEDIUM SHADE 21 | 92 E29693 ; # DARK SHADE 22 | 93 E28CA0 ; # TOP HALF INTEGRAL 23 | 94 E296A0 ; # BLACK SQUARE 24 | 95 E28899 ; # BULLET OPERATOR 25 | 96 E2889A ; # SQUARE ROOT 26 | 97 E28988 ; # ALMOST EQUAL TO 27 | 98 E289A4 ; # LESS-THAN OR EQUAL TO 28 | 99 E289A5 ; # GREATER-THAN OR EQUAL TO 29 | 9A C2A0 ; # NO-BREAK SPACE 30 | 9B E28CA1 ; # BOTTOM HALF INTEGRAL 31 | 9C C2B0 ; # DEGREE SIGN 32 | 9D C2B2 ; # SUPERSCRIPT TWO 33 | 9E C2B7 ; # MIDDLE DOT 34 | 9F C3B7 ; # DIVISION SIGN 35 | A0 E29590 ; # BOX DRAWINGS DOUBLE HORIZONTAL 36 | A1 E29591 ; # BOX DRAWINGS DOUBLE VERTICAL 37 | A2 E29592 ; # BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE 38 | A3 D191 ; # CYRILLIC SMALL LETTER IO 39 | A4 E29593 ; # BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE 40 | A5 E29594 ; # BOX DRAWINGS DOUBLE DOWN AND RIGHT 41 | A6 E29595 ; # BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE 42 | A7 E29596 ; # BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE 43 | A8 E29597 ; # BOX DRAWINGS DOUBLE DOWN AND LEFT 44 | A9 E29598 ; # BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE 45 | AA E29599 ; # BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE 46 | AB E2959A ; # BOX DRAWINGS DOUBLE UP AND RIGHT 47 | AC E2959B ; # BOX DRAWINGS UP SINGLE AND LEFT DOUBLE 48 | AD E2959C ; # BOX DRAWINGS UP DOUBLE AND LEFT SINGLE 49 | AE E2959D ; # BOX DRAWINGS DOUBLE UP AND LEFT 50 | AF E2959E ; # BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE 51 | B0 E2959F ; # BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE 52 | B1 E295A0 ; # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT 53 | B2 E295A1 ; # BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE 54 | B3 D081 ; # CYRILLIC CAPITAL LETTER IO 55 | B4 E295A2 ; # BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE 56 | B5 E295A3 ; # BOX DRAWINGS DOUBLE VERTICAL AND LEFT 57 | B6 E295A4 ; # BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE 58 | B7 E295A5 ; # BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE 59 | B8 E295A6 ; # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL 60 | B9 E295A7 ; # BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE 61 | BA E295A8 ; # BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE 62 | BB E295A9 ; # BOX DRAWINGS DOUBLE UP AND HORIZONTAL 63 | BC E295AA ; # BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE 64 | BD E295AB ; # BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE 65 | BE E295AC ; # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL 66 | BF C2A9 ; # COPYRIGHT SIGN 67 | C0 D18E ; # CYRILLIC SMALL LETTER YU 68 | C1 D0B0 ; # CYRILLIC SMALL LETTER A 69 | C2 D0B1 ; # CYRILLIC SMALL LETTER BE 70 | C3 D186 ; # CYRILLIC SMALL LETTER TSE 71 | C4 D0B4 ; # CYRILLIC SMALL LETTER DE 72 | C5 D0B5 ; # CYRILLIC SMALL LETTER IE 73 | C6 D184 ; # CYRILLIC SMALL LETTER EF 74 | C7 D0B3 ; # CYRILLIC SMALL LETTER GHE 75 | C8 D185 ; # CYRILLIC SMALL LETTER HA 76 | C9 D0B8 ; # CYRILLIC SMALL LETTER I 77 | CA D0B9 ; # CYRILLIC SMALL LETTER SHORT I 78 | CB D0BA ; # CYRILLIC SMALL LETTER KA 79 | CC D0BB ; # CYRILLIC SMALL LETTER EL 80 | CD D0BC ; # CYRILLIC SMALL LETTER EM 81 | CE D0BD ; # CYRILLIC SMALL LETTER EN 82 | CF D0BE ; # CYRILLIC SMALL LETTER O 83 | D0 D0BF ; # CYRILLIC SMALL LETTER PE 84 | D1 D18F ; # CYRILLIC SMALL LETTER YA 85 | D2 D180 ; # CYRILLIC SMALL LETTER ER 86 | D3 D181 ; # CYRILLIC SMALL LETTER ES 87 | D4 D182 ; # CYRILLIC SMALL LETTER TE 88 | D5 D183 ; # CYRILLIC SMALL LETTER U 89 | D6 D0B6 ; # CYRILLIC SMALL LETTER ZHE 90 | D7 D0B2 ; # CYRILLIC SMALL LETTER VE 91 | D8 D18C ; # CYRILLIC SMALL LETTER SOFT SIGN 92 | D9 D18B ; # CYRILLIC SMALL LETTER YERU 93 | DA D0B7 ; # CYRILLIC SMALL LETTER ZE 94 | DB D188 ; # CYRILLIC SMALL LETTER SHA 95 | DC D18D ; # CYRILLIC SMALL LETTER E 96 | DD D189 ; # CYRILLIC SMALL LETTER SHCHA 97 | DE D187 ; # CYRILLIC SMALL LETTER CHE 98 | DF D18A ; # CYRILLIC SMALL LETTER HARD SIGN 99 | E0 D0AE ; # CYRILLIC CAPITAL LETTER YU 100 | E1 D090 ; # CYRILLIC CAPITAL LETTER A 101 | E2 D091 ; # CYRILLIC CAPITAL LETTER BE 102 | E3 D0A6 ; # CYRILLIC CAPITAL LETTER TSE 103 | E4 D094 ; # CYRILLIC CAPITAL LETTER DE 104 | E5 D095 ; # CYRILLIC CAPITAL LETTER IE 105 | E6 D0A4 ; # CYRILLIC CAPITAL LETTER EF 106 | E7 D093 ; # CYRILLIC CAPITAL LETTER GHE 107 | E8 D0A5 ; # CYRILLIC CAPITAL LETTER HA 108 | E9 D098 ; # CYRILLIC CAPITAL LETTER I 109 | EA D099 ; # CYRILLIC CAPITAL LETTER SHORT I 110 | EB D09A ; # CYRILLIC CAPITAL LETTER KA 111 | EC D09B ; # CYRILLIC CAPITAL LETTER EL 112 | ED D09C ; # CYRILLIC CAPITAL LETTER EM 113 | EE D09D ; # CYRILLIC CAPITAL LETTER EN 114 | EF D09E ; # CYRILLIC CAPITAL LETTER O 115 | F0 D09F ; # CYRILLIC CAPITAL LETTER PE 116 | F1 D0AF ; # CYRILLIC CAPITAL LETTER YA 117 | F2 D0A0 ; # CYRILLIC CAPITAL LETTER ER 118 | F3 D0A1 ; # CYRILLIC CAPITAL LETTER ES 119 | F4 D0A2 ; # CYRILLIC CAPITAL LETTER TE 120 | F5 D0A3 ; # CYRILLIC CAPITAL LETTER U 121 | F6 D096 ; # CYRILLIC CAPITAL LETTER ZHE 122 | F7 D092 ; # CYRILLIC CAPITAL LETTER VE 123 | F8 D0AC ; # CYRILLIC CAPITAL LETTER SOFT SIGN 124 | F9 D0AB ; # CYRILLIC CAPITAL LETTER YERU 125 | FA D097 ; # CYRILLIC CAPITAL LETTER ZE 126 | FB D0A8 ; # CYRILLIC CAPITAL LETTER SHA 127 | FC D0AD ; # CYRILLIC CAPITAL LETTER E 128 | FD D0A9 ; # CYRILLIC CAPITAL LETTER SHCHA 129 | FE D0A7 ; # CYRILLIC CAPITAL LETTER CHE 130 | FF D0AA ; # CYRILLIC CAPITAL LETTER HARD SIGN 131 | } 132 | -------------------------------------------------------------------------------- /nginx-1.15.9/contrib/unicode2nginx/unicode-to-nginx.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | 3 | # Convert unicode mappings to nginx configuration file format. 4 | 5 | # You may find useful mappings in various places, including 6 | # unicode.org official site: 7 | # 8 | # http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1251.TXT 9 | # http://www.unicode.org/Public/MAPPINGS/VENDORS/MISC/KOI8-R.TXT 10 | 11 | # Needs perl 5.6 or later. 12 | 13 | # Written by Maxim Dounin, mdounin@mdounin.ru 14 | 15 | ############################################################################### 16 | 17 | require 5.006; 18 | 19 | while (<>) { 20 | # Skip comments and empty lines 21 | 22 | next if /^#/; 23 | next if /^\s*$/; 24 | chomp; 25 | 26 | # Convert mappings 27 | 28 | if (/^\s*0x(..)\s*0x(....)\s*(#.*)/) { 29 | # Mapping "#" 30 | my $cs_code = $1; 31 | my $un_code = $2; 32 | my $un_name = $3; 33 | 34 | # Produce UTF-8 sequence from character code; 35 | 36 | my $un_utf8 = join('', 37 | map { sprintf("%02X", $_) } 38 | unpack("U0C*", pack("U", hex($un_code))) 39 | ); 40 | 41 | print " $cs_code $un_utf8 ; $un_name\n"; 42 | 43 | } else { 44 | warn "Unrecognized line: '$_'"; 45 | } 46 | } 47 | 48 | ############################################################################### 49 | -------------------------------------------------------------------------------- /nginx-1.15.9/contrib/unicode2nginx/win-utf: -------------------------------------------------------------------------------- 1 | charset_map windows-1251 utf-8 { 2 | 3 | 80 D082 ; #CYRILLIC CAPITAL LETTER DJE 4 | 81 D083 ; #CYRILLIC CAPITAL LETTER GJE 5 | 82 E2809A ; #SINGLE LOW-9 QUOTATION MARK 6 | 83 D193 ; #CYRILLIC SMALL LETTER GJE 7 | 84 E2809E ; #DOUBLE LOW-9 QUOTATION MARK 8 | 85 E280A6 ; #HORIZONTAL ELLIPSIS 9 | 86 E280A0 ; #DAGGER 10 | 87 E280A1 ; #DOUBLE DAGGER 11 | 88 E282AC ; #EURO SIGN 12 | 89 E280B0 ; #PER MILLE SIGN 13 | 8A D089 ; #CYRILLIC CAPITAL LETTER LJE 14 | 8B E280B9 ; #SINGLE LEFT-POINTING ANGLE QUOTATION MARK 15 | 8C D08A ; #CYRILLIC CAPITAL LETTER NJE 16 | 8D D08C ; #CYRILLIC CAPITAL LETTER KJE 17 | 8E D08B ; #CYRILLIC CAPITAL LETTER TSHE 18 | 8F D08F ; #CYRILLIC CAPITAL LETTER DZHE 19 | 90 D192 ; #CYRILLIC SMALL LETTER DJE 20 | 91 E28098 ; #LEFT SINGLE QUOTATION MARK 21 | 92 E28099 ; #RIGHT SINGLE QUOTATION MARK 22 | 93 E2809C ; #LEFT DOUBLE QUOTATION MARK 23 | 94 E2809D ; #RIGHT DOUBLE QUOTATION MARK 24 | 95 E280A2 ; #BULLET 25 | 96 E28093 ; #EN DASH 26 | 97 E28094 ; #EM DASH 27 | 99 E284A2 ; #TRADE MARK SIGN 28 | 9A D199 ; #CYRILLIC SMALL LETTER LJE 29 | 9B E280BA ; #SINGLE RIGHT-POINTING ANGLE QUOTATION MARK 30 | 9C D19A ; #CYRILLIC SMALL LETTER NJE 31 | 9D D19C ; #CYRILLIC SMALL LETTER KJE 32 | 9E D19B ; #CYRILLIC SMALL LETTER TSHE 33 | 9F D19F ; #CYRILLIC SMALL LETTER DZHE 34 | A0 C2A0 ; #NO-BREAK SPACE 35 | A1 D08E ; #CYRILLIC CAPITAL LETTER SHORT U 36 | A2 D19E ; #CYRILLIC SMALL LETTER SHORT U 37 | A3 D088 ; #CYRILLIC CAPITAL LETTER JE 38 | A4 C2A4 ; #CURRENCY SIGN 39 | A5 D290 ; #CYRILLIC CAPITAL LETTER GHE WITH UPTURN 40 | A6 C2A6 ; #BROKEN BAR 41 | A7 C2A7 ; #SECTION SIGN 42 | A8 D081 ; #CYRILLIC CAPITAL LETTER IO 43 | A9 C2A9 ; #COPYRIGHT SIGN 44 | AA D084 ; #CYRILLIC CAPITAL LETTER UKRAINIAN IE 45 | AB C2AB ; #LEFT-POINTING DOUBLE ANGLE QUOTATION MARK 46 | AC C2AC ; #NOT SIGN 47 | AD C2AD ; #SOFT HYPHEN 48 | AE C2AE ; #REGISTERED SIGN 49 | AF D087 ; #CYRILLIC CAPITAL LETTER YI 50 | B0 C2B0 ; #DEGREE SIGN 51 | B1 C2B1 ; #PLUS-MINUS SIGN 52 | B2 D086 ; #CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I 53 | B3 D196 ; #CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I 54 | B4 D291 ; #CYRILLIC SMALL LETTER GHE WITH UPTURN 55 | B5 C2B5 ; #MICRO SIGN 56 | B6 C2B6 ; #PILCROW SIGN 57 | B7 C2B7 ; #MIDDLE DOT 58 | B8 D191 ; #CYRILLIC SMALL LETTER IO 59 | B9 E28496 ; #NUMERO SIGN 60 | BA D194 ; #CYRILLIC SMALL LETTER UKRAINIAN IE 61 | BB C2BB ; #RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK 62 | BC D198 ; #CYRILLIC SMALL LETTER JE 63 | BD D085 ; #CYRILLIC CAPITAL LETTER DZE 64 | BE D195 ; #CYRILLIC SMALL LETTER DZE 65 | BF D197 ; #CYRILLIC SMALL LETTER YI 66 | C0 D090 ; #CYRILLIC CAPITAL LETTER A 67 | C1 D091 ; #CYRILLIC CAPITAL LETTER BE 68 | C2 D092 ; #CYRILLIC CAPITAL LETTER VE 69 | C3 D093 ; #CYRILLIC CAPITAL LETTER GHE 70 | C4 D094 ; #CYRILLIC CAPITAL LETTER DE 71 | C5 D095 ; #CYRILLIC CAPITAL LETTER IE 72 | C6 D096 ; #CYRILLIC CAPITAL LETTER ZHE 73 | C7 D097 ; #CYRILLIC CAPITAL LETTER ZE 74 | C8 D098 ; #CYRILLIC CAPITAL LETTER I 75 | C9 D099 ; #CYRILLIC CAPITAL LETTER SHORT I 76 | CA D09A ; #CYRILLIC CAPITAL LETTER KA 77 | CB D09B ; #CYRILLIC CAPITAL LETTER EL 78 | CC D09C ; #CYRILLIC CAPITAL LETTER EM 79 | CD D09D ; #CYRILLIC CAPITAL LETTER EN 80 | CE D09E ; #CYRILLIC CAPITAL LETTER O 81 | CF D09F ; #CYRILLIC CAPITAL LETTER PE 82 | D0 D0A0 ; #CYRILLIC CAPITAL LETTER ER 83 | D1 D0A1 ; #CYRILLIC CAPITAL LETTER ES 84 | D2 D0A2 ; #CYRILLIC CAPITAL LETTER TE 85 | D3 D0A3 ; #CYRILLIC CAPITAL LETTER U 86 | D4 D0A4 ; #CYRILLIC CAPITAL LETTER EF 87 | D5 D0A5 ; #CYRILLIC CAPITAL LETTER HA 88 | D6 D0A6 ; #CYRILLIC CAPITAL LETTER TSE 89 | D7 D0A7 ; #CYRILLIC CAPITAL LETTER CHE 90 | D8 D0A8 ; #CYRILLIC CAPITAL LETTER SHA 91 | D9 D0A9 ; #CYRILLIC CAPITAL LETTER SHCHA 92 | DA D0AA ; #CYRILLIC CAPITAL LETTER HARD SIGN 93 | DB D0AB ; #CYRILLIC CAPITAL LETTER YERU 94 | DC D0AC ; #CYRILLIC CAPITAL LETTER SOFT SIGN 95 | DD D0AD ; #CYRILLIC CAPITAL LETTER E 96 | DE D0AE ; #CYRILLIC CAPITAL LETTER YU 97 | DF D0AF ; #CYRILLIC CAPITAL LETTER YA 98 | E0 D0B0 ; #CYRILLIC SMALL LETTER A 99 | E1 D0B1 ; #CYRILLIC SMALL LETTER BE 100 | E2 D0B2 ; #CYRILLIC SMALL LETTER VE 101 | E3 D0B3 ; #CYRILLIC SMALL LETTER GHE 102 | E4 D0B4 ; #CYRILLIC SMALL LETTER DE 103 | E5 D0B5 ; #CYRILLIC SMALL LETTER IE 104 | E6 D0B6 ; #CYRILLIC SMALL LETTER ZHE 105 | E7 D0B7 ; #CYRILLIC SMALL LETTER ZE 106 | E8 D0B8 ; #CYRILLIC SMALL LETTER I 107 | E9 D0B9 ; #CYRILLIC SMALL LETTER SHORT I 108 | EA D0BA ; #CYRILLIC SMALL LETTER KA 109 | EB D0BB ; #CYRILLIC SMALL LETTER EL 110 | EC D0BC ; #CYRILLIC SMALL LETTER EM 111 | ED D0BD ; #CYRILLIC SMALL LETTER EN 112 | EE D0BE ; #CYRILLIC SMALL LETTER O 113 | EF D0BF ; #CYRILLIC SMALL LETTER PE 114 | F0 D180 ; #CYRILLIC SMALL LETTER ER 115 | F1 D181 ; #CYRILLIC SMALL LETTER ES 116 | F2 D182 ; #CYRILLIC SMALL LETTER TE 117 | F3 D183 ; #CYRILLIC SMALL LETTER U 118 | F4 D184 ; #CYRILLIC SMALL LETTER EF 119 | F5 D185 ; #CYRILLIC SMALL LETTER HA 120 | F6 D186 ; #CYRILLIC SMALL LETTER TSE 121 | F7 D187 ; #CYRILLIC SMALL LETTER CHE 122 | F8 D188 ; #CYRILLIC SMALL LETTER SHA 123 | F9 D189 ; #CYRILLIC SMALL LETTER SHCHA 124 | FA D18A ; #CYRILLIC SMALL LETTER HARD SIGN 125 | FB D18B ; #CYRILLIC SMALL LETTER YERU 126 | FC D18C ; #CYRILLIC SMALL LETTER SOFT SIGN 127 | FD D18D ; #CYRILLIC SMALL LETTER E 128 | FE D18E ; #CYRILLIC SMALL LETTER YU 129 | FF D18F ; #CYRILLIC SMALL LETTER YA 130 | } 131 | -------------------------------------------------------------------------------- /nginx-1.15.9/contrib/vim/ftdetect/nginx.vim: -------------------------------------------------------------------------------- 1 | au BufRead,BufNewFile *.nginx set ft=nginx 2 | au BufRead,BufNewFile */etc/nginx/* set ft=nginx 3 | au BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx 4 | au BufRead,BufNewFile nginx.conf set ft=nginx 5 | -------------------------------------------------------------------------------- /nginx-1.15.9/contrib/vim/ftplugin/nginx.vim: -------------------------------------------------------------------------------- 1 | setlocal commentstring=#\ %s 2 | -------------------------------------------------------------------------------- /nginx-1.15.9/contrib/vim/indent/nginx.vim: -------------------------------------------------------------------------------- 1 | if exists("b:did_indent") 2 | finish 3 | endif 4 | let b:did_indent = 1 5 | 6 | setlocal indentexpr= 7 | 8 | " cindent actually works for nginx' simple file structure 9 | setlocal cindent 10 | " Just make sure that the comments are not reset as defs would be. 11 | setlocal cinkeys-=0# 12 | -------------------------------------------------------------------------------- /nginx-1.15.9/docs/LICENSE: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2002-2019 Igor Sysoev 3 | * Copyright (C) 2011-2019 Nginx, Inc. 4 | * All rights reserved. 5 | * 6 | * Redistribution and use in source and binary forms, with or without 7 | * modification, are permitted provided that the following conditions 8 | * are met: 9 | * 1. Redistributions of source code must retain the above copyright 10 | * notice, this list of conditions and the following disclaimer. 11 | * 2. Redistributions in binary form must reproduce the above copyright 12 | * notice, this list of conditions and the following disclaimer in the 13 | * documentation and/or other materials provided with the distribution. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 | * SUCH DAMAGE. 26 | */ 27 | -------------------------------------------------------------------------------- /nginx-1.15.9/docs/OpenSSL.LICENSE: -------------------------------------------------------------------------------- 1 | 2 | LICENSE ISSUES 3 | ============== 4 | 5 | The OpenSSL toolkit stays under a double license, i.e. both the conditions of 6 | the OpenSSL License and the original SSLeay license apply to the toolkit. 7 | See below for the actual license texts. 8 | 9 | OpenSSL License 10 | --------------- 11 | 12 | /* ==================================================================== 13 | * Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved. 14 | * 15 | * Redistribution and use in source and binary forms, with or without 16 | * modification, are permitted provided that the following conditions 17 | * are met: 18 | * 19 | * 1. Redistributions of source code must retain the above copyright 20 | * notice, this list of conditions and the following disclaimer. 21 | * 22 | * 2. Redistributions in binary form must reproduce the above copyright 23 | * notice, this list of conditions and the following disclaimer in 24 | * the documentation and/or other materials provided with the 25 | * distribution. 26 | * 27 | * 3. All advertising materials mentioning features or use of this 28 | * software must display the following acknowledgment: 29 | * "This product includes software developed by the OpenSSL Project 30 | * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 31 | * 32 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 33 | * endorse or promote products derived from this software without 34 | * prior written permission. For written permission, please contact 35 | * openssl-core@openssl.org. 36 | * 37 | * 5. Products derived from this software may not be called "OpenSSL" 38 | * nor may "OpenSSL" appear in their names without prior written 39 | * permission of the OpenSSL Project. 40 | * 41 | * 6. Redistributions of any form whatsoever must retain the following 42 | * acknowledgment: 43 | * "This product includes software developed by the OpenSSL Project 44 | * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 45 | * 46 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 47 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 48 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 49 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 50 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 51 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 52 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 53 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 54 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 55 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 56 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 57 | * OF THE POSSIBILITY OF SUCH DAMAGE. 58 | * ==================================================================== 59 | * 60 | * This product includes cryptographic software written by Eric Young 61 | * (eay@cryptsoft.com). This product includes software written by Tim 62 | * Hudson (tjh@cryptsoft.com). 63 | * 64 | */ 65 | 66 | Original SSLeay License 67 | ----------------------- 68 | 69 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 70 | * All rights reserved. 71 | * 72 | * This package is an SSL implementation written 73 | * by Eric Young (eay@cryptsoft.com). 74 | * The implementation was written so as to conform with Netscapes SSL. 75 | * 76 | * This library is free for commercial and non-commercial use as long as 77 | * the following conditions are aheared to. The following conditions 78 | * apply to all code found in this distribution, be it the RC4, RSA, 79 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation 80 | * included with this distribution is covered by the same copyright terms 81 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). 82 | * 83 | * Copyright remains Eric Young's, and as such any Copyright notices in 84 | * the code are not to be removed. 85 | * If this package is used in a product, Eric Young should be given attribution 86 | * as the author of the parts of the library used. 87 | * This can be in the form of a textual message at program startup or 88 | * in documentation (online or textual) provided with the package. 89 | * 90 | * Redistribution and use in source and binary forms, with or without 91 | * modification, are permitted provided that the following conditions 92 | * are met: 93 | * 1. Redistributions of source code must retain the copyright 94 | * notice, this list of conditions and the following disclaimer. 95 | * 2. Redistributions in binary form must reproduce the above copyright 96 | * notice, this list of conditions and the following disclaimer in the 97 | * documentation and/or other materials provided with the distribution. 98 | * 3. All advertising materials mentioning features or use of this software 99 | * must display the following acknowledgement: 100 | * "This product includes cryptographic software written by 101 | * Eric Young (eay@cryptsoft.com)" 102 | * The word 'cryptographic' can be left out if the rouines from the library 103 | * being used are not cryptographic related :-). 104 | * 4. If you include any Windows specific code (or a derivative thereof) from 105 | * the apps directory (application code) you must include an acknowledgement: 106 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" 107 | * 108 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND 109 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 110 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 111 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 112 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 113 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 114 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 115 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 116 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 117 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 118 | * SUCH DAMAGE. 119 | * 120 | * The licence and distribution terms for any publically available version or 121 | * derivative of this code cannot be changed. i.e. this code cannot simply be 122 | * copied and put under another distribution licence 123 | * [including the GNU Public Licence.] 124 | */ 125 | 126 | -------------------------------------------------------------------------------- /nginx-1.15.9/docs/PCRE.LICENCE: -------------------------------------------------------------------------------- 1 | PCRE LICENCE 2 | ------------ 3 | 4 | PCRE is a library of functions to support regular expressions whose syntax 5 | and semantics are as close as possible to those of the Perl 5 language. 6 | 7 | Release 8 of PCRE is distributed under the terms of the "BSD" licence, as 8 | specified below. The documentation for PCRE, supplied in the "doc" 9 | directory, is distributed under the same terms as the software itself. The data 10 | in the testdata directory is not copyrighted and is in the public domain. 11 | 12 | The basic library functions are written in C and are freestanding. Also 13 | included in the distribution is a set of C++ wrapper functions, and a 14 | just-in-time compiler that can be used to optimize pattern matching. These 15 | are both optional features that can be omitted when the library is built. 16 | 17 | 18 | THE BASIC LIBRARY FUNCTIONS 19 | --------------------------- 20 | 21 | Written by: Philip Hazel 22 | Email local part: ph10 23 | Email domain: cam.ac.uk 24 | 25 | University of Cambridge Computing Service, 26 | Cambridge, England. 27 | 28 | Copyright (c) 1997-2018 University of Cambridge 29 | All rights reserved. 30 | 31 | 32 | PCRE JUST-IN-TIME COMPILATION SUPPORT 33 | ------------------------------------- 34 | 35 | Written by: Zoltan Herczeg 36 | Email local part: hzmester 37 | Emain domain: freemail.hu 38 | 39 | Copyright(c) 2010-2018 Zoltan Herczeg 40 | All rights reserved. 41 | 42 | 43 | STACK-LESS JUST-IN-TIME COMPILER 44 | -------------------------------- 45 | 46 | Written by: Zoltan Herczeg 47 | Email local part: hzmester 48 | Emain domain: freemail.hu 49 | 50 | Copyright(c) 2009-2018 Zoltan Herczeg 51 | All rights reserved. 52 | 53 | 54 | THE C++ WRAPPER FUNCTIONS 55 | ------------------------- 56 | 57 | Contributed by: Google Inc. 58 | 59 | Copyright (c) 2007-2012, Google Inc. 60 | All rights reserved. 61 | 62 | 63 | THE "BSD" LICENCE 64 | ----------------- 65 | 66 | Redistribution and use in source and binary forms, with or without 67 | modification, are permitted provided that the following conditions are met: 68 | 69 | * Redistributions of source code must retain the above copyright notice, 70 | this list of conditions and the following disclaimer. 71 | 72 | * Redistributions in binary form must reproduce the above copyright 73 | notice, this list of conditions and the following disclaimer in the 74 | documentation and/or other materials provided with the distribution. 75 | 76 | * Neither the name of the University of Cambridge nor the name of Google 77 | Inc. nor the names of their contributors may be used to endorse or 78 | promote products derived from this software without specific prior 79 | written permission. 80 | 81 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 82 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 83 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 84 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 85 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 86 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 87 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 88 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 89 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 90 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 91 | POSSIBILITY OF SUCH DAMAGE. 92 | 93 | End 94 | -------------------------------------------------------------------------------- /nginx-1.15.9/docs/README: -------------------------------------------------------------------------------- 1 | 2 | Documentation is available at http://nginx.org 3 | 4 | -------------------------------------------------------------------------------- /nginx-1.15.9/docs/zlib.LICENSE: -------------------------------------------------------------------------------- 1 | (C) 1995-2017 Jean-loup Gailly and Mark Adler 2 | 3 | This software is provided 'as-is', without any express or implied 4 | warranty. In no event will the authors be held liable for any damages 5 | arising from the use of this software. 6 | 7 | Permission is granted to anyone to use this software for any purpose, 8 | including commercial applications, and to alter it and redistribute it 9 | freely, subject to the following restrictions: 10 | 11 | 1. The origin of this software must not be misrepresented; you must not 12 | claim that you wrote the original software. If you use this software 13 | in a product, an acknowledgment in the product documentation would be 14 | appreciated but is not required. 15 | 2. Altered source versions must be plainly marked as such, and must not be 16 | misrepresented as being the original software. 17 | 3. This notice may not be removed or altered from any source distribution. 18 | 19 | Jean-loup Gailly Mark Adler 20 | jloup@gzip.org madler@alumni.caltech.edu 21 | -------------------------------------------------------------------------------- /nginx-1.15.9/html/50x.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error 5 | 12 | 13 | 14 |

An error occurred.

15 |

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

17 |

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

19 |

Faithfully yours, nginx.

20 | 21 | 22 | -------------------------------------------------------------------------------- /nginx-1.15.9/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Welcome to nginx! 5 | 12 | 13 | 14 |

Welcome to nginx!

15 |

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

17 | 18 |

For online documentation and support please refer to 19 | nginx.org.
20 | Commercial support is available at 21 | nginx.com.

22 | 23 |

Thank you for using nginx.

24 | 25 | 26 | -------------------------------------------------------------------------------- /nginx-1.15.9/logs/nginx.pid: -------------------------------------------------------------------------------- 1 | 6872 2 | -------------------------------------------------------------------------------- /nginx-1.15.9/nginx.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/nginx-1.15.9/nginx.exe -------------------------------------------------------------------------------- /source/仿真图/Last Loaded 交通灯.DBK: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/source/仿真图/Last Loaded 交通灯.DBK -------------------------------------------------------------------------------- /source/仿真图/交通灯.DSN: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/source/仿真图/交通灯.DSN -------------------------------------------------------------------------------- /source/仿真图/交通灯.PWI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/source/仿真图/交通灯.PWI -------------------------------------------------------------------------------- /source/程序/STARTUP.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/source/程序/STARTUP.OBJ -------------------------------------------------------------------------------- /source/程序/jtd.LST: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/source/程序/jtd.LST -------------------------------------------------------------------------------- /source/程序/jtd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/source/程序/jtd.c -------------------------------------------------------------------------------- /source/程序/jtd.lnp: -------------------------------------------------------------------------------- 1 | "STARTUP.obj", 2 | "jtd.obj" 3 | TO "jtd" 4 | -------------------------------------------------------------------------------- /source/程序/jtd.plg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/source/程序/jtd.plg -------------------------------------------------------------------------------- /test/1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/test/1.c -------------------------------------------------------------------------------- /test/STARTUP.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/test/STARTUP.OBJ -------------------------------------------------------------------------------- /test/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/test/test -------------------------------------------------------------------------------- /test/test.LST: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/test/test.LST -------------------------------------------------------------------------------- /test/test.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/test/test.OBJ -------------------------------------------------------------------------------- /test/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/test/test.c -------------------------------------------------------------------------------- /test/test.c.orig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/test/test.c.orig -------------------------------------------------------------------------------- /test/test.hex: -------------------------------------------------------------------------------- 1 | :03000000020026D5 2 | :0C002600787FE4F6D8FD75810D02006DB6 3 | :1001D30068656C6C6F20776F726C642100C0F9A442 4 | :0701E300B0999282F88090B0 5 | :0C023400020C000A020A0014020800007C 6 | :0A018F00F583E493F5807F017E0004 7 | :10019900E4FDFCC3ED9FEC9E5015E4FBFA0BBB009C 8 | :0F01A900010AEB647C4A70F50DBD00010C80E487 9 | :0101B8002224 10 | :040241007F23DFFE3A 11 | :010245002296 12 | :10021300D2AF758901D2A9758C4CE4F58AD28CC210 13 | :020223008D222A 14 | :1001EA00758920759850E4F587758BFD758DFDD25C 15 | :0601FA008ED2AFD2AC2250 16 | :0F0225008F99750800750901E509450870FA22DF 17 | :100200001200B2FF600C120225740129F9E43AFAD7 18 | :0302100080EE225B 19 | :100003001201EA12015A2092FA1202417BFF7A018D 20 | :0D00130079D3120200750C00750D1480E603 21 | :10015A00D291AE0CAF0D7C007D0A1200CB74E02D5B 22 | :10016A00F58274013C12018FC291D290AE0CAF0D90 23 | :10017A007C007D0A1200CB74E02FF58274013E12D6 24 | :05018A00018FC290226C 25 | :10012000758C4CE4F58AC3E50B9414E50A940050F1 26 | :1001300009050BE50B7022050A22E4F50AF50BD33D 27 | :10014000E50D9400E50C94004009E50D150D7009CE 28 | :0A015000150C22750C00750D0A2233 29 | :030023000201B91E 30 | :1001B90030980BC2988599807508007509013099A6 31 | :0A01C90008C299750800750900329C 32 | :10003200020003E493A3F8E493A34003F68001F2E1 33 | :1000420008DFF48029E493A3F85407240CC8C333CF 34 | :10005200C4540F4420C8834004F456800146F6DF9E 35 | :10006200E4800B0102040810204080900234E47EF8 36 | :10007200019360BCA3FF543F30E509541FFEE49393 37 | :10008200A360010ECF54C025E060A840B8E493A35A 38 | :10009200FAE493A3F8E493A3C8C582C8CAC583CA85 39 | :1000A200F0A3C8C582C8CAC583CADFE9DEE780BE3D 40 | :0102400000BD 41 | :1000B200BB010689828A83E0225002E722BBFE024C 42 | :0900C200E32289828A83E493227F 43 | :1000CB00BC000BBE0029EF8DF084FFADF022E4CC19 44 | :1000DB00F875F008EF2FFFEE33FEEC33FCEE9DECE2 45 | :1000EB00984005FCEE9DFE0FD5F0E9E4CEFD22ED28 46 | :1000FB00F8F5F0EE8420D21CFEADF075F008EF2F72 47 | :10010B00FFED33FD4007985006D5F0F222C398FD62 48 | :05011B000FD5F0EA22FF 49 | :00000001FF 50 | -------------------------------------------------------------------------------- /test/test.lnp: -------------------------------------------------------------------------------- 1 | "STARTUP.obj", 2 | "test.obj" 3 | TO "test" 4 | -------------------------------------------------------------------------------- /test/test.plg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mark4z/C51/cc6287b7aedfb5532a21367b55f8c8fbef26accf/test/test.plg --------------------------------------------------------------------------------