Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions .gitpod.yml

This file was deleted.

6 changes: 0 additions & 6 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
![Python Build](https://github.com/internetarchive/openlibrary/actions/workflows/python_tests.yml/badge.svg)
![JS Build](https://github.com/internetarchive/openlibrary/actions/workflows/javascript_tests.yml/badge.svg)
[![Join the chat at https://gitter.im/theopenlibrary/Lobby](https://badges.gitter.im/theopenlibrary/Lobby.svg)](https://gitter.im/theopenlibrary/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Open in Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/internetarchive/openlibrary/)
[![contributors](https://img.shields.io/github/contributors/internetarchive/openlibrary.svg)](https://github.com/internetarchive/openlibrary/graphs/contributors)

[Open Library](https://openlibrary.org) is an open, editable library catalog, building towards a web page for every book ever published.
Expand Down Expand Up @@ -45,11 +44,6 @@ Run `docker compose up` and visit http://localhost:8080
Need more details? Checkout the [Docker instructions](https://github.com/internetarchive/openlibrary/blob/master/docker/README.md)
or [video tutorial](https://archive.org/embed/openlibrary-developer-docs/openlibrary-docker-set-up.mp4).

***Alternatively***, if you do not want to set up Open Library on your local computer, try Gitpod!
This lets you work on Open Library entirely in your browser without having to install anything on your personal computer.
Warning: This integration is still experimental.
[![Open In Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/internetarchive/openlibrary/)

### Developer's Guide

You can also find more information regarding Developer Documentation for Open Library in the Open Library [Wiki](https://github.com/internetarchive/openlibrary/wiki/).
Expand Down
4 changes: 0 additions & 4 deletions Readme_chinese.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
![Python Build](https://github.com/internetarchive/openlibrary/actions/workflows/javascript_tests.yml/badge.svg)
![JS Build](https://github.com/internetarchive/openlibrary/actions/workflows/python_tests.yml/badge.svg)
[![Join the chat at https://gitter.im/theopenlibrary/Lobby](https://badges.gitter.im/theopenlibrary/Lobby.svg)](https://gitter.im/theopenlibrary/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/internetarchive/openlibrary/)

[公共图书馆](https://openlibrary.org)是一个开放的,可以编辑的图书平台。它为每一本已经出版的图书建立了其相关的网页。

Expand Down Expand Up @@ -42,9 +41,6 @@
需要更多信息?请查看 [Docker指南](https://github.com/internetarchive/openlibrary/blob/master/docker/README.md)
或者[视频教程](https://archive.org/embed/openlibrary-developer-docs/openlibrary-docker-set-up.mp4)。

***或者***,如果您不想在本地的电脑上安装公共图书馆,您可以尝试Gitpod!这可以让您在不安装任何插件的前提下,在浏览器中使用公共图书馆。警告:此集成仍在实验中。
[![Open In Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/internetarchive/openlibrary/)

### 给开发者的指南

有关管理公共图书馆实例的说明,请参考开发者的[快速入门](https://github.com/internetarchive/openlibrary/wiki/Getting-Started)指南。
Expand Down
6 changes: 0 additions & 6 deletions Readme_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
![Python Build](https://github.com/internetarchive/openlibrary/actions/workflows/python_tests.yml/badge.svg)
![JS Build](https://github.com/internetarchive/openlibrary/actions/workflows/javascript_tests.yml/badge.svg)
[![Únete al chat en https://gitter.im/theopenlibrary/Lobby](https://badges.gitter.im/theopenlibrary/Lobby.svg)](https://gitter.im/theopenlibrary/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Ábrelo en Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/internetarchive/openlibrary/)
[![Contribuidores](https://img.shields.io/github/contributors/internetarchive/openlibrary.svg)](https://github.com/internetarchive/openlibrary/graphs/contributors)

[Open Library](https://openlibrary.org) un catálogo de biblioteca abierto y editable, que se construye con el objetivo de crear una página web para todo libro que ha sido publicado
Expand Down Expand Up @@ -43,11 +42,6 @@ Ejecuta `docker compose up` y visita http://localhost:8080
¿Necesitas más detalles? Checa las [Instrucciones de Docker](https://github.com/internetarchive/openlibrary/blob/master/docker/README.md)
o el [video tutorial](https://archive.org/embed/openlibrary-developer-docs/openlibrary-docker-set-up.mp4).

***Alternativamente***, Si no quieres montar Open Library en tu computadora local, prueba Gitpod!
Esto te deja trabajar en Open Library enteramente desde tu navegador sin tener que instalar nada en tu computadora personal.
Advertencia: Esta integración sigue siendo experimental.
[![Ábrelo en Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/internetarchive/openlibrary/)

### Guía de Desarrollador

También puedes encontrar más información sobre la Documentación para Desarrolladores de Open Library en la [Wiki](https://github.com/internetarchive/openlibrary/wiki/) de Open Library.
Expand Down
5 changes: 0 additions & 5 deletions Readme_vn.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
![Python Build](https://github.com/internetarchive/openlibrary/actions/workflows/python_tests.yml/badge.svg)
![JS Build](https://github.com/internetarchive/openlibrary/actions/workflows/javascript_tests.yml/badge.svg)
[![Tham gia cuộc trò chuyện tại https://gitter.im/theopenlibrary/Lobby](https://badges.gitter.im/theopenlibrary/Lobby.svg)](https://gitter.im/theopenlibrary/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Mở trong Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/internetarchive/openlibrary/)
[![những người đóng góp](https://img.shields.io/github/contributors/internetarchive/openlibrary.svg)](https://github.com/internetarchive/openlibrary/graphs/contributors)

[Open Library](https://openlibrary.org) là một danh mục thư viện mở, có thể được chỉnh sửa, hướng tới việc tạo ra một trang web cho mỗi cuốn sách từng được xuất bản.
Expand Down Expand Up @@ -42,10 +41,6 @@ Chạy `docker compose up` và truy cập http://localhost:8080
Cần thêm chi tiết? Xem thử [Docker instructions](https://github.com/internetarchive/openlibrary/blob/master/docker/README.md)
hoặc [video hướng dẫn](https://archive.org/embed/openlibrary-developer-docs/openlibrary-docker-set-up.mp4).

***Ngoài ra***, nếu bạn không muốn thiết lập Open Library trên máy tính cá nhân của mình, hãy thử sử dụng Gitpod! Điều này cho phép bạn làm việc với Open Library hoàn toàn trong trình duyệt mà không cần cài đặt bất kỳ thứ gì trên máy tính cá nhân.
Cảnh báo: Việc tích hợp này vẫn đang trong giai đoạn thử nghiệm.
[![Open In Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/internetarchive/openlibrary/)

### Hướng dẫn dành cho nhà phát triển

Bạn cũng có thể tìm kiếm thêm thông tin về Tài liệu dành cho nhà phát triển của Open Library trong chính Open Library [Wiki](https://github.com/internetarchive/openlibrary/wiki/).
Expand Down
3 changes: 0 additions & 3 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Welcome to the Installation Guide for Open Library Developers

> [!TIP]
> Want to try Open Library in your browser without having to install anything on your personal computer? Try (experimental) Gitpod integration! [![Open In Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/internetarchive/openlibrary/)

1. [Pull code locally](#pull-code-locally)
2. [Install Docker](#install-docker) and [Test Docker](#test-docker)
3. [Prepare your system](#prepare-your-system)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export function matchStaticImages({ url }) {
export function matchStaticBuild({ url }) {
const regex = /^\/static\/build\/.*(\.js|\.css)/;
const localhost = url.origin.includes('localhost')
const gitpod = url.origin.includes('gitpod')
return !localhost && !gitpod && regex.test(url.pathname);
return !localhost && regex.test(url.pathname);
}

export function matchArchiveOrgImage({ url }) {
Expand Down
4 changes: 2 additions & 2 deletions openlibrary/plugins/upstream/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
logger = logging.getLogger('openlibrary.plugins.upstream.code')


# Note: This is done in web_nginx.conf on production ; this endpoint is
# only used in development/gitpod.
# Note: This is done in web_nginx.conf on production; this endpoint is
# only used in development.
class static(delegate.page):
path = "/images/.*"

Expand Down
8 changes: 0 additions & 8 deletions scripts/setup_gitpod.sh

This file was deleted.

3 changes: 1 addition & 2 deletions tests/unit/js/service-worker-matchers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ describe('URL Matchers', () => {
expect(matchStaticBuild(_u('https://testing.openlibrary.org/static/build/css/page-book.css?v=097b69dc350c972d96da0c70cebe7b75'))).toBe(true);
});

test('does not match localhost or gitpod URLs', () => {
test('does not match localhost URLs', () => {
expect(matchStaticBuild(_u('http://localhost:8080/static/build/js/4290.a0ae80aacde14696d322.js'))).toBe(false);
expect(matchStaticBuild(_u('https://8080-internetarc-openlibrary-feliyig0grl.ws-eu110.gitpod.io/static/build/js/4290.a0ae80aacde14696d322.js'))).toBe(false);
});
});

Expand Down
19 changes: 0 additions & 19 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,4 @@
module.exports = {
lintOnSave: false,
publicPath: '/static/components/',

// Add support for running from gitpod
...(process.env.GITPOD_WORKSPACE_ID ? {
devServer: {
allowedHosts: [
// It'll pick the first free one, so will be 8080 if OL not running, otherwise 8081.
// The rest are just in case/if you run multiple
`8080-${process.env.GITPOD_WORKSPACE_ID}.${process.env.GITPOD_WORKSPACE_CLUSTER_HOST}`,
`8081-${process.env.GITPOD_WORKSPACE_ID}.${process.env.GITPOD_WORKSPACE_CLUSTER_HOST}`,
`8082-${process.env.GITPOD_WORKSPACE_ID}.${process.env.GITPOD_WORKSPACE_CLUSTER_HOST}`,
`8083-${process.env.GITPOD_WORKSPACE_ID}.${process.env.GITPOD_WORKSPACE_CLUSTER_HOST}`,
],
client: {
webSocketURL: {
port: 443,
},
},
},
} : {}),
};