web 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
web 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
web 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 AGPL-3.0 License
开发语言
操作系统 跨平台
软件类型 开源软件
开源组织
地区 不详
投 递 者 首席测试
适用人群 未知
收录时间 2021-11-10

软件简介

⚠️ This repository has been migrated into overleaf/overleaf. See the monorepo announcement for more info. ⚠️


overleaf/web

overleaf/web is the front-end web service of the open-source web-based collaborative LaTeX editor, Overleaf. It serves all the HTML pages, CSS and javascript to the client. overleaf/web also contains a lot of logic around creating and editing projects, and account management.

The rest of the Overleaf stack, along with information about contributing can be found in the overleaf/overleaf repository.

Build process

overleaf/web uses Grunt to build its front-end related assets.

Image processing tasks are commented out in the gruntfile and the needed packages aren't presently in the project's package.json. If the images need to be processed again (minified and sprited), start by fetching the packages (npm install grunt-contrib-imagemin grunt-sprity), then decomment the tasks in Gruntfile.coffee. After this, the tasks can be called (explicitly, via grunt imagemin and grunt sprity).

New Docker-based build process

Note that the Grunt workflow from above should still work, but we are transitioning to a Docker based testing workflow, which is documented below:

Running the app

The app runs natively using npm and Node on the local system:

$ npm install
$ npm run start

Ideally the app would run in Docker like the tests below, but with host networking not supported in OS X, we need to run it natively until all services are Dockerised.

Running Tests

To run all tests run:

make test

To run both unit and acceptance tests for a module run:

make test_module MODULE=overleaf-integration

Unit Tests

The test suites run in Docker.

Unit tests can be run in the test_unit container defined in docker-compose.tests.yml.

The makefile contains a short cut to run these:

make test_unit

During development it is often useful to only run a subset of tests, which can be configured with arguments to the mocha CLI:

make test_unit MOCHA_GREP='AuthorizationManager'

To run only the unit tests for a single module do:

make test_unit_module MODULE=overleaf-integration

Module tests can also use a MOCHA_GREP argument:

make test_unit_module MODULE=overleaf-integration MOCHA_GREP=SSO

Acceptance Tests

Acceptance tests are run against a live service, which runs in the acceptance_test container defined in docker-compose.tests.yml.

To run the tests out-of-the-box, the makefile defines:

make test_acceptance

However, during development it is often useful to leave the service running for rapid iteration on the acceptance tests. This can be done with:

make test_acceptance_app_start_service
make test_acceptance_app_run # Run as many times as needed during development
make test_acceptance_app_stop_service

make test_acceptance just runs these three commands in sequence and then runs make test_acceptance_modules which performs the tests for each module in the modules directory. (Note that there is not currently an equivalent to the -start / -run x n / -stop series for modules.)

During development it is often useful to only run a subset of tests, which can be configured with arguments to the mocha CLI:

make test_acceptance_run MOCHA_GREP='AuthorizationManager'

To run only the acceptance tests for a single module do:

make test_acceptance_module MODULE=overleaf-integration

Module tests can also use a MOCHA_GREP argument:

make test_acceptance_module MODULE=overleaf-integration MOCHA_GREP=SSO

Routes

Run bin/routes to print out all routes in the project.

License and Credits

This project is licensed under the AGPLv3 license

Stylesheets

Overleaf is based on Bootstrap, which is licensed under the MIT license. All modifications (*.less files in public/stylesheets) are also licensed under the MIT license.

Artwork

Silk icon set 1.3

We gratefully acknowledge Mark James for releasing his Silk icon set under the Creative Commons Attribution 2.5 license. Some of these icons are used within Overleaf inside the public/img/silk and public/brand/icons directories.

IconShock icons

We gratefully acknowledge IconShock for use of the icons in the public/img/iconshock directory found via findicons.com

展开阅读全文

代码

评论 (0)

加载中
更多评论
暂无内容
发表了博客
2018/11/25 20:36

web服务器、Web中间件和Web容器的区别

目录 Web服务器 中间件 容器 总结 Web开发的选择 我们经常会被Web服务器、Web容器和Web中间件这三个概念搞混。因为我们常见的很多网站要么是由IIS搭建,要么是由Apache、Tomcat、Ngnix搭建。所以,我们会把他们都叫成是Web服务器,因为他们都提供了Web服务,可以让我们通过http协议访问到。但是又有很多地方会说Tomcat是Servlet容器,而又有很多地方会说Tomcat是Web中间件!那么,他们到底是Web服务器还是容器,还是Web中间件呢...

0
0
发表了博客
2019/03/03 20:46

Web前端 Web前端和Web后端的区分

一、绪论 1、 前台:呈现给用户的视觉和基本的操作。 后台:用户浏览网页时,我们看不见的后台数据跑动。后台包括前端、后端。 前端:对应我们写的html、css、javascript 等网页语言作用在前端网页。 后端:对应jsp、javaBean、dao层、action层和service层的业务逻辑代码。(包括数据库) 为什么jsp是后端呢?主要是jsp的运行原理是在tomcat服务器运行的。 2、 (1)javaweb是java开发中的一个方向 java有搞安卓的,搞web的,搞嵌...

0
0
发表了博客
2019/06/12 23:58

Web应用和Web框架

一、Web应用 二、Web框架 三、wsgiref模块 一、Web应用   1、什么是Web应用?   Web应用程序是一种可以通过Web访问的应用程序,特点是用户很容易访问,只需要有浏览器即可,不需要安装其他软件。   2、Web应用程序的模式   应用程序有两种模式,即C/S、B/S两种,C/S是客户端/服务器端程序,这类程序一般独立运行;而B/S就是浏览器端/服务器端应用程序,这类应用程序一般借助谷歌,火狐等浏览器来运行。Web应用程序一般是...

0
0
发表了博客
2019/09/28 12:10

web前端 -- web介绍

1、先简单介绍几个概念:   H5是HTML标准的5.0版本,HTML5简称H5。需要用到的技术:HTML + CSS、JavaScript。   web前端:是根据H5的功能和作用所起的一个别名。这里可以举个栗子:微博 - 新浪微博 类比 web前端 - H5。   网页:标记成对出现,标记不会显示在浏览器页面上,这些标记超越了普通文本的意义,叫做HyperText。   HTML:Hypertext Markup Language(超文本标记语言)。   总的来说,H5和HTML5是同一个东西,...

0
0
发表了博客
2018/12/14 20:56

Web容器Web服务器及常见的Web容器有哪些?

  一、引言   首先来理解一下简单的一个请求发送到响应的过程。 首先,客户端,通常是浏览器或者一些应用发送请求到你的服务器地址,比如访问你的Url或者其他的东西。而我们的服务器通常要分为两个部分,一部分是服务器硬件,有了硬件之后还有有硬件上对应运行的软件。即服务器软件 其次,服务器的硬件部分接收到了这一段请求,将其递交给对应的进程,服务器软件。此时这个服务器软件即为Web服务器,比如说Apache。 再然后,...

0
0
发表了博客
2012/03/02 13:58

Web

Web 2.0,Web Service, Web Application, Web API, PHP, Ajax, JSON, JQuery, SOA, Web Server,NoSQL, MySQL

0
0
发表于AI & 大数据专区
2020/03/13 01:26

web

Learning Web Design: A Beginner’s Guide to HTML, CSS, JavaScript, and Web Graphics Learning Web Design 5th Edition https://download.csdn.net/download/tangjixuanxi26/10668902?utm_source=bbsseo

0
0
2016/11/17 23:01

web

@RequestMapping("/content/category/list") @ResponseBody public List<EasyUITreeNode> getContentCatoryList(@RequestParam(value="id",defaultValue="0") Long parentId){ List<EasyUITreeNode> list = contentCatoryService.getContentCatoryList(parentId); return list; } @RequestMapping("/content/category/create") @ResponseBody public TaotaoResult insertContentCatory(TbContentCategory category){ TaotaoResu...

0
0
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
2021/11/20 17:06

nginx如何配置https与http跳转问题

一个A项目的页面嵌入到B项目中,目前通过nginx已经成功转发并且显示了页面,但是A项目中有一个http的后台请求,请求成功后会跳转到A项目的另一个页面,目前A项目后台已经确认请求成功了,但是谷歌浏览器把这个请求给拦截住了,不允许操作了,请问各位大神是否有解决方案,十分感谢 根据网上的其他方法,已经将该网站的不安全内容设置为允许了。

5
0
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
0 评论
0 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部