# cliyafront **Repository Path**: litinyana/cliyafront ## Basic Information - **Project Name**: cliyafront - **Description**: 网页c语言运行环境系统前端 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-04 - **Last Updated**: 2026-06-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cliya C语言在线使用编程工具 > 这个为前端项目,后端项目在: ### 项目来源: 就是自己想要手搓一个了,当然,我觉得做的也挺好的。 ### 需要安装的包: ``` # 安装 monaco 编辑器 npm install monaco-editor # 安装 axios 用于请求后端 npm install axios ``` ## Project Setup ```sh #安装依赖 npm install #启动本地开发 npm run dev #项目打包 npm run build #格式化 npm run format ###检查 npm run lint ``` 原本是直接请求后端的,但是由于前端升级了https,所以会产生 ``` request-BJcls8RT.js:3 Mixed Content: The page at 'https://xiranya.cn/diaries/login' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://11212/api/auth/login'. This request has been blocked; the content must be served over HTTPS. ``` 其实就是https不能够直接请求http 于是cliya\src\pages\MainRun.vue里面的请求转成了: '/csandbox/api/runs' 还加了一层转发: ```nginx配置 location ^~ /csandbox/api/ { proxy_pass http://118.89.90.232:8889/api/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_connect_timeout 10s; proxy_send_timeout 300s; proxy_read_timeout 300s; proxy_buffering off; } ```