Giter Site home page Giter Site logo

yihaopeng / hu60-jhtml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iola1999/hu60-jhtml

0.0 1.0 0.0 193 KB

(并非官方的)虎绿林的 jhtml 版本

Home Page: https://hu60.cn/q.php/bbs.topic.92126.1.html

JavaScript 20.36% HTML 0.61% Vue 49.88% CSS 29.15%

hu60-jhtml's Introduction

hu60-jhtml

(并非官方的)虎绿林的 jhtml 版本

使用方法

https://hu60.cn/q.php/bbs.topic.92126.html

另外提供一个反代版本方便体验:https://www.gotosjtu.cn/hu60-jhtml

已实现的功能

  • 首页帖子列表展示
  • 帖子内容展示
  • 回复展示
  • 登录(写完才意识到不登录用不了 jhtml......不过可以做个反代版本供体验)
  • 个人资料展示
  • 回帖
  • 板块列表
  • 发帖
  • 聊天室

开发过程中的跨域解决

理论上直接使用 devServer 即可,但虎绿林服务器解析请求有很多奇怪的表现(可能是我太菜了吧),使用 devServer 有很多问题。

故尝试使用 nginx 做开发时的代理(线上没影响),参考配置如下:

(开发时访问 nginx 的端口,而非 vue.config.js 的端口)

location /sockjs-node/ {
    proxy_pass               'http://localhost:8080/sockjs-node/';
    proxy_http_version       1.1;
    proxy_set_header         Upgrade $http_upgrade;
    proxy_set_header         Connection "upgrade";
}

location /api/ {
    proxy_pass               'https://hu60.cn/q.php/';
    proxy_set_header         Host 'hu60.cn';
    proxy_set_header         'Referer' 'https://hu60.cn';
    proxy_set_header         'origin' 'https://hu60.cn';
    #修改登录响应的set-cookie域名
    proxy_cookie_domain      hu60.cn localhost;
    expires                  0;
}

location / {
    proxy_pass               'http://localhost:8080/';
    expires                  0;
}

hu60-jhtml's People

Contributors

iola1999 avatar wisp-x avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.