Giter Site home page Giter Site logo

sheret's People

Contributors

ethanpil avatar planplan 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

Watchers

 avatar  avatar  avatar

sheret's Issues

Cannot download Windows binary

When I click on sheret-v1.21.zip, I get this popup:

image

No matter what I do, it says access denied. Is there another way to download the zip?

Sources won't compile (linux)

Hi,
I tried to compile from sources (latest)

cd build
go build -ldflags="-s -w" ../src/sheret.go

All I got is

../src/sheret.go:20:3: cannot find package "github.com/pkg/browser" in any of:
(list of local go dependencies cache)

So there seem to be a missing dependance after all.
I tried to remove the dep from the include list, but the so-called "browser" package is effectively in use, and another error arises.
Any idea?

Swap `-f` to string type from boolean for custom log location

invalid boolean value "'logs\\sheret.log'" for -f: strconv.ParseBool: parsing "'logs\\sheret.log'": invalid syntax

Sheret uses a hard-coded location for log files which is inconvenient for log purposes. It writes the log into the current working directory, not next to executable as described in the readme.md.

I can not write the log to a sane location such as c:\windows\temp or any other location which might be provided by environmental variables.

logfile, err := os.OpenFile("sheret.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)

Support MIME Types -- Necessary for even basic static javascript pages that use IMPORT

I am building a static site that uses Javascript to talk a remote REST API. I believe this is very popular web design because it lets you serve dynamic content from a static site.

Unfortunately, this HTML line:
<script src="js/editor.js?v=1.0" type="module"></script>

Throws this error in Chromium:

Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

Would it be significant effort to add some default MIME types to include in return headers?

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.