-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e61b00c
Showing
5 changed files
with
253 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
hidden=[".config"] | ||
|
||
# hosting is currently hardcoded for this language | ||
# [hosting] | ||
# route = "/" | ||
# directory= "/" | ||
|
||
[nix] | ||
channel = "stable-21_11" | ||
|
||
[languages.html] | ||
pattern = "**/*.html" | ||
[languages.html.languageServer] | ||
start = "vscode-html-language-server --stdio" | ||
[languages.html.languageServer.initializationOptions] | ||
provideFormatter = true | ||
[languages.html.languageServer.configuration.html] | ||
customData = [ ] | ||
autoCreateQuotes = true | ||
autoClosingTags = true | ||
mirrorCursorOnMatchingTag = false | ||
|
||
[languages.html.languageServer.configuration.html.completion] | ||
attributeDefaultValue = "doublequotes" | ||
|
||
[languages.html.languageServer.configuration.html.format] | ||
enable = true | ||
wrapLineLength = 120 | ||
unformatted = "wbr" | ||
contentUnformatted = "pre,code,textarea" | ||
indentInnerHtml = false | ||
preserveNewLines = true | ||
indentHandlebars = false | ||
endWithNewline = false | ||
extraLiners = "head, body, /html" | ||
wrapAttributes = "auto" | ||
templating = false | ||
unformattedContentDelimiter = "" | ||
|
||
[languages.html.languageServer.configuration.html.suggest] | ||
html5 = true | ||
|
||
[languages.html.languageServer.configuration.html.validate] | ||
scripts = true | ||
styles = true | ||
|
||
[languages.html.languageServer.configuration.html.hover] | ||
documentation = true | ||
references = true | ||
|
||
[languages.html.languageServer.configuration.html.trace] | ||
server = "off" | ||
|
||
[languages.javascript] | ||
pattern = "**/{*.js,*.jsx,*.ts,*.tsx,*.mjs,*.cjs}" | ||
[languages.javascript.languageServer] | ||
start = "typescript-language-server --stdio" | ||
|
||
[languages.css] | ||
pattern = "**/{*.less,*.scss,*.css}" | ||
[languages.css.languageServer] | ||
start = "vscode-css-language-server --stdio" | ||
[languages.css.languageServer.configuration.css] | ||
customData = [ ] | ||
validate = true | ||
|
||
[languages.css.languageServer.configuration.css.completion] | ||
triggerPropertyValueCompletion = true | ||
completePropertyWithSemicolon = true | ||
|
||
[languages.css.languageServer.configuration.css.hover] | ||
documentation = true | ||
references = true | ||
|
||
[languages.css.languageServer.configuration.css.lint] | ||
# Configure linting | ||
# ignore = don't show any warning or error | ||
# warning = show yellow underline | ||
# error = show red underline | ||
argumentsInColorFunction = "error" # Invalid number of parameters | ||
boxModel = "ignore" # Do not use width or height when using padding or border | ||
compatibleVendorPrefixes = "ignore" # When using a vendor-specific prefix make sure to also include all other vendor-specific properties" | ||
duplicateProperties = "warning" # Do not use duplicate style definitions | ||
emptyRules = "warning" # Do not use empty rulesets | ||
float = "ignore" # Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes. | ||
fontFaceProperties = "warning" # @font-face rule must define 'src' and 'font-family' properties | ||
hexColorLength = "error" # Hex colors must consist of three, four, six or eight hex numbers | ||
idSelector = "ignore" # Selectors should not contain IDs because these rules are too tightly coupled with the HTML. | ||
ieHack = "ignore" # IE hacks are only necessary when supporting IE7 and older | ||
important = "ignore" # Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored. | ||
importStatement = "ignore" # Import statements do not load in parallel | ||
propertyIgnoredDueToDisplay = "warning" # Property is ignored due to the display | ||
universalSelector = "ignore" # The universal selector (*) is known to be slow | ||
unknownAtRules = "warning" # Unknown at-rule | ||
unknownProperties = "warning" # Unknown property. | ||
validProperties = [ ] # add some properties that the linter doesn't know about | ||
unknownVendorSpecificProperties = "ignore" # Unknown vendor specific property. | ||
vendorPrefix = "warning" # When using a vendor-specific prefix also include the standard property | ||
zeroUnits = "ignore" # No unit for zero needed | ||
|
||
[languages.css.languageServer.configuration.css.trace] | ||
server = "off" | ||
|
||
[languages.css.languageServer.configuration.scss] | ||
validate = true | ||
|
||
[languages.css.languageServer.configuration.scss.completion] | ||
triggerPropertyValueCompletion = true | ||
completePropertyWithSemicolon = true | ||
|
||
[languages.css.languageServer.configuration.scss.hover] | ||
documentation = true | ||
references = true | ||
|
||
[languages.css.languageServer.configuration.scss.lint] | ||
# Configure linting | ||
# ignore = don't show any warning or error | ||
# warning = show yellow underline | ||
# error = show red underline | ||
argumentsInColorFunction = "error" # Invalid number of parameters | ||
boxModel = "ignore" # Do not use width or height when using padding or border | ||
compatibleVendorPrefixes = "ignore" # When using a vendor-specific prefix make sure to also include all other vendor-specific properties" | ||
duplicateProperties = "warning" # Do not use duplicate style definitions | ||
emptyRules = "warning" # Do not use empty rulesets | ||
float = "ignore" # Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes. | ||
fontFaceProperties = "warning" # @font-face rule must define 'src' and 'font-family' properties | ||
hexColorLength = "error" # Hex colors must consist of three, four, six or eight hex numbers | ||
idSelector = "ignore" # Selectors should not contain IDs because these rules are too tightly coupled with the HTML. | ||
ieHack = "ignore" # IE hacks are only necessary when supporting IE7 and older | ||
important = "ignore" # Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored. | ||
importStatement = "ignore" # Import statements do not load in parallel | ||
propertyIgnoredDueToDisplay = "warning" # Property is ignored due to the display | ||
universalSelector = "ignore" # The universal selector (*) is known to be slow | ||
unknownAtRules = "warning" # Unknown at-rule | ||
unknownProperties = "warning" # Unknown property. | ||
validProperties = [ ] # add some properties that the linter doesn't know about | ||
unknownVendorSpecificProperties = "ignore" # Unknown vendor specific property. | ||
vendorPrefix = "warning" # When using a vendor-specific prefix also include the standard property | ||
zeroUnits = "ignore" # No unit for zero needed" | ||
|
||
[languages.css.languageServer.configuration.less] | ||
validate = true | ||
|
||
[languages.css.languageServer.configuration.less.completion] | ||
triggerPropertyValueCompletion = true | ||
completePropertyWithSemicolon = true | ||
|
||
[languages.css.languageServer.configuration.less.hover] | ||
documentation = true | ||
references = true | ||
|
||
[languages.css.languageServer.configuration.less.lint] | ||
# Configure linting | ||
# ignore = don't show any warning or error | ||
# warning = show yellow underline | ||
# error = show red underline | ||
argumentsInColorFunction = "error" # Invalid number of parameters | ||
boxModel = "ignore" # Do not use width or height when using padding or border | ||
compatibleVendorPrefixes = "ignore" # When using a vendor-specific prefix make sure to also include all other vendor-specific properties" | ||
duplicateProperties = "warning" # Do not use duplicate style definitions | ||
emptyRules = "warning" # Do not use empty rulesets | ||
float = "ignore" # Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes. | ||
fontFaceProperties = "warning" # @font-face rule must define 'src' and 'font-family' properties | ||
hexColorLength = "error" # Hex colors must consist of three, four, six or eight hex numbers | ||
idSelector = "ignore" # Selectors should not contain IDs because these rules are too tightly coupled with the HTML. | ||
ieHack = "ignore" # IE hacks are only necessary when supporting IE7 and older | ||
important = "ignore" # Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored. | ||
importStatement = "ignore" # Import statements do not load in parallel | ||
propertyIgnoredDueToDisplay = "warning" # Property is ignored due to the display | ||
universalSelector = "ignore" # The universal selector (*) is known to be slow | ||
unknownAtRules = "warning" # Unknown at-rule | ||
unknownProperties = "warning" # Unknown property. | ||
validProperties = [ ] # add some properties that the linter doesn't know about | ||
unknownVendorSpecificProperties = "ignore" # Unknown vendor specific property. | ||
vendorPrefix = "warning" # When using a vendor-specific prefix also include the standard property | ||
zeroUnits = "ignore" # No unit for zero needed" | ||
|
||
[gitHubImport] | ||
requiredFiles = [".replit", "replit.nix", ".config"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>replit</title> | ||
<link href="style.css" rel="stylesheet" type="text/css" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous"> | ||
</head> | ||
|
||
<body> | ||
<div class='container'> | ||
<div class='row'> | ||
<h1>Picture of the Day</h1> | ||
</div> | ||
<div class='row main'> | ||
<h2></h2> | ||
|
||
<img src='' alt=''> | ||
<p></p> | ||
<h3>Which PIC?</h3> | ||
<input type='text' name='' value=''> | ||
<button type='button' name='button'>Get STARRY</button> | ||
|
||
|
||
</div> | ||
</div> | ||
<script src="script.js"></script> | ||
|
||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ pkgs }: { | ||
deps = [ | ||
pkgs.nodePackages.vscode-langservers-extracted | ||
pkgs.nodePackages.typescript-language-server | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
document.querySelector('button').addEventListener('click',getFetch) | ||
|
||
function getFetch(){ | ||
|
||
const url = 'https://api.nasa.gov/planetary/apod?api_key=vIn5A36tyJL0QLmQG6ahSCP89ei7GYOtTa1XGD3U' | ||
|
||
fetch(url) | ||
.then(res => res.json()) | ||
.then(data => { | ||
console.log(data) | ||
document.querySelector('img').src = data.hdurl | ||
document.querySelector('h2').innerText = data.title | ||
document.querySelector('p').innerText = data.explanation | ||
}) | ||
.catch(err => { | ||
console.log(`error ${err}`) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
html, body { | ||
height: 100%; | ||
width: 100%; | ||
text-align: center; | ||
background-image: url('http://www.nasa.gov/sites/default/files/thumbnails/image/main_image_star-forming_region_carina_nircam_final-5mb.jpg'); | ||
} | ||
|
||
h1,h2, h3 { | ||
color: white; | ||
background: rgba(159,90,253,.5) | ||
} | ||
|
||
p{ | ||
background-color: white; | ||
border: 2px double purple; | ||
} |