Compare commits

..

2 Commits

Author SHA1 Message Date
156759d1cd Added SCSS stylesheets 2022-12-07 18:28:24 -05:00
ee0726c271 Added rerun gem to auto-reload the app 2022-12-07 18:21:46 -05:00
8 changed files with 3166 additions and 0 deletions

7
.gitignore vendored
View File

@ -58,3 +58,10 @@ build-iPhoneSimulator/
# Local database storage # Local database storage
data/raven.db data/raven.db
# Node modules for Grunt.js
node_modules/
# Compiled CSS and JS
public/css/
public/js/

View File

@ -5,3 +5,7 @@ gem 'puma', '~> 6.0'
gem 'sequel', '~> 5.63' gem 'sequel', '~> 5.63'
gem 'sqlite3', '~> 1.5' gem 'sqlite3', '~> 1.5'
# Use rerun gem to auto-reload app
gem 'rerun'

View File

@ -1,6 +1,11 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
ffi (1.15.5)
ffi (1.15.5-x64-mingw-ucrt)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mustermann (3.0.0) mustermann (3.0.0)
ruby2_keywords (~> 0.0.1) ruby2_keywords (~> 0.0.1)
nio4r (2.5.8) nio4r (2.5.8)
@ -9,6 +14,11 @@ GEM
rack (2.2.4) rack (2.2.4)
rack-protection (3.0.4) rack-protection (3.0.4)
rack rack
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rerun (0.13.1)
listen (~> 3.0)
ruby2_keywords (0.0.5) ruby2_keywords (0.0.5)
sequel (5.63.0) sequel (5.63.0)
sinatra (3.0.4) sinatra (3.0.4)
@ -17,13 +27,16 @@ GEM
rack-protection (= 3.0.4) rack-protection (= 3.0.4)
tilt (~> 2.0) tilt (~> 2.0)
sqlite3 (1.5.4-x64-mingw-ucrt) sqlite3 (1.5.4-x64-mingw-ucrt)
sqlite3 (1.5.4-x86_64-linux)
tilt (2.0.11) tilt (2.0.11)
PLATFORMS PLATFORMS
x64-mingw-ucrt x64-mingw-ucrt
x86_64-linux
DEPENDENCIES DEPENDENCIES
puma (~> 6.0) puma (~> 6.0)
rerun
sequel (~> 5.63) sequel (~> 5.63)
sinatra (~> 3.0) sinatra (~> 3.0)
sqlite3 (~> 1.5) sqlite3 (~> 1.5)

41
Gruntfile.js Normal file
View File

@ -0,0 +1,41 @@
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
style: 'compressed'
},
files: [{
expand: true,
cwd: 'assets/styles',
src: ['**/*.scss'],
dest: 'public/css',
ext: '.css'
}]
}
},
watch: {
css: {
files: ['assets/styles/**/*.scss'],
tasks: ['sass'],
options: {
atBegin: true,
spawn: false
}
}
}
});
// Load plugins.
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
// CLI tasks.
grunt.registerTask('default', ['sass']);
};

View File

@ -0,0 +1,3 @@
body{
background: lightgrey;
}

3064
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

33
package.json Normal file
View File

@ -0,0 +1,33 @@
{
"name": "raven",
"version": "0.1.0",
"description": "Self-hosted inventory tracker",
"main": "index.js",
"scripts": {
"grunt": "grunt",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "gitea@git.metaunix.net:Metaunix/raven.git"
},
"keywords": [
"inventory",
"tracking"
],
"author": "Gregory Ballanine <gballantine@metaunix.net>",
"uploaders": [
{
"name": "Gregory Ballantine",
"email": "gballantine@metaunix.net"
}
],
"license": "BSD-2-Clause",
"devDependencies": {
"grunt": "^1.5.3",
"grunt-cli": "^1.4.3",
"grunt-contrib-sass": "^2.0.0",
"grunt-contrib-watch": "^1.1.0",
"sass": "^1.55.0"
}
}

View File

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= title %> | Raven</title> <title><%= title %> | Raven</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
<link rel="stylesheet" href="/css/kraken.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
</head> </head>
<body> <body>