From 33694f5ff8aeba3f043708fdd5539ee1e88bcb92 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 24 Nov 2024 01:53:40 -0600 Subject: [PATCH] feat: added hashtags --- frontend/src/Config/Format.elm | 3 +- frontend/src/Debate/Helpers.elm | 17 +- frontend/src/Hashtags/Helpers.elm | 1 + frontend/src/Hashtags/Types.elm | 430 ++++++++++++++++++++++++++++++ 4 files changed, 440 insertions(+), 11 deletions(-) create mode 100644 frontend/src/Hashtags/Helpers.elm create mode 100644 frontend/src/Hashtags/Types.elm diff --git a/frontend/src/Config/Format.elm b/frontend/src/Config/Format.elm index 9e6d9b6..3a3da59 100755 --- a/frontend/src/Config/Format.elm +++ b/frontend/src/Config/Format.elm @@ -21,8 +21,7 @@ topLevelContainer = pageList : List (Attribute msg) pageList = [ spacing 10 - , -- Isaac yote me, fix me. - centerX + , centerX , centerY , alignTop , paddingEach { top = 30, bottom = 30, left = 30, right = 30 } diff --git a/frontend/src/Debate/Helpers.elm b/frontend/src/Debate/Helpers.elm index 09814ac..e66add3 100755 --- a/frontend/src/Debate/Helpers.elm +++ b/frontend/src/Debate/Helpers.elm @@ -49,7 +49,7 @@ argumentMaker onClickMsg areArgsExpanded argument indexExpand = ] [ titleMaker onClickMsg indexExpand argument.argumentTitle isArgumentExpanded , column - ([ E.width <| px 600, centerX, transitionStyle ] + ([ E.width <| px 600, centerX, transitionStyle, spacing 10 ] ++ (if not isArgumentExpanded then [ transitionStyle , height <| px 0 @@ -87,12 +87,11 @@ titleMaker onClickMsg indexExpand title isArgumentExpanded = , F.center , transitionStyle , pointer - - -- , mouseOver - -- [ B.color colourTheme.highlightTextHover - -- , F.color colourTheme.nonHighlightedText - -- , D.color colourTheme.highlightTextHover - -- ] + , mouseOver + [ B.color colourTheme.highlightTextHover + , F.color colourTheme.nonHighlightedText + , D.color colourTheme.highlightTextHover + ] , V.onClick <| onClickMsg indexExpand ] ++ (if not isArgumentExpanded then @@ -168,7 +167,7 @@ tableMaker argument isArgumentExpanded = in List.indexedMap (\index argumentEntry -> - column (paragraphFormat ++ [ spacing 3, centerX, E.width <| px 500 ]) + column (paragraphFormat ++ [ spacing 3, centerX, E.width <| px 500, paddingEach { top = 10, right = 0, bottom = 0, left = 0 } ]) (List.indexedMap (\premiseIndex premiseWithNotation -> column argumentFormatting @@ -201,7 +200,7 @@ tableMaker argument isArgumentExpanded = argument.argumentFormalization in column [ centerX, E.width <| px 600 ] - [ wrappedRow (paragraphBoldFormat ++ [ E.alignLeft, E.width fill, paddingEach { top = 10, right = 0, bottom = 10, left = 0 } ]) + [ wrappedRow (paragraphBoldFormat ++ [ E.alignLeft, E.width fill ]) [ E.table [ spacing 0 , D.rounded 10 diff --git a/frontend/src/Hashtags/Helpers.elm b/frontend/src/Hashtags/Helpers.elm new file mode 100644 index 0000000..32f91de --- /dev/null +++ b/frontend/src/Hashtags/Helpers.elm @@ -0,0 +1 @@ +module Hashtags.Helpers exposing (..) \ No newline at end of file diff --git a/frontend/src/Hashtags/Types.elm b/frontend/src/Hashtags/Types.elm new file mode 100644 index 0000000..f5f149f --- /dev/null +++ b/frontend/src/Hashtags/Types.elm @@ -0,0 +1,430 @@ +module Hashtags.Types exposing (..) + +type Hashtags = + Nutrition + | Disease + | Debate + | Cuckery + | DiseaseCardiovascular + | DebateOpponents + | LipoProteinsLowDensity + | DiseaseCoronaryHeart + | Humans + | BloodLipids + | FatPolyunsaturated + | FatMonounsaturated + | AnimalFoods + | FatSaturated + | FatDietary + | Veganism + | Epidemiology + | FoodsSeedOils + | Cucks + | DiseaseType2Diabetes + | AllCauseMortality + | FatsAnimal + | DietsLowCarbohydrate + | DietsHighCarbohydrate + | FoodsAnimal + | Arguments + | Cancer + | FatsPlant + | FoodsPlant + | ProteinAnimal + | ProteinPlant + | CuckPapers + | DiseaseObesity + | LipoProteinsApoB + | BloodGlucose + | LipoProteinsHighDensity + | FoodsMeat + | Lipidology + | FoodsRedMeat + | FoodsProcessedMeat + | FatsLinoleicAcid + | Nutrients + | HealthWeightLoss + | Carbohydrates + | Exercise + | FatsOmega6 + | Philosophy + | DiseaseInflammation + | DietsKeto + | NutritionalStatus + | BloodLipidsTriglycerides + | HealthAnthropometrics + | FoodsDairy + | ExerciseHypertrophy + | AncestryPrimitiveCulture + | HealthWeightGain + | HumansChildren + | FoodsProcessedFood + | MarkersInsulinSensitivity + | DieaseNAFLD + | Diseasetroke + | ResearchSystematicReview + | ResearchMetaAnalysis + | DietsPlantBased + | DietsAnimalBased + | MarkersBiomarkers + | Fallacies + | FoodsFruit + | FoodsLegumes + | DiseaseMortality + | AncestryAntagonisticPleiotropy + | DietsCarnivore + | BloodLipidsCholesterol + | NutritionEnergyIntake + | NutritionAntiNutrient + | HealthBodyWeight + | MarkersCReactiveProtein + | DebateCoursework + | AncestryHunterGatherers + | FatsTrans + | DietsDietaryGuidelines + | FoodsEggs + | ExerciseFitness + | MarkersInsulin + | DiseaseMetabolicSyndrome + | FatsOmega3 + | ResearchAnthropology + | ResearchCardiology + | HumansInfants + | DiseaseMentalIllness + | MedicationsStatins + | CarbohydratesSugar + | NutrientBioavailability + | FoodsCheese + | ResearchCohortStudies + | DiseaseCoronaryArteryCalcification + | NutrientDietaryCholesterol + | DiseaseHeartDisease + | FoodsSoyProducts + | LipoProteinsApoA + | NutrientArtificialSweeteners + | CancerColorectalCancer + | FoodsFish + | CarbohydratesFructose + | MarkersHbA1C + | DiseaseNutrientDeficiency + | ResearchNutritionScience + | FoodsNuts + | Animals + | DiseaseAutoImmune + | MarkersBMI + | FatsDHA + | FatsEPA + | FoodsOliveOil + | LipoProteinsOxidizedLowDensity + | NutrientPhytate + | FoodsPoultry + | FoodsRefinedGrains + | FoodsWholeGrains + | FoodsSugarSweetenedBeverages + | FoodsVegetables + | ResearchClinicalTrials + | Evolution + | FoodsFermentedFoods + | NutrientGluten + | MarkersHormones + | DiseaseHypertensions + | MarkersInterleukin6 + | CancerLungCancer + | ResearchMendelianRandomization + | FoodsMilk + | DiseaseOverweight + | NutrientPolyphenols + | MarkersSatiety + | ResearchSubstitionAnalysis + | MarkersTNF + | NutrientK2 + | Agriculture + | CancerBreastCancer + | HumansChildDevelopment + | FoodsChocolate + | NutrientFibre + | ResearchMice + | MarkersMicrobiome + | NutrientAnimal + | MarkersOxidativeStress + | FoodsPotatoes + | CancerProstateCancer + | Proteoglycans + | DiseaseType1Diabetes + | NutrientVitaminA + | NutrientVitaminC + | FoodsYogurt + | DiseaseAnemia + | AgricultureAnimal + | AgriculturePlant + | DiseaseAtherosclerosis + | NutrientAntioxidants + | MarkersAutoAntibodies + | FoodsAvocado + | MarkersBloodPressure + | CancerColonCancer + | MarkersEnergyExpenditure + | FoodsFriedFoods + | DiseaseHeartAttack + | DiseaseKidneyDisease + | FallaciesMechanisticSpeculation + | DietsMediterraneanDiet + | LipoProteinsNonHDL + | VeganismNameTheTrait + | NutrientOxalate + | ResearchPhysiology + | PhilosophyPropositionalLogic + | PhilosophyPredicateLogic + | PhilosophyModalLogic + | ResearchPsychology + | SocioEconomicStatus + | NutrientFibreSoluble + | NutrientFibreInsoluble + | NutrientSupplements + | NutrientB12 + | Assays4E6 + | AssaysE06 + | FoodsBread + | PhilosophyCausalInference + | DiseaseCholestasis + | NutrientCholine + | DiseaseDementia + | ResearchDoseResponse + | PhilosophyEpistemology + | CancerEsophagealCancer + | DiseaseGallstones + | HumansGrowth + | MarkersImmuneFunction + | MarkersLiverFunction + | MarkersLiverEnzymes + | DiseaseMacularDegeneration + | MarkersDMA + | PhysiologyMetabolism + | NutrientMinerals + | PhilosophyMoralRealism + | CancerPancreaticCancer + | NutrientPhytoEstrogens + | FoodsPork + | PhysiologyPostMenopause + | AnimalsPredators + | FallaciesRedHerring + | ResearchSexuality + | NutrientVitaminE + | HealthSmoking + | NutrientSodium + | PhysiologySubendothelialSpace + | MarkersTMAO + | HumanTransGender + | FoodsWhey + | FoodsWhiteMeat + | FoodsWholeFoods + | NutrientsAlcohol + | FoodsAlmonds + | FallaciesAppealToNature + | FoodsBeef + | NutrientsBetaCarotene + | AnimalsBivalves + | FoodsButter + | FoodsCanolaOil + | DiseaseCeliacDisease + | FoodsCereals + | MedicationsCETPInhibitors + | FoodsCoconutOil + | FoodsCoffee + | DiseaseConstipation + | VeganismCropDeaths + | DiseaseDepression + | ResearchPDCAAS + | ResearchDIAAS + | HealthDigestion + | FallaciesEcological + | CancerEndometrialCancer + | DietsFasting + | HumansFemaleHealth + | HumansMaleHealth + | FoodsFlaxseeds + | NutrientFODMAPs + | ResearchFFQs + | DiseaseFracture + | DiseaseFrailty + | PhysiologyGluconeogenesis + | ResearchGlycemicIndex + | DiseaseHeartFailure + | DiseaseHyperphagia + | NutrientIsoflavones + | FoodsJuice + | DiseaseKidneyStones + | CuckeryLMHR + | HealthLongevity + | FoodsMayonnaise + | PhilosophyMoralSubjectivism + | DiseaseNeuroDegenerative + | ResearchOphthalmology + | DiseaseOsteoporosis + | AnimalsOrca + | DietsPaleo + | FoodsPalmOil + | MarkersPCSK9 + | NutrientsPhytosterols + | PhysiologyPreMenopause + | CancerRectalCancer + | DiseaseRespiratoryDisease + | PhysiologySenescence + | PhilosophySentience + | MarkersSexHormones + | AnimalsShellfish + | CancerSkinCancer + | HealthSkin + | FatsStearicAcid + | CancerStomachCancer + | FoodsUltraProcessed + | DietsVegetarian + | LipoProteinsVeryLowDensity + | MarkersVisceralFat + | NutrientVitaminB6 + | FoodsWalnuts + | FoodsWheat + | MarkersAbdominalFat + | PoliticsAbortion + | MarkersAcrylamide + | PhysiologyAdiposeTissue + | HumansAdolescents + | DiseaseAFib + | ExerciseAgility + | PlantsAlgae + | DietsAncestral + | PhysiologyAndrogens + | PhilosophyAntiNatalism + | PhilosophyEfilism + | FallaciesAppealFromIncredulity + | FallaciesAppealToAuthority + | FallaciesBeggingTheQuestion + | FallaciesAppealToIgnorance + | FatsArachidonicAcid + | ResearchArcheology + | DiseaseArrythmia + | PhilosophyAutopoiesis + | NutrientBiotin + | CancerBladderCancer + | MarkersBodyOdor + | MarkersBoneMineralDensity + | ResearchBradfordHill + | FoodsBreakfastCereals + | FoodsBreastMilk + | FoodsBrewedDrinks + | DiseaseBronchitis + | NutrientCalcium + | NutrientCarotenoids + | ResearchCaseControl + | ResearchRandomizedControlledTrial + | NutrientCasein + | AnimalsCats + | AnimalsDogs + | AnimalsChickens + | LipoproteinsChylomicrons + | ResearchClimateScience + | DiseaseCognitiveDecline + | MarkersCognitiveFunction + | DiseaseColonPolyops + | DiseaseCOVID19 + | NutrientCreatine + | AnimalsCrustaceans + | FoodsCulturedMeat + | PhilosophyDeMorgansLaw + | PhysiologyDeNovoLipogenesis + | DebateModeration + | ResearchDermatology + | DiseaseDisability + | CancerDistalColonCancer + | DiseaseDiverticularDisease + | ResearchEconomics + | PhysiologyEjaculation + | DiseaseEmphysema + | MarkersEndothelialFunction + | PhilosophyEthics + | FallaciesEquivocation + | DiseaseErectileDysfunction + | ResearchEvidenceHierarchy + | NutrientFat + | HealthFertility + | FoodsFishOil + | CuckeryFlatEarth + | MarkersFlowMediatedDilation + | FoodsFrenchFries + | CancerGasticCancer + | FallaciesGeneticFallacy + | ResearchGenetics + | CarbohydratesGlucose + | MarkersGlucoseTolerance + | ResearchGlycemicLoad + | PhysiologyGlycogen + | NutrientGoitrogens + | FoodsGoldenRice + | FoodsGreenTea + | HealthGutHealth + | FoodsHazelnuts + | MarkersHeartRate + | MarkersHOMAIR + | DietsHypocaloric + | DietsHypercaloric + | DietsEucaloric + | DiseaseHypothyroidism + | ResearchImmunology + | MarkersIGF1 + | PoliticsIsraelPalestine + | MarkersKetones + | ResearchKinetics + | NutrientLCarnitine + | NutrientLectins + | HealthLifestyle + | PhilosophyLinguisticPrescriptivism + | MarkersLPS + | LipoProteinsLPA + | PhysiologyLPL + | DiseaseLupus + | MarkersMalondialdehyde + | NutrientManganese + | FoodsMargarine + | HealthMasturbation + | FatsMCTs + | ResearchMetaRegression + | FoodsMockMeats + | DiseaseMoodDisorders + | FallaciesMuddyingTheWaters + | ResearchMulticollinearity + | FoodsMushroom + | FoodsOats + | FoodsOrgans + | CancerOvarianCancer + | NutrientPhosphorus + | MedicationsPCSK9Inhibitors + | DiseaseSchizophrenia + | FoodsSeafood + | DiseaseScurvy + | HealthSelfImprovement + | DiseaseSepsis + | MarkersSNPs + | FoodsSoybeanOil + | DietsStandardAmericanDiet + | DiseaseStenosis + | FallaciesStrawman + | DiseaseSunburn + | Sunlight + | ResearchSurvivorshipBias + | NutrientTannins + | Tattooing + | NutrientTaurine + | MarkersTestosterone + | DiseaseThrombosis + | DietsTimeRestrictedFeeding + | DiseaseTinnitus + | FoodsTofu + | FoodsTomatoes + | FoodsTurmeric + | DiseaseUlcerativeColitis + | DiseaseUnderweight + | ResearchVirology + | DiseaseVisionLoss + | NutrientVitaminB5 + | NutrientVitaminD + | FoodsYeast