Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
# zine
# Zine OS

DIY E-Zine and Operating System

Interfaces
==========

FS Interface
------------

Read a blob from a path, returns a promise fulfilled with the blob object. The
blob is annotated with the path i.e.: blob.path == path

read: (path) ->

Write a blob to a path, returns a promise that is fulfilled when the write succeeds.

write: (path, blob) ->

Delete a file at a path, returns a promise that is fulfilled when the delete succeeds.

delete: (path) ->

Returns a promise

list: (directoryPath) ->


FileEntry Interface
-------------------

path:
size:
type:

FolderEntry Interface
---------------------

folder: true
path:
32 changes: 21 additions & 11 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,27 @@ TODO

System Features
---------------
[x] File Browser
[X] File Browser

[x] App Associations
[X] App Associations

[x] File Context Menu
[X] File Context Menu

[x] Folders
[X] Folders

[x] Desktop Icons
[X] Desktop Icons

[ ] Desktop Background

[ ] Help Documentation

[ ] Compiler
[X] Compilerz

[x] Require/Include Local Files
[X] Require/Include Local Files

[ ] Custom Models/Views
[ ] Drag 'n' Drop

[X] Cloud Briefcase

Applications
------------
Expand All @@ -38,13 +40,21 @@ Markdown / Wiki

Image Munger

Programatic Animator

Pixel Editor

Music Maker

Database?

Network Social
--------------

[ ] CDN

[x] Comments

[ ] Sharing

[ ] Remote Files
[ ] Remote Files (Network Neighborhood)

[X] Personal Homepage
15 changes: 15 additions & 0 deletions apps/achievement-status.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = ->
{Achievement, UI} = system
{Window} = UI

cheevoElement = Achievement.progressView()
cheevoElement.style.width = "100%"
cheevoElement.style.padding = "1em"

Achievement.unlock "Check yo' self"

windowView = Window
title: "Cheevos"
content: cheevoElement
width: 640
height: 480
12 changes: 10 additions & 2 deletions apps/audio-bro.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Model = require "model"

module.exports = ->
# Global system
{ContextMenu, MenuBar, Modal, Progress, Util:{parseMenu}, Window} = system.UI
{ContextMenu, MenuBar, Modal, Observable, Progress, Util:{parseMenu}, Window} = system.UI
{Achievement} = system

Achievement.unlock "Pump up the jam"
Expand All @@ -14,8 +14,11 @@ module.exports = ->
audio.controls = true
audio.autoplay = true

filePath = Observable()

handlers = Model().include(FileIO).extend
loadFile: (blob) ->
filePath blob.path
audio.src = URL.createObjectURL blob

exit: ->
Expand All @@ -31,11 +34,16 @@ module.exports = ->
handlers: handlers

windowView = Window
title: "Audio Bro"
title: ->
if path = filePath()
"Audio Bro - #{path}"
else
"Audio Bro"
content: audio
menuBar: menuBar.element
width: 308
height: 80
iconEmoji: "🎶"

windowView.loadFile = handlers.loadFile

Expand Down
Loading