mirror of
https://github.com/Retropex/bitfeed.git
synced 2025-05-12 19:20:46 +02:00
Version has been added
This commit is contained in:
parent
d7216e31e3
commit
5bd507b873
@ -36,5 +36,8 @@
|
|||||||
"svelte": "^3.44.3",
|
"svelte": "^3.44.3",
|
||||||
"svelte-preprocess": "^4.10.1",
|
"svelte-preprocess": "^4.10.1",
|
||||||
"svelte-select": "^4.4.7"
|
"svelte-select": "^4.4.7"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@rollup/plugin-json": "^4.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ import html from '@rollup/plugin-html';
|
|||||||
import copy from 'rollup-plugin-copy'
|
import copy from 'rollup-plugin-copy'
|
||||||
import babel from '@rollup/plugin-babel';
|
import babel from '@rollup/plugin-babel';
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
|
import json from "@rollup/plugin-json";
|
||||||
|
|
||||||
configDotenv();
|
configDotenv();
|
||||||
|
|
||||||
@ -123,7 +124,8 @@ export default {
|
|||||||
// If we're building for production (npm run build
|
// If we're building for production (npm run build
|
||||||
// instead of npm run dev), minify
|
// instead of npm run dev), minify
|
||||||
production && terser(),
|
production && terser(),
|
||||||
glslify()
|
glslify(),
|
||||||
|
json()
|
||||||
],
|
],
|
||||||
watch: {
|
watch: {
|
||||||
clearScreen: false
|
clearScreen: false
|
||||||
|
@ -3,7 +3,7 @@ import SocialLink from '../components/SocialLink.svelte'
|
|||||||
import twitterIcon from '../assets/icon/cib-twitter.svg'
|
import twitterIcon from '../assets/icon/cib-twitter.svg'
|
||||||
import atIcon from '../assets/icon/cil-at.svg'
|
import atIcon from '../assets/icon/cil-at.svg'
|
||||||
import Mononaut from '../components/Mononaut.svelte'
|
import Mononaut from '../components/Mononaut.svelte'
|
||||||
|
import config from '../../package.json'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style type="text/scss">
|
<style type="text/scss">
|
||||||
@ -44,6 +44,7 @@ import Mononaut from '../components/Mononaut.svelte'
|
|||||||
</a>
|
</a>
|
||||||
<div class="intro">
|
<div class="intro">
|
||||||
<p>Bitfeed is an experiment by <b class="mononaut">mononaut</b>.</p>
|
<p>Bitfeed is an experiment by <b class="mononaut">mononaut</b>.</p>
|
||||||
|
<p><b class="mononaut"> v{config.version} </b></p>
|
||||||
<p>Questions? Comments? Suggestions?</p>
|
<p>Questions? Comments? Suggestions?</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -23,8 +23,8 @@ export default {
|
|||||||
target: getInjectedEnv('TARGET'),
|
target: getInjectedEnv('TARGET'),
|
||||||
public: (getInjectedEnv('TARGET', 'dev') === "public"),
|
public: (getInjectedEnv('TARGET', 'dev') === "public"),
|
||||||
// host & port of the backend API websocket server
|
// host & port of the backend API websocket server
|
||||||
backend: getInjectedEnv('OVERRIDE_BACKEND_HOST'), // do not include the protocol
|
backend: "bits.monospace.live", // do not include the protocol
|
||||||
backendPort: getInjectedEnv('OVERRIDE_BACKEND_PORT'),
|
backendPort: null,
|
||||||
// Whether to connect to the backend server over ws:// or wss://
|
// Whether to connect to the backend server over ws:// or wss://
|
||||||
secureSocket: (window.location.protocol === 'https:'),
|
secureSocket: (window.location.protocol === 'https:'),
|
||||||
// Disables the transaction feed
|
// Disables the transaction feed
|
||||||
|
@ -62,7 +62,7 @@ defmodule BitcoinStream.Server do
|
|||||||
restart: :permanent
|
restart: :permanent
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
version()
|
||||||
opts = [strategy: :one_for_one, name: BitcoinStream.Application]
|
opts = [strategy: :one_for_one, name: BitcoinStream.Application]
|
||||||
Supervisor.start_link(children, opts)
|
Supervisor.start_link(children, opts)
|
||||||
end
|
end
|
||||||
@ -77,4 +77,15 @@ defmodule BitcoinStream.Server do
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp version() do
|
||||||
|
{:ok, vsn} = :application.get_key(:bitcoin_stream, :vsn)
|
||||||
|
splash_text =
|
||||||
|
"""
|
||||||
|
####################################################
|
||||||
|
### BITFEED VERSION IS: v#{vsn} ###
|
||||||
|
####################################################
|
||||||
|
"""
|
||||||
|
IO.puts(splash_text)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user