Coder Social home page Coder Social logo

haplo-standard-plugins-dev's Introduction

Haplo standard platform plugins development

This repository contains development versions of the standard plugins bundled in the Haplo platform.

When new versions are ready for release, they're copied to the main Haplo repository.

Note that these plugins use private platform APIs, and those APIs may change without notice. Don't use these APIs in your plugins.

Development

Use haplo-plugin to push this to a Haplo server with development enabled. This version will override the built-in plugin.

To try the examples in an application, create one with

db/init_app.sh haplo teststandard.haplodev00.local "Test Standard" minimal_with_common_permissions 123456

and create a user with a representative object for testing.

License

Haplo is licensed under the Mozilla Public License Version 2.0. See the LICENSE file for full details.

Copyright

Haplo is copyright Haplo Services Ltd. See the COPYRIGHT file for full details.

haplo-standard-plugins-dev's People

Contributors

am121991 avatar azapiencontreras avatar bensummers avatar jderoberts avatar jennylouisew avatar konstantindt avatar luciaantonelli avatar megan-dove avatar muntasirsyed avatar taylor-mudd avatar thomas- avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

haplo-standard-plugins-dev's Issues

std_web_publisher: Check for file download permissions functions will always be true

Minor find, but I think these two if checks are going to be always true, but it seems the intent is for them to be false if no file download permissions functions are added.

Perhaps it should be if(this._fileDownloadPermissionFunctions.length)?

if(this._fileDownloadPermissionFunctions) {
endLines.push("Disallow: /thumbnail/");
}
} else {
if(this._fileDownloadPermissionFunctions) {
// Special case because file downloads don't use normal publisher handlers
lines.push("Allow: /download/");
}

Publication constructors execute this._setupForFileDownloads();

var Publication = P.Publication = function(name, plugin) {
this.name = name;
this.implementingPlugin = plugin;
this._homePageUrlPath = null;
this._pagePartOptions = {};
this._paths = [];
this._urlPolicy = O.refdictHierarchical();
this._objectTypeHandler = O.refdictHierarchical();
this._searchResultsRenderers = O.refdictHierarchical(); // also this._defaultSearchResultRenderer
this._replacedTemplates = {};
this._setupForFileDownloads();
};

Which sets this._fileDownloadPermissionFunctions = [];

P.Publication.prototype._setupForFileDownloads = function() {
this._fileThumbnailSize = DEFAULT_THUMBNAIL_SIZE;
this._fileDownloadPermissionFunctions = [];
};

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.