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-preprocess": "^4.10.1",
|
||||
"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 babel from '@rollup/plugin-babel';
|
||||
import fs from 'fs'
|
||||
import json from "@rollup/plugin-json";
|
||||
|
||||
configDotenv();
|
||||
|
||||
@ -123,7 +124,8 @@ export default {
|
||||
// If we're building for production (npm run build
|
||||
// instead of npm run dev), minify
|
||||
production && terser(),
|
||||
glslify()
|
||||
glslify(),
|
||||
json()
|
||||
],
|
||||
watch: {
|
||||
clearScreen: false
|
||||
|
@ -3,7 +3,7 @@ import SocialLink from '../components/SocialLink.svelte'
|
||||
import twitterIcon from '../assets/icon/cib-twitter.svg'
|
||||
import atIcon from '../assets/icon/cil-at.svg'
|
||||
import Mononaut from '../components/Mononaut.svelte'
|
||||
|
||||
import config from '../../package.json'
|
||||
</script>
|
||||
|
||||
<style type="text/scss">
|
||||
@ -44,6 +44,7 @@ import Mononaut from '../components/Mononaut.svelte'
|
||||
</a>
|
||||
<div class="intro">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -23,8 +23,8 @@ export default {
|
||||
target: getInjectedEnv('TARGET'),
|
||||
public: (getInjectedEnv('TARGET', 'dev') === "public"),
|
||||
// host & port of the backend API websocket server
|
||||
backend: getInjectedEnv('OVERRIDE_BACKEND_HOST'), // do not include the protocol
|
||||
backendPort: getInjectedEnv('OVERRIDE_BACKEND_PORT'),
|
||||
backend: "bits.monospace.live", // do not include the protocol
|
||||
backendPort: null,
|
||||
// Whether to connect to the backend server over ws:// or wss://
|
||||
secureSocket: (window.location.protocol === 'https:'),
|
||||
// Disables the transaction feed
|
||||
|
@ -62,7 +62,7 @@ defmodule BitcoinStream.Server do
|
||||
restart: :permanent
|
||||
}
|
||||
]
|
||||
|
||||
version()
|
||||
opts = [strategy: :one_for_one, name: BitcoinStream.Application]
|
||||
Supervisor.start_link(children, opts)
|
||||
end
|
||||
@ -77,4 +77,15 @@ defmodule BitcoinStream.Server do
|
||||
}
|
||||
]
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user