doccano / doccano

Open source annotation tool for machine learning practitioners.
MIT License
9.42k stars 1.72k forks source link

[Enhancement request] Using without Internet #1238

Closed kuraga closed 3 years ago

kuraga commented 3 years ago

Feature description

Haven't an ability to set doccano in a closed environment (i.e. without Internet): doccano uses on-line Google Fonts (UPD: and some other issues). Feature request: provide using without internet.

kuraga commented 3 years ago

My research by git grep http on v1.2.1:

frontend/nuxt.config.js:      { src: 'https://use.fontawesome.com/releases/v5.0.6/js/all.js' }
frontend/nuxt.config.js:          'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons'
app/server/templates/admin.html:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/vs2015.min.css">
app/server/templates/base.html:  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
app/server/templates/base.html:  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet">
app/server/templates/base.html:  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" crossorigin="anonymous">
app/server/templates/base.html:  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-extensions@4.0.1/bulma-divider/dist/css/bulma-divider.min.css" crossorigin="anonymous">
app/server/templates/base.html:  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-extensions@4.0.1/bulma-checkradio/dist/css/bulma-checkradio.min.css" crossorigin="anonymous">
app/server/templates/base.html:  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-extensions@4.0.1/bulma-tooltip/dist/css/bulma-tooltip.min.css" crossorigin="anonymous">
app/server/templates/index.html:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.3.3/css/swiper.min.css">
app/server/templates/index.html:              <img src="https://source.unsplash.com/RWnpyGtY1aU" alt="Placeholder image" class="modal-button" data-target="modal-image2">
app/server/templates/index.html:              <img src="https://source.unsplash.com/6Ticnhs1AG0" alt="Placeholder image">
app/server/templates/index.html:              <img src="https://i.imgsafe.org/ba/baa924a5e3.png" alt="Placeholder image">
kuraga commented 3 years ago

My partial workaround: https://github.com/kuraga/doccano/commit/da52419548e88b57f245a24ec3630c9719930b38

Hironsan commented 3 years ago

https://github.com/nuxt-community/google-fonts-module