Giter Club home page Giter Club logo

dotland's Introduction

dotland

This repository has been archived as the source code has been moved to be closed-source only instead. For any issues, please open an issue on https://github.com/denoland/website_feedback.

Build Status

This is the code for https://deno.land/

We want to provide pretty and semantic URLs for modules that will be used within Deno. For example: https://deno.land/std/http/server.ts

When we request this file inside of Deno, we need to receive back the raw content of the file. However, when we visit that URL in the browser we want to see a pretty HTML file with syntax highlighting.

To accomplish this, we look at the "Accept:" HTTP header to see if the client wants HTML or not. If it does want HTML, we simply render the html, else we proxy the file contents from S3 buckets.

For questions or problems regarding modules, please e-mail [email protected].

Image License

These Deno images are distributed under the MIT license (public domain and free for use).

dotland's People

Contributors

apiel avatar asos-craigmorten avatar axetroy avatar bartlomieju avatar crowlkats avatar denobot avatar dependabot[bot] avatar dsherret avatar eliassjogreen avatar fakoua avatar fuxingzhang avatar justjavac avatar kidonng avatar kitsonk avatar ksxgithub avatar kt3k avatar lambtron avatar littledivy avatar littletof avatar lucacasonato avatar meszarosdezso avatar mooxl avatar mtwzim avatar ngot avatar piscisaureus avatar rjoydip avatar roj1512 avatar ry avatar satyarohith avatar tokiedokie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotland's Issues

404 errors from date_fns JS files in registry

If you visit this page: https://deno.land/x/date_fns/addMonths/index.js you'll see a 404 error.

This reporter seemed to think it was an issue with JS files: https://github.com/denoland/registry/issues/177

However, if you look at the "repository" link on the index.js page linked above, you'll see it points to: https://github.com/date-fns/date-fns/tree/mastersrc/addMonths/index.js

Note /tree/mastersrc/, which should actually be /tree/master/src/. I suspect this might have something to do with the handling of the path parameter in database.json: https://github.com/denoland/deno_website2/blob/92a20e81c51c051080311c2edefe517049dbafcd/src/database.json#L116

Note the old registry code has a leading /: https://github.com/denoland/registry/blob/714ffcf29d55620fb02b53c99c7d954a366a19e7/src/database.json#L116

Change to the Registry Page.

Hi,
In the registry page the top menu (Documentation, Repository, Raw) are displayed with BR and takes extra vertical spaces especially in mobile view.

I want to change this menu to inline horizontal view:

Documentation | Repository | Raw

Please let me know if you agree with this minor change to PR.

Thanks
d01

@lucacasonato

Add darkmode again

We should add darkmode again like we had on the v1 site. It should be based on prefers-color-scheme again.

We have to update:

  • main layout (material-ui theme)
  • code blocks (so cant use github-gist theme anymore)
  • charts (once/if #39 is merged the apexcharts theme)
  • invert deno logos

HTML code showing up between markdown.

Screenshot 2019-10-22 at 2 23 16 PM

@ry, The prettier HTML code is being shown between markdown. I was also trying to make the toc but its not being rendered properly. Please guide how to solve this. Would like to work on it. Thanks.

This screenshot is from the Manual page.

Visiting http doesn't redirect to https

Not sure if this is the right place for this, but here goes.

First time visit to deno.land (no prior visits) serves up the http version rather than https. Not sure if I'm missing something but I assume redirecting to https is preferable.

To repeat this behavior, cookies should be cleared (obviously) and visit http version or just type deno.land

Just thought I'd let you know.

Watching the project with interest.

[security] can inject JS into page via markdown files

Currently it is possible to inject javascript into pages that render markdown using, for example, a <img> element. This element has an onload parameter that will execute any JS that is passed to it once is succeeds/fails in loading the image.

Instead of blacklisting tags like we do now - currently only <script> is blacklisted - we should whitelist 'known good' tags like comments and <div>. The whitelist Github uses is more complex and is 'documented' here. It also takes the actual params of the tags into account.

can i help you?

Hi Ryan,

Can i help you with site?

I have a lot experience work with React and i have a free time.

500 Internal Server Error for misspelled module names

I noticed a difference between 404 of wrong path of a good module and a bad module.

Bad path of a good module gives HTTP 404 Not Found response and a short body but no Content-Type header:

$ curl https://deno.land/x/dirname/wrong-file.ts
404: Not Found

But when there is a mistake in the module name, the status is 500 Internal Server Error with Content-Type: text/html; charset=UTF-8 and a lot of HTML, even when requested by curl:

$ curl https://deno.land/x/wrong-module/mod.ts
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
[...]

Gatsby?

If you are using netlify have you considered using Gatsby?

Proxy arbitrary repos from deno.land/x/?

Would it make sense to allow the viewing / proxying of any repo from https://deno.land/x/?

e.g. something like https://deno.land/x/gh/USERNAME/MODULE_NAME@BRANCH/SCRIPT.ts for GitHub. Or maybe just https://deno.land/gh/....

Gitlab and others could be supported with alternate reserved prefixes. Just thinking about the long term editorial and maintenance contract of database.json. But maybe its perhaps intended as an editorialized / secondary std.

It seems like maybe the idea behind https://deno.land/x is similar to that of https://godoc.org and/or the go module proxy?

Page loads too slowly

The current page load resource is too slow

And the loaded resource pack is too large

截屏2019-12-1700 30 42

we should add babel-import-plugin plugin

Load components on demand

Then the component/router should be loaded dynamically

eg. Chart component

Add a field to database.json for main entry point of module

I want people to be able to import pogo from 'https://deno.land/x/pogo', but right now that doesn't work because the registry doesn't know which file to point to.

It would be great if I could specify the main entry point in database.json.

I created module-url to make this a bit easier. It is a utility that takes an object as input, in nearly the same format as is used in database.json, and it returns a URL string of where to fetch the module from.

wanted: Add search input to registry page

We already have more than 120 modules listen in registry. It'd be very useful to have a small search box at the top of the registry page than you could filter out the list.

I'd imagine that search box is focused by default when you visit the page and can be used to filter by name/description fields of the module.

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.