Coder Social home page Coder Social logo

dotland's Issues

Gatsby?

If you are using netlify have you considered using Gatsby?

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.

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.

[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.

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]-->
[...]

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.

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.

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.

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

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?

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

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

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

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.