This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Repository navigation
File Actions (open/edit) for apps with custom file extension support - #356
Merged
Merged
Conversation
DeepDiver1975
approved these changes
Nov 27, 2018
| }]; | ||
|
|
||
| const appInfo = { | ||
| name: 'Demo', |
Contributor
There was a problem hiding this comment.
name is subject to translation ... we need to keep this in mind ....
3 of 10 tasks
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
File type icons from owncloud/core integrated as webfont;
We will adjust webpack to build the iconfont itself from all svg‘s in static directory; But currently all webfonts are static builds from all available core filetype icons this night.
We could enable theming by simply loading a new iconpack; Sadly we would need some build tool magic to generate this font, which contravenes against our „simple DropIn Theming“ requirement.
The use of raw SVG‘s as icon‘s would complicate the icon handling, so we need to discuss this further.
From now on; Apps need to expose an appInfo object, containing:
The latter is able to override the icons shown in the ‚AppLauncher‘ per filetype
This PR also provides the new demo app ‚markdown-editor‘, which can read & write markdown files.
There are some edge cases with can possibly cause some bugs, but i‘m aware of most of them & on the way fixing them. Unfortunately this depends on some other code and therefore needs to follow later.
Related Issue
refs #149 provide FileAction API for open & share with custom filetype registration
refs #267 import oc/core filetype icons as webfont & set generic icon for all files
Motivation and Context
Allow Phoenix Apps to register custom open/edit action for specific filetypes
How Has This Been Tested?
markdown-editorapp in yourconfig.jsonmdin markdown-editor codemarkdownin markdown-editor codetest.markdownfile at ownCloud backend & open in phoenixTypes of changes
Checklist:
Open tasks: