Check-in [f7f9082ab3]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Pull from GitHub
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f7f9082ab3f0cc170fce09ee8a69a077bb8d0a92
User & Date: nalck 2016-01-05 20:19:07
Context
2016-01-06
05:18
Add static content & 404 handling Leaf check-in: 6eabc9c2ef user: nalck tags: trunk
2016-01-05
20:19
Pull from GitHub check-in: f7f9082ab3 user: nalck tags: trunk
20:15
initial empty check-in check-in: 5d9d0f2554 user: nalck tags: trunk
Changes

Added LICENSE.





























>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Copyright (c) 2016, Ix Technology Corporation

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Added README.md.































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Z-Mark
======

Synopsis
--------

Bookmarks suck. The solution? Hyperorthognal Data Structures!

Design
------

Z-Mark uses [ZigZag Data Structures](http://www.xanadu.com/zigzag/) to organize,
store, and share web bookmarks. The web frontend for Z-Mark will use
[Elixir](http://elixir-lang.org/)'s 
[Plug](http://hexdocs.pm/plug/extra-readme.html) and 
[Ecto](http://hexdocs.pm/ecto/Ecto.html) libraries to provide a neat web 
interface for an [SQLite](https://sqlite.org) database.

A simple Z-Mark would resemble this:

```
0 ( 3859601647582956 )

1 ( 6834945246515304
    Name of Z-Mark
    https://example.com
    favicon.ico
    A helpful note!
    (0,#) ...
   )
```

Added zm_web/README.md.







































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# ZmWeb

**TODO: Add description**

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:

  1. Add zm_web to your list of dependencies in `mix.exs`:

        def deps do
          [{:zm_web, "~> 0.0.1"}]
        end

  2. Ensure zm_web is started before your application:

        def application do
          [applications: [:zm_web]]
        end

Added zm_web/config/config.exs.





























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config

# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the parent project. For this reason,
# if you want to provide default values for your application for
# 3rd-party users, it should be done in your "mix.exs" file.

# You can configure for your application as:
#
#     config :zm_web, key: :value
#
# And access this configuration in your application as:
#
#     Application.get_env(:zm_web, :key)
#
# Or configure a 3rd-party app:
#
#     config :logger, level: :info
#

# It is also possible to import configuration files, relative to this
# directory. For example, you can emulate configuration per environment
# by uncommenting the line below and defining dev.exs, test.exs and such.
# Configuration from the imported file will override the ones defined
# here (which is why it is important to import them last).
#
#     import_config "#{Mix.env}.exs"

Added zm_web/lib/zm_web.ex.





>
>
1
2
defmodule ZmWeb do
end

Added zm_web/mix.exs.

































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
defmodule ZmWeb.Mixfile do
  use Mix.Project

  def project do
    [app: :zm_web,
     version: "0.0.1",
     elixir: "~> 1.1",
     build_embedded: Mix.env == :prod,
     start_permanent: Mix.env == :prod,
     deps: deps]
  end

  # Configuration for the OTP application
  #
  # Type "mix help compile.app" for more information
  def application do
    [applications: [:logger]]
  end

  # Dependencies can be Hex packages:
  #
  #   {:mydep, "~> 0.3.0"}
  #
  # Or git/path repositories:
  #
  #   {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
  #
  # Type "mix help deps" for more examples and options
  defp deps do
    []
  end
end

Added zm_web/templates/raw/global.meta.



>
1
site_title: Z-Mark

Added zm_web/templates/raw/helpers.awk.





























>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ helpers = "yes" }

function load_helpers() {
	data["page_title"] = page_title()
}

function page_title(  title) {
	if (data["title"]) {
		title = data["title"] " - " data["site_title"]
	} else {
		title = data["site_title"]
	}
	return title
}

Added zm_web/templates/raw/index.meta.



>
1
title: Index

Added zm_web/templates/raw/main.layout.









































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8' />
<link rel='stylesheet' href='stylesheets/style.css' />
<title>{{page_title}}</title>
</head>
<body>
<header>
<h1><a href='index.html'>{{site_title}}</a></h1>
</header>
<main>
<h2>{{title}}</h2>
{{{yield}}}
</main>
<footer>
&#169; 2016 Ix Technology Corporation
</footer>
</body>
</html>

Added zm_web/test/test_helper.exs.



>
1
ExUnit.start()

Added zm_web/test/zm_web_test.exs.

















>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
defmodule ZmWebTest do
  use ExUnit.Case
  doctest ZmWeb

  test "the truth" do
    assert 1 + 1 == 2
  end
end